Updates your background everyday based on NASA's Astromony photo of the day using their open API.
Requirements: Python 3.X+
git clone https://github.com/evanfitzgerald/nasa-background.git
cd nasa-background
pip3 install -r requirements.txt
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'
In order to run the file:
cd wherever_the_directory_is
python3 potd.py
If you have macOS the automator is a good solution to automate the process of manually running the file everyday.
To use the Automator:
- Start automator and select Application.
- Add 'Run Shell Script' to the workflow.
- Add the following to the script.
python ~/directory_of_choice/potd.py
- Go to System Preferences > Users & Groups > Login Items and then add the application you made with the Automator.
See the LICENSE file for license rights and limitations.