WallpaperRotation (get picture of the day)

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
gyst
Posts: 12
Joined: 01 Feb 2015 12:17

WallpaperRotation (get picture of the day)

Post by gyst » 01 Feb 2015 12:46

WallpaperRotation.xml
(22.59 KiB) Downloaded 1234 times
This flow will set your wallpaper to the picture of the day from one of these sources:
- http://photography.nationalgeographic.c ... f-the-day/
- http://apod.nasa.gov/apod/
- http://bing.com/
- http://commons.wikimedia.org/
- http://en.wikipedia.org/
- random pictures from you own favorite folders

Notes:
  • You should select and set the "Time" trigger if you want to change the start of the flow. The "Global Variable" triggers are needed for the flow itself.
  • If you disabled the notification and want to enable it again, open up "WR enable notification" action and execute this action by yourself.
  • I tried to stick everything into one flow (global variable triggers for notification actions), but this way the trigger causes lots of actions. And that's why I have set the emergencyStopCount to 300. But it is still possible that the flow will cause an emergency stop if you change the sources in a short period of time. In this case you can still increase the max. executed actions per minute (open flow, go to options, select specific and increase the number). But nevertheless I think 300 should be fine.
  • Favorite folders: Open up the action "WR script: prepare flow" (it's right after the trigger). Edit the last "addMapEntry"-line to your purpose. You can duplicate that line and customize it in order to select different folders and names for your favorite randomly selected pictures (family/nature/...).
2015-02-13 Changelog:
  • Entry for National Geographic was updated. Now it gets the whole picture.
  • There is a notification on the statusbar (including the actions: save, change and hide).
  • Save action: you can save the current wallpaper if you like it.
  • Change action: choose one of the three sources (picture will be refreshed automatically if you choose a different source).
  • Hide action: there is an option to hide the notification if you don't want it.
2015-02-14 Changelog:
  • Added two new sources (wikimedia and wikipedia)
  • Increased emergencyStopCount to 200.
  • Cleaned up the flow a little bit.
2015-02-15 Changelog:
  • Search for image code from wikimedia and wikipedia in source html optimized (search with RegEx).
  • Full size images from wikimedia and wikipedia are way too big (some launchers may crash). 2048px width should be fine.
2015-02-16 Changelog:
  • More reliable RegEx search for strings with pictures from wikimedia and wikipedia.
  • Fixed another issue with wikimedia and wikipedia: if file size is smaller than 1 KByte send again request with full resolution. The problem is if the width of the daily image is smaller (2000px) than our desired thumbnail width (2048px) we only get a small file (< 1KB) containing an error page from the wiki site.
  • Swept off some needless code.
  • Some layout changes.
2015-02-21 Changelog:
  • No need for "global_path" anymore, just found the getExternalStorageDir-function.
  • Added another source for your own favorite pictures (you can add and/or modify additional favorite folders, see notes).
  • Optimized and cleaned up image code processing.
  • Swept off lots of needless code (most conditions only need one line for true or false).
  • Increased emergencyStopCount to 300 (sometimes emergency stops were triggered while I was playing around with favorite pictures).
Last edited by gyst on 23 Feb 2015 13:39, edited 13 times in total.

Post Reply