I decided opening the desk clock was a little boring. I also noticed Tasker had a whole bunch of image manipulation methods and also an HTTP Get method. So I threw together some Ruby to scrape Flickr for a random image and pushed it to Heroku.
It seems that you can no longer easily export Tasker profiles, or else I would post it here. But it is pretty simple:
- Add a new Profile for Event > Power and set it to Wireless (or Any if you prefer)
- Create a new Task:
- Turn on Night Mode
- Set Variable %FLICKRIMG to Download/flickr.img (a static name will replace old images to save space)
- HTTP Get
Server: random-flickr-image.herokuapp.com
Output File: %FLICKRIMG - Set Wallpaper to %FLICKRIMG
- Also create an Exit Task to turn Night Mode back off and set the wallpaper back to normal (or don't, and have a new wallpaper for the day!)
Here's a video of it in action. For a 3 hour project, I'm pretty excited.
No comments:
Post a Comment