Skip to content

Latest commit

 

History

History
77 lines (45 loc) · 2.51 KB

README.md

File metadata and controls

77 lines (45 loc) · 2.51 KB

GetSpace – APOD wallpaper

Change your wallpaper to today's Astronomy Picture of the Day, everyday – along with a brief explanation.

Todo

  • add upscaling (to avoid blurred font rendering)
  • add support for multi display setups

OSX

  • get com.apple.desktop.admin.png thing to work

Linux

  • add def dosetbackground(path)
  • add def getscreensize()
  • add def getfontvars(height, explanation)
  • add cron explanation

Readme

Requirements

API Key

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=.

Pillow (PIL Fork)

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.

OSX

Most of the times:

$ sudo easy_install pip

$ (sudo) pip install Pillow

Linux

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)

Scheduling

In order to schedule getspace to do it's thing automatically you've to:

OSX

  • put the getspace.py to /Users/USERNAME/.bin/getspace.py
  • change the USERNAME within the "Program" string in local.getspace.plist
  • add the changed local.getspace.plist into your ~/Library/LaunchAgents

Linux (notes)

30 12 * * * /path/to/getspace.py (alyways 12.30h)

@reboot /path/to/getspace.py (after Reboot, checken, if after hibernate)

(comp. CronHowto on Ubuntu)

executing by hand

if the above is not (yet) done, you can always run the script manually like so:

$ python /path/to/getspace.py

Authors

error:undefined design

License

MIT

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.