在GitHub看到 himawaripy的桌面插件感覺很nice绩蜻,它會抓取由日本 Himawari 8 氣象衛(wèi)星拍攝的接近實時的地球照片室埋,并將它設(shè)置成你的桌面背景办绝。
安裝完成后,你可以將它設(shè)置成每 10 分鐘運行的定時任務(wù)(自然姚淆,它要在后臺運行)孕蝉,這樣它就可以實時地取回地球的照片并設(shè)置成背景了腌逢。
下面說下我在Mac上安裝的教程。
環(huán)境:
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.然后創(chuàng)建文件夾:
mkdir -p ~/Library/LaunchAgents/
6.進入下載的文件里的osx
7.把org.boramalper.himawaripy.plist拷貝到~/Library/LaunchAgents/下
cp org.boramalper.himawaripy.plist ~/Library/LaunchAgents/
拷貝完成的截圖
8.啟動定時任務(wù)
launchctl load ~/Library/LaunchAgents/org.boramalper.himawaripy.plist
大功告成J缑怠C婢Α!
拷貝了一張在GitHub上的 效果圖:
效果圖(因為我這是晚上土涝,所以只能看到這個效果):