Change your wallpaper to today's Astronomy Picture of the Day, everyday – along with a brief explanation.
There's a lot to do and help needed, see issues.
You sould get an API key as this thing here uses the limited DEMO_KEY
– you can do so for free at (NASA Open APIs). After that, in line 43 of getspace.py, remove DEMO_KEY
and put your API key after https://api.nasa.gov/planetary/apod?api_key=
.
In order to get information on the current APOD image onto your background image, you need to install (Pillow) if it is not already shipped with your OS. If this is not done, the image (without info) is still being set as the new desktop background.
Note that this is still Python 2.x: At some point we will move to Python 3.x, but until then note that you have to use the correct Python env/Pillow version.
$ python -m pip install Pillow
Use native operating system package manager to install Pillow (comp. the Pillow Docs), for example:
$ apt-get install python-pillow
$ zypper install python-Pillow
(openSUSE)
$ dnf (or yum) install python-pillow
(Fedora)
In order to schedule getspace to do it's thing automatically you've to:
- put the
getspace.py
to/Users/USERNAME/.bin/getspace.py
- change the
USERNAME
within the "Program" string inlocal.getspace.plist
- add the changed
local.getspace.plist
into your~/Library/LaunchAgents
30 12 * * * /path/to/getspace.py
(alyways 12.30h)
@reboot /path/to/getspace.py
(after Reboot, checken, if after hibernate)
if the above is not (yet) done, you can always run the script manually like so:
$ python /path/to/getspace.py
It is discouraged to use this script in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.