Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bufordtaylor/a361feb830f87dfd3ca41dea78c74f61 to your computer and use it in GitHub Desktop.
Save bufordtaylor/a361feb830f87dfd3ca41dea78c74f61 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").
@baseer216
Copy link

Hi there

I have a 4k display connected to my mac. Is it possible to have this script format the pic to fit my 42 inch 4k display?

Thanks

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