by Patrick Corgan
𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
Run any of your flows whenever you want. Allows you to schedule time of day, and specify a payload value to be passed to the flow. You can schedule the flow either weekly (any combination of weekdays, including all) or monthly (any one day in each selected month). If the flow you are scheduling requires internet access, the scheduler can check for a connection before starting the flow.
If the scheduler can't start the scheduled flow, it will log the error. If the flow or flow beginning can't be found, the flow will be unscheduled.
You can schedule a flow, unschedule a flow, view the schedule, and clear the schedule.
If the flow stops, the schedule will automatically restart when the flow is restarted.
If you select multiple months, this flow will not let you choose a day that would be after the last day of the shortest month selected (leap years are not considered, so February will always limit you to 28 days).
This behavior is due to the way dates are handled in Android. If you were to select June 31st, the "Time await" block would fire on July 1st; February 30th would cause it to fire on March 1st or 2nd, depending on leap year.
The best way to deal with this, if you want a flow to run on the last day of every month (for example), is to schedule that flow three times. Once for February 28th; once for April, June, September, and November 30th; and once for January, March, May, July, August, October, and December 31st.
⚡𝘊𝘰𝘯𝘴𝘵𝘳𝘶𝘤𝘵𝘪𝘷𝘦 𝘤𝘰𝘮𝘮𝘦𝘯𝘵𝘴 𝘢𝘯𝘥 𝘤𝘳𝘪𝘵𝘪𝘤𝘪𝘴𝘮𝘴 𝘢𝘳𝘦 𝘢𝘭𝘸𝘢𝘺𝘴 𝘸𝘦𝘭𝘤𝘰𝘮𝘦. 𝘛𝘩𝘢𝘯𝘬 𝘺𝘰𝘶!⚡
Version 2: Fixed unconnected block that was preventing scheduled flow from running.
Versions 3, 4, & 5:
-Minor code optimization
-Error trapping and logging
-Added option to check for internet connection prior to running scheduled flow.
[Also: It's a hand. How cool is that? 👆]
Reviews and ratings can be submitted in the app.