myapod.py v0.3
https://drive.google.com/drive/folders/1ZsiDdke0kgTj9KFHCxNI2IhCSHjG2iVQ?usp=drive_link
history:
2025-09-23: 0.0 initial release
2025-09-27: 0.1 build as exe
2025-09-28: 0.2 exe without console
2025-10-13: 0.3 set wallpaper to all virtual desktops
Set NASA's Astronomy Picture of the Day (APOD) as your Windows desktop wallpaper.
---
* Prerequisites:
- Windows 11
- Powerhsell VirtualDesktop module
If you use myapod as exe, Python is not required.
- Python 3.10 or higher
- Required Python packages:
- requests
- win11toast
Install dependencies:
pip install requests win11toast
Install-Module VirtualDesktop
* Setup
1. Get your NASA API Key at https://api.nasa.gov/
2. Set your NASA API Key in the enviroment variable: NASAOPENAPIKEY
3. Locate the followings at the same directory:
myapod.py
myapod.exe
myapod.ps1
---
* Usage:
1. Set today's APOD image:
python myapod.py
or
myapod.exe
2. Set APOD image for a specific date (format: YYYY-MM-DD):
python myapod.py 2023-08-15
or
myapod.exe 2023-08-15
3. Set a random APOD image:
python myapod.py r
or
myapod.exe r
---