Skip to content

uses NASA's open API to make their astronomy picture of the day your background everyday

License

Notifications You must be signed in to change notification settings

evanfitzgerald/nasa-background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nasa-background

Updates your background everyday based on NASA's Astromony photo of the day using their open API.

Installation

Requirements: Python 3.X+

git clone https://github.com/evanfitzgerald/nasa-background.git

cd nasa-background

pip3 install -r requirements.txt

Getting an API key & File Storage

After cloning the projects files and installing the requirements you must request to get an API key for access to NASA's API. (click here)

Next, find a directory to store the files and edit the following in the potd.py file:

# enter nasa api key
api_key = 'enter_the_api_key_here'

# enter where you want the photos to be stored
filename = 'enter_the_directory_here'

Usage

In order to run the file:

cd wherever_the_directory_is

python3 potd.py

Automator

If you have macOS the automator is a good solution to automate the process of manually running the file everyday.

To use the Automator:

  1. Start automator and select Application.
  2. Add 'Run Shell Script' to the workflow.
  3. Add the following to the script.
python ~/directory_of_choice/potd.py
  1. Go to System Preferences > Users & Groups > Login Items and then add the application you made with the Automator.

Liscense

See the LICENSE file for license rights and limitations.

About

uses NASA's open API to make their astronomy picture of the day your background everyday

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages