Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active January 11, 2020 08:57
Show Gist options
  • Save ericboehs/5b66996b56313ef58bfe to your computer and use it in GitHub Desktop.
Save ericboehs/5b66996b56313ef58bfe to your computer and use it in GitHub Desktop.
# This script will create a cron that downloads the latest image from Himawari 8 every 5 minutes. I use it as my wallpaper.
#
# The Himawari 8 weather satellite acquires 5500x5500 images of Earth every 10 minutes. It captures other weather related
# stills but the full disk, true color is the most amazing.
# The latest is accessible at
# http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg.
#
# The satellite was launched in July of 2015. It's the highest resolution
# camera we currently have pointing at earth (stationary at the L1 point).
#
# For more information check out this post on reddit:
# https://www.reddit.com/r/space/comments/43fwuk/new_2k_footage_from_the_himawari8_satellite_of_24/
mkdir -p ~/Pictures/Himawari-8
echo "0/5 * * * * (export WALLS=~/Pictures/Himawari-8; rm \$WALLS/*.jpg; /usr/bin/curl -s http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg > \$WALLS/\`date -u +\%FT\%H-\%M-\%S\`.jpg)" >> ~/.crontab
crontab ~/.crontab
# Then set your Desktop to use the Himawari-8 directory for a new picture every 5 mins (Use "Fit to Screen").
@ericboehs
Copy link
Author

Developer note: I had to add the date to the filename or else OS X wouldn't see it as a new picture (and wouldn't update it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment