Bing, Spotlight, and Chromecast Wallpapers
MIT License
ssh-keygen -t rsa -b 8192 -f wallpapers-key -C "[email protected]"
(no password)wallpapers-key.pub
, enable "Allow write access", click "Add key"cd /srv/www
cp ~/wallpapers-key .
ssh-agent bash -c "ssh-add wallpapers-key && git clone --branch wallpapers [email protected]:you/wallpapers"
mv wallpapers-key wallpapers
Authorize app for your account
https://api.imgur.com/oauth2/authorize?client_id=CLIENT_ID&response_type=token
access_token
and refresh_token
from URLCreate target Imgur album
http://imgur.com/a/iMWJw
> imWJw
)Save above info in credentials file (/srv/www/wallpapers/imgur.json
)
{
"client_id": "CLIENT_ID",
"client_secret": "CLIENT_SECRET",
"album_id": "ALBUM_ID",
"access_token": "ACCESS_TOKEN",
"refresh_token": "REFRESH_TOKEN"
}
crontab -e
0 10 * * * cd /srv/www/wallpapers && ./update-images.sh 2>&1 | /usr/bin/logger -t wallpapers-update
0 11 * * * cd /srv/www/wallpapers && ./sync-imgur.sh 2>&1 | /usr/bin/logger -t wallpapers-sync
Copyright © 2016 Chris Schmich MIT License. See LICENSE for details.