myapod.py v1.0
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
2025-10-27: 0.4 show explanation
2025-10-29: 0.5 download high-resolution image
2025-11-09: 0.6 Use DEMO_KEY if no NASAOPENAPIKEY
2026-01-17: 0.7 Show saved image if api.nasa.gov is not working
2026-05-31: 0.8 set wallpaper to all virtual desktops with .exe
2026-07-26: 0.9 fix: may fail to set wallpaper to all virtual desktops
2026-10-08: 1.0 fix: API URL changed, retry get image
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. 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: YYMMDD):
python myapod.py 230815
or
myapod.exe 230815
3. Set a random APOD image:
python myapod.py r
or
myapod.exe r
---