-
-
Save 1a57danc3/58b8c9f7f355732a7b6717192498870e to your computer and use it in GitHub Desktop.
download himawari8 wallpaper for mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#delay 30 minute | |
delay=-v-30M | |
#image location | |
location=$HOME/Pictures/himawari8 | |
date=$(date -u $delay "+%Y/%m/%d") | |
file_name=$(date -u $delay "+%H")$(echo "($(date -u $delay "+%M"))/10 * 10" | bc)"00_0_0.png" | |
url=http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/$date/$file_name | |
#url=http://res.cloudinary.com/ky0ncheng/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/$date/$file_name | |
mkdir $location | |
cd $location | |
#Override download | |
#wget -q -O $file_name $url | |
axel -n 100 -o $file_name $url | |
img_path=$location/$file_name | |
osascript <<EOF | |
tell application "Finder" to set desktop picture to POSIX file "$img_path" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axel must installed before!