GithubHelp home page GithubHelp logo

earthlivesharp's People

Contributors

bitdust avatar cboseak avatar shaderfallback avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

earthlivesharp's Issues

增加一点点小判断,在Widnows10下设置壁纸填充方式为“适应”?

常常在物业发现壁纸怎么老是不换呢?打开设置才发现是 居中 模式,换为适应就好了

又熬夜熬得很困……不详细写了好吗? 请看 机房工具 中我写到的:

%regadd%" /v TileWallpaper /d "0" /f
::0为居中,1为平铺
%regadd%" /v Wallpaper /d "%~d0\Mine\壁纸\wallhaven-312106.jpg" /f
%regadd%" /v WallpaperStyle /d "10" /f
::WallpaperStyle6为适应,2为拉伸,10为填充
start RunDll32.exe USER32.DLL,UpdatePerUserSys

具体的开发文档您还是找一找 MicroSoft 的官方文档吧,我这是从网络上找的,可能不是很准

如何设置为动态的桌面背景?

  1. 下载程序并运行
  2. 点击 start 按钮
    clipboard05
  3. 在桌面右键菜单选择 个性化
    clipboard08
  4. 进入 桌面背景 菜单
    clipboard09
  5. 浏览至保存图片的文件夹(默认为 EarthLiveSharp/images 文件夹)
    clipboard0111
  6. 当看到有至少两张图片时,点击全选按钮。(这是一个windows的小技巧,点击全选后,文件夹中所有图片,包括新增的图片,也会被设置为桌面背景)
    clipboard0112
  7. 选择图片放置方式为 居中 , 背景颜色为 黑色 ,更改图片间隔调为 10s。
    clipboard0113
  8. 点击保存更改即可。
    clipboard0114

效果如下图所示:
clipboard0156

弹窗报错

qq 20151219225614
桌面壁纸没变
EarthLiveSharp 再也没法正常运行

抱歉误删了log。。。

抓取图片地址已失效

看了下config文件,要抓取的地址是:
http://himawari8-dl.nict.go.jp/himawari8/img/D531106
然后这个地址直接访问会403 forbidden
所以无论是原地址还是cdn都无法获取图片。

公司网络有代理问题

路径的形式不合法。[latest_address] [image_path] C:\Users\z208209\EarthLiveSharp\images\5.png

公司全局网络走代理,上网也经常蹦出那个输用户名密码的框,可能中枪了

可否考虑增加图片源?

可否考虑将DSCOVR:EPIC添入图片源?这颗卫星应该是一直在拍地球向阳面,不过分辨率好像比向日葵要低

[重要] 关于流量即将耗尽的通知以及应对办法

情况说明

目前这个工具正在使用Cloudinary的CDN作为图片缓存,以免对 向日葵-8 的官网造成流量压力,以达到延长API寿命的目的。
这个工具的火爆程度超出了我的预计,甚至冲上了github的C# trending榜首。在此必须感谢大家的鼎力支持。然而这带来的一个副作用就是我的CDN账户已不堪重负,如下图所示,最高峰时已达到 26GB/天 !即使我在1.1版本中紧急增加了负载均衡功能依然是杯水车薪。
clipboard02
而我并不能负担如此高的开销,之前计划使用VPS做反向代理的计划也因意外而搁浅。(某B开头的VPS服务商因为我填写的个人资料不完整而封停了我的帐号,233)。
总之,按当前情况来看,Cloudinary迟早会因为流量爆炸而封停封停我的帐号,到时所有客户端将不能正常更新图片。

解决方案1

进入Settings窗口,切换图片源为orgin。
但是个人非常不推荐这个办法, 因为如果大家都这么做的话,会给官方造成很大的流量压力和困扰。很可能导致API被封锁。

解决方案2

申请使用私有的CDN账户。按照曾经的估算,一个Cloudinary的免费CDN账户可以支撑10个人不间断的24小时图片抓取。因此如果有能力的话,使用个人的CDN帐号可以一劳永逸的解决这一问题。
具体步骤如下:
1.前往Cloudinary官网注册账户。
记录你的Cloud name
clipboard04

2.编辑你的EarthLiveSharp.exe.Config文件
将 CDN 或CDN1、CDN2、CDN3、CDN4 键值对应的红框所圈中的内容全部都修改为你的Cloud name 即可。
clipboard03

