Skip to content

errorundefined/getspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetSpace – APOD wallpaper

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

This is work in progress

There's a lot to do and help needed, see issues.

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

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.

OSX

$ python -m pip install Pillow

Linux

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)

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.

Releases

No releases published

Packages

No packages published

Languages