Good evening everyone!
As it's winter time here and the skies are not going to cooperate in any viewing, sad panda , I am stuck inside in front of my Workstation. I've had this script I use for a couple of decades now that's been updated over time as server names change, paths change etc, and I ran across it while house keeping and though it might be enjoyable by others. It's nothing fancy by any stretch of the imagination, but it brings me a lot of simple joy
This script will go out to NOAA's server every 10 minutes, which is the soonest I can be ensured a new image of the earth has been taken and processed, fetch it off the server and throw it in a wall paper directory of your choosing.
I use KDE on slideshow to update this image as my Workstation background every 10 minutes so I can watch the earth go from night to day and day to night over a 24 hour period. I don't know why such a simple thing brings me a smile but it does. So if you are running FreeBSD (the OS it was written on), or a Linux variant, or any flavor of Unix really you might enjoy it as I do.
You can change the frequency it fetches a new image by changing the "sleep 600" line. I have it set to 10 minutes any sooner and you may get the same image twice, it's certain to be updated every 10m. And obviously you need to have the curl application installed, and you can set where you want to have curl stash the image by changing the line right after the -o option to wherever your wallpapers are stored. Clear skies everyone!
#!/bin/sh while [ "$INPUT_STRING" != "bye" ] do /usr/local/bin/curl -o /home/changeme/Desktop/wallpaper/Earth.jpg https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/latest.jpg sleep 600 done
Edited by X86BSD, 14 January 2020 - 07:52 PM.