

- Download nasa picture of the day update#
- Download nasa picture of the day archive#
- Download nasa picture of the day download#
- Download nasa picture of the day windows#
It runs in your menu bar and provides you with a new space image or photograph every day, along with a brief explanation from a professional. While NASA Picture of the Day can't do too much about all that, it should help regular people like you and me learn a little bit more about our Universe, in a fun and engaging way.

Even a degree in astrophysics only guarantees you a minute amount of knowledge compared to what can still be learned about outer space. version output version information and exitĮxample: python3 nasa_apod.The Universe around our little planet is fascinating, possibly infinite, and almost completely unknown. S, -save-response flag to enable saving of request response s, -save-only request and save APOD but do not set R, -response-file="FILE" set response file name for saving response r, -random request APOD of a random past date n, -no-update do not request APOD from url, instead use i, -image-name="NAME" name to use to save APOD image f, -force-update disregard 24h file timestamp check and d, -date=# retrieve APOD for specific date c, -set-bg-cmd="CMD" command to use to set wallpaper for conf-write-defaults write default option values to the conf-file="FILE" configuration file to read on application Mandatory arguments to long options are mandatory for short options too. See the parameter section below for more information. The option can also be passed as a parameter, set-bg-cmd.
Download nasa picture of the day update#
The option can be set through the configuration file by adding or updating the set_bg_cmd option to the specific command needed in order to update the desktop wallpaper. Xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/image-style -s 5 xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image -s The script envokes the provided value as a system command and passes the fullpath file name of the APOD image as a parameter at the end of the command. Due to the large amounts of different environments available for Linux and BSD, the configuration will need to be tailored specifically for each desktop environment. If Linux or BSD is reported back in the python os platform call, the script uses an option var, set_bg_cmd, as a system command call to set the system wallpaper. NOTE: This will overwrite the currently specified configuration file A Note For The *Nixes NOTE: The configuration file option var names and the parameter names differ slightly.Ī default configuration file with all available option vars and their corresponding default values can be created by passing the parameter -conf-write-defaults to the script. If a parameter is passed, it will take precedence over any configuration file values.Ī specific configuration file name can be passed to the script with the -conf-file parameter. Each script parameter has a matching option var that can be set to change script functionality instead of passing the parameter. The script checks a configuration file on execution and reads any provided options and values to modify script functionality. Running the script with the ?, -h, or -help parameter will display the help text to the terminal: For instance you can set a specific date for the APOD, get a random date for the APOD, forego setting the wallpaper, and more. Various parameters can be passed to the script in order to alter script functionality. If Linux or BSD, envoke the set_bg_cmd option value as a system command to set APOD image as desktop wallpaper.If Windows, set APOD image as desktop wallpaper.
Download nasa picture of the day windows#
Determine system type (ie: Windows or Linux / BSD).
Download nasa picture of the day download#
Send a request to download the current APOD image to disk.Parse the request response to extract the URL of the current APOD image.Send a request to the main configured APOD URL.If prior APOD image timestamp is older than 24 hours, the script will:.If prior APOD image timestamp is less than 24 hours, the script will skip the request to download a new APOD image.Running the script without any parameters will perform these tasks: Or by command line by passing the script to python directly:.Run the script via the provided scripts from the nasa_apod.py directory:.
Download nasa picture of the day archive#