3.Cloudinary会向你的注册邮箱发一封验证邮件,记得查收并验证。

附言

最后还想说点什么,做这个程序只是处于排解近来压力的个人爱好。但是盗用他人API总归是一个不道德行为,现在爆掉了自己的CDN也是一个报应吧!开源软件的意义在于分享自己的喜悦和成果,而非免费的使用别人的服务。可惜自己代码写的又很糟糕,没有什么学习价值,所以这个项目到头来的存在意义就只是骗了200个星星而已。233~
总之呢就是,对自己的任何行为都要负责,不要做慷别人之慨,替别人“开源”。
随着流量耗尽,这个项目可能就要暂停一个段落了,当然出了什么严重bug的话我还是要负责去修的。
最后再次感谢大家支持!

远程服务器返回错误: (401) 未经授权

上周用了两天还是正常的,今天就不行了。
下面是trace.log文件中的内容

[get latest address] {"date":"2016-01-11 03:00:00","file":"PI_H08_20160111_0300_TRC_FLDK_R10_PGPFD.png"}
远程服务器返回错误: (401) 未经授权。[latest_address] http://res.cloudinary.com/dpwjf2scg/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2016/01/11/030000_0_0.png [image_path] D:\Software\EarthLiveSharp\images\0.png
[get latest address] {"date":"2016-01-11 03:00:00","file":"PI_H08_20160111_0300_TRC_FLDK_R10_PGPFD.png"}
远程服务器返回错误: (401) 未经授权。[latest_address] http://res.cloudinary.com/dpwjf2scg/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2016/01/11/030000_0_0.png [image_path] D:\Software\EarthLiveSharp\images\1.png

无图片素材

下载后按照步骤点击,可是image文件夹里没有图片,请问如何解决

How to set CDN as the image source?

It's strongly recommended to set a private CDN as the image source which can improve the stablity and reduce the pressure on the server side.

  1. go to http://www.cloudinary.com and sign up a Free account. (and don't forget to check the register mail!)
    访问 http://www.cloudinary.com 并注册一个免费账户。(记得检查确认邮件!不然帐号会被停用!)

  2. login in your account and copy the "cloud name" "api key" and "api secret".
    登录账户并记下你的 cloud name、api key 以及 api secret
    unnamed qq screenshot20170410213159

  3. click "settings" button.
    点击 settings 按钮。
    qq 20160808162413

  4. select "CDN"
    选择 image source 为 CDN
    unnamed qq screenshot20170410213836

  5. fill your "cloud name" "api key" and "api secret".
    填入你的 cloud name、api key 以及 api secret。
    unnamed qq screenshot20170410213253

  6. apply the change.
    确认更改设置。

7.done.
搞定!

更新到2.0版本后无法下载图片

Hi你好,我今天把earthlivesharp更新到2.0版本后桌面背景不再变化了,我看了下文件目录里的trace文本,貌似是不能连接到服务器:
[get latest address] {"date":"2016-04-10 04:10:00","file":"PI_H08_20160410_0410_TRC_FLDK_R10_PGPFD.png"}
The remote server returned an error: (401) Unauthorized.[latest_address] http://res.cloudinary.com/divezagkn/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2016/04/10/041000_0_0.png [image_path] D:\EarthLiveSharp\images\0.png
请问您知道这是什么原因吗,谢谢。

图片无更新

如题,图片文件夹下只有0_0.png和wallpaper.bmp(已解决)

设定为自动启动后,直接双击启动程序,不弹出窗口

复现:配置中“Autostart”置为真,保存,关闭程序。再次启动程序,程序只会后台静默启动,不在前台弹出窗口。
另外已经启动程序的情况下,再次启动程序,没有任何提示(既没有提示已经有运行的进程,也没有弹出现有程序的设置窗口,也没有再次启动)

批量删除cloudinary中存储的图片

经过几个月坚持不懈的使用...

我自己cloudinary免费套餐中2G的存储终于爆掉了...一万多张图放在那里...

请问能否提供批量清空cloudinary中过期图片的办法...

或者在earthlivesharp中每使用一幅图片就自动删除cloudinary中上次使用的图片...

关于流量耗尽的问题

其实可以在这个repo 大家一起维护一个 cnd.txt,
这样大家可以pull request 贡献多个免费的 cloudinary出来, 然后程序随机读取就行了

