bdunbar / nasa-apod-desktop

Automatically downloads and sets the NASA picture of the day (APOD) as your desktop in OSX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nasa-apod-desktop

Python Script to Download the NASA APOD and Set it as Your Background for OSX

About:

The popular NASA Astronomy Picture of the Day produces wonderful images that make for a great desktop background. This script will download the NASA APOD and set it as your background in OSX.

NASA APOD Example

http://en.wikipedia.org/wiki/Astronomy_Picture_of_the_Day

http://apod.nasa.gov/apod/astropix.html

Tested on, OSX 10.7.4 During testing, it just sets the background for the space the terminal is on when it is run. I have no idea how this will interact with cron. I'll find out over the next few days.

Development:

I just modified it to work on OSX, and Commented out the use of PIL and the resizing of the image, as OSX can deal with that itself.

Installation:

  • Place the file wherever you like and chmod +x it to make it executable
  • Set the defaults in the file
  • Edit cron.txt to properly reference the file, and adjust the time at which it runs if you want. (First number is minutes, next is hours.)

To Do:

  • Nothing, I don't really intend to do much with it.

License:

Open-source and free for use.

Copyright 2012 David Drake

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author:

David Drake

@randomdrake | http://randomdrake.com | LinkedIn

Modifier:

Theo Belaire

About

Automatically downloads and sets the NASA picture of the day (APOD) as your desktop in OSX.

License:Apache License 2.0