- Notifications
You must be signed in to change notification settings - Fork2
azimut/daily-pic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Get and set the image of the day from different sites:
- nasa.apod
- nasa.apod.rand
- nasa.iod
- nasa.jpl
- skymap.astrobot
- skymap.heavensabove
- skymap.astronetru
- dilbert
- calvinandhobbes
- eatthattoast
- xkcd
- 4walled
- interfacelift
- wallhaven
- imgur.albums
- imgur.subreddit
- deviantart
- simpledesktops
- bing
- chromecast
- natgeo
- nasa earth observatory iotd
- latlong.nasa.msfc
- america.smn
- america.nasa.goes
- america.fvalk
- america.s.aw
- america.n.aw
- globe.dienet.mercator
- globe.dienet.peters
- globe.dienet.mollweide
- globe.dienet.rectangular
- arg.smn
- arg.nexsat
Feel free to add your own source :)
Pass the correspondent flag as argument to the script.For example, to get and set the wallpaper from nasa apod use the-a
flag:
$ bash do.sh -a nasa.jpl# NASA - Jet Propulsion Laboratory- Category: universeHTTP/1.1 200 OKDate: Fri, 11 Apr 2014 01:32:35 GMTServer: Apache/2.2.25 (Unix) PHP/5.5.9 JRun/4.0Last-Modified: Thu, 23 Jun 2011 14:46:19 GMTETag: "4647c4f-cd8d-4a66225dba4c0"Accept-Ranges: bytesContent-Length: 52621Content-Type: image/jpegX-Pad: avoid browser bugURL: http://www.jpl.nasa.gov/spaceimages/images/wallpaper/PIA13066-800x600.jpgFILE: /home/sendai/projects/daily-pic/pics/PIA13066-800x600.jpg
Go to where you want to save this script:
$ cd /home/usernamehere/projects
Clone this repo (or just download the zip file):
$ git clone 'https://github.com/azimut/daily-pic'
Add the following crontab as root or usingsudo
(if you are using vixie-cron or if you know how to configure cron you might try to add this as user instead of root):
# crontab -e0 */1 * * * su - usernamehere -c 'cd /home/usernamehere/projects/daily-pic; bash do.sh -a &>> pics/log.txt'
- Get more sources: daily random code of the day? (github/gist) daily webcam image of the day/hour?
- Add some kind of heuristic to determine what is the best fit for a wallpaper (what feh option use) based on the resolution of the current monitor.