Hi -
I built a simple smartapp that sends me a reminder every day at or near sunset based on a simple offset (in minutes, plus or minus). https://gist.github.com/mcilroyc/ee568d5a373bb199379b
I found all the example apps to be insufficient and/or buggy.
I started with this example app:
My version includes improvements to the above:
- Proper handlng of post-sunset reminders by using two alternating event handlers, avoiding the collision on the runOnce scheduler
- If installing/updating app after today’s sunset, schedule tomorrow’s in addition to today’s
- Use event’s dateValue() to avoid parsing a date string
Thoughts appreciated.