Change your wallpaper to today's Astronomy Picture of the Day, everyday – along with a brief explanation.
- add upscaling (to avoid blurred font rendering)
- add support for multi display setups
- get
com.apple.desktop.admin.png
thing to work
- add
def dosetbackground(path)
- add
def getscreensize()
- add
def getfontvars(height, explanation)
- add cron explanation
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.
Most of the times:
$ sudo easy_install pip
$ (sudo) pip install Pillow
Use native operating system package manager to install PIL/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.