在GitHub看到 himawaripy的桌面插件感觉很nice,它会抓取由日本 Himawari 8 气象卫星拍摄的接近实时的地球照片,并将它设置成你的桌面背景。
安装完成后,你可以将它设置成每 10 分钟运行的定时任务(自然,它要在后台运行),这样它就可以实时地取回地球的照片并设置成背景了。
下面说下我在Mac上安装的教程。
环境:
Python3.x
Git命令
1.Python的版本是python3.x
2.下载himawaripy(没有Git命令的先安装Git命令)
cd ~/Downloads
git clone https://github.com/boramalper/himawaripy.git
3.进入到himawaripy下,进行安装。
cd himawaripy/
sudo python3 setup.py install
4.运行测试
himawaripy --auto-offset
#成功打印信息,并自动更替桌面壁纸
himawaripy 2.1.0
Updating...
Latest version: 2019/06/14 14:50:00 GMT.
Detected offset: UTC+08:00
Offset version: 2019/06/14 12:50:00 GMT.
Downloading tiles...
Downloading tiles: 1/16 completed...
Downloading tiles: 2/16 completed...
Downloading tiles: 3/16 completed...
Downloading tiles: 4/16 completed...
Downloading tiles: 5/16 completed...
Downloading tiles: 6/16 completed...
Downloading tiles: 7/16 completed...
Downloading tiles: 8/16 completed...
Downloading tiles: 9/16 completed...
Downloading tiles: 10/16 completed...
Downloading tiles: 11/16 completed...
Downloading tiles: 12/16 completed...
Downloading tiles: 13/16 completed...
Downloading tiles: 14/16 completed...
Downloading tiles: 15/16 completed...
Downloading tiles: completed.
Saving to'/Users/helingfeng/Library/Caches/himawaripy/himawari-20190614T005000.png'...
5.然后创建文件夹:
mkdir -p ~/Library/LaunchAgents/
6.进入下载的文件里的osx
7.把org.boramalper.himawaripy.plist拷贝到~/Library/LaunchAgents/下
cp org.boramalper.himawaripy.plist ~/Library/LaunchAgents/
拷贝完成的截图
8.启动定时任务
launchctl load ~/Library/LaunchAgents/org.boramalper.himawaripy.plist
大功告成!!!
拷贝了一张在GitHub上的 效果图:
效果图(因为我这是晚上,所以只能看到这个效果):