怎么自定义上空图?

想问一下怎么设置到**区域图,因为我在16年的时候截了一张图:

image

所以问问这个软件可以自定义坐标吗?

============

后续更新,刚才仔细观察了一下,貌似是我放大以后得到的图片,毕竟卫星是固定轨道的。

EarthLive Mac

请问下是否有出mac版本的计划 或mac平台下有什么好的替代品 :)

关于图像画质的一点建议

  1. 由于Windows会自动将bmp格式的壁纸压缩成jpg,而系统用的压缩系数又很低,所以图片质量严重受损(如下图③对比①②,不仅清晰度下降,蓝色的大气层颜色都变了),建议把图片存成png,可以保持原样
    default

  2. 另外由于屏幕分辨率的差异,原图1100分辨率显示不全,所以我设置了93%的缩放,然后发现拼接出来的wallpaper.bmp锐度明显损失(如上图①②),目测图像差值算法用的是Bilinear,建议改成Bicubic,质量会有所提升。

3.0版本 提示404未找到

无法连接到远程服务器
远程服务器返回错误: (404) 未找到。

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.IO.FileNotFoundException: C:\Users\xizic\Desktop\EarthLiveSharp-v3.0\EarthLiveSharp\images\0_0.png
在 System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
在 EarthLiveSharp.scraper.JoinImage()
在 EarthLiveSharp.mainForm.startLogic()
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************
mscorlib
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

EarthLiveSharp
程序集版本:1.0.0.0
Win32 版本:1.0.0.0

基本代码:file:///C:/Users/xizic/Desktop/EarthLiveSharp-v3.0/EarthLiveSharp/EarthLiveSharp.exe

System.Windows.Forms
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

mscorlib.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll

System.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.resources.dll

System.Windows.Forms.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1586.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

使用最新版3.0,桌面背景并没有变化。

我使用的版本是

<startup> <supportedRuntime version="v4.0"/> <supportedRuntime version="v2.0.50727"/> </startup> <appSettings> <add key="version" value="v3.0" />

image文件夹下的图片确实在更新,但是桌面背景图并没有被设置,是我的使用方法不对吗?

使用环境:
Win7 专业版

Support larger image resolution

Nice application! The image is a little small on my 1080p desktop resolution though. Perhaps you could add support for larger images? It seems like larger resolution images are available as tiles, based on a little URL hacking:

Example of the small size you use at the moment:
http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2016/01/28/133000_0_0.png

Example of a larger version of the same image:
http://himawari8-dl.nict.go.jp/himawari8/img/D531106/2d/550/2016/01/28/133000_0_0.png
http://himawari8-dl.nict.go.jp/himawari8/img/D531106/2d/550/2016/01/28/133000_0_1.png
http://himawari8-dl.nict.go.jp/himawari8/img/D531106/2d/550/2016/01/28/133000_1_0.png
http://himawari8-dl.nict.go.jp/himawari8/img/D531106/2d/550/2016/01/28/133000_1_1.png

发现了一个崩溃信息。

公司电脑用的3.1的版本(很早之前下载的),之前也遇见过一次一样的现象,不知道3.2修复了没有

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: D:\EarthLiveSharp\images\0_0.png
at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at EarthLiveSharp.scraper.JoinImage()
at EarthLiveSharp.mainForm.timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

EarthLiveSharp
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///D:/EarthLiveSharp/EarthLiveSharp.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

版本v3.3 无法获取图片

版本v3.3,报错如下:

[get latest ImageID] 2016/10/17/234000
基础连接已经关闭: 接收时发生错误。 2016/10/17/234000
[image_folder]C:\Program Files\EarthLiveSharp-v3.3\images 
[image_source]http://res.cloudinary.com/*******/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106 [size]1

直接访问
http://himawari8-dl.nict.go.jp/himawari8/img/D531106
提示

You don't have permission to access / on this server.

感觉图片源貌似不太对?审查元素看到的img src是:

http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2016/10/18/235000_0_0.png

或者

http://himawari8-dl.nict.go.jp/himawari8/img/D531106/thumbnail/550/2016/10/18/235000_0_0.png

感觉他们网站目录貌似改变了,变成了包含GMT时间的路径,这样图片的网址就成了动态变化的了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.