https://github.com/niu541412/apod_mac_daily
A script that works together to download the astronomy picture of the day (also know as APOD) and set it as the current desktop wallpaper in MacOS
https://github.com/niu541412/apod_mac_daily
apod macos nasa wallpaper
Last synced: 7 months ago
JSON representation
A script that works together to download the astronomy picture of the day (also know as APOD) and set it as the current desktop wallpaper in MacOS
- Host: GitHub
- URL: https://github.com/niu541412/apod_mac_daily
- Owner: niu541412
- License: mit
- Created: 2019-01-13T14:22:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T08:59:35.000Z (12 months ago)
- Last Synced: 2025-03-20T21:38:33.661Z (8 months ago)
- Topics: apod, macos, nasa, wallpaper
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 12
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# APOD Mac Daily
A script that works together to download the astronomy picture of the day (also known as [APOD](https://apod.nasa.gov/apod/)) and set it as the current desktop wallpaper in MacOS.
## HOW IT WORKS
`chmod +x *sh`
The scripts work by requesting the APOD API, extracting the location of the HD version of the daily picture from that, and downloading it. That downloaded picture will then be set as the wallpaper using osascript on every desktop and a notification will be sent. After the image file has been set as the current wallpaper it will be left in the ./tmp directory (or specify a parameter that points to a directory) where you can keep it if you like. This script will remove the outdated images several days later.
You can edit your crontab file (`crontab -e` in the terminal) to make this script work automatically and periodically. For example
```cron
0 12 * * * /Users/username/Pictures/APOD_Mac_Daily/apod_daily.sh
```
## REQUIREMENT
MacOS
## KNOWN ISSUE
These scripts work by grabbing the link to the big version of an image, however sometimes the APOD people use flash videos or animated GIFs instead of a bigger JPEG picture, these obviously don't work so the script doesn't even try to download these.