The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Google Calendar Switch => Topic started by: kalavo on May 10, 2018, 01:59:58 am

Title: Prior notification of an event start
Post by: kalavo on May 10, 2018, 01:59:58 am
Looking for advice to trigger events before the start of a calendar item. Current experience with GCal3 makes me think I have to roll my own in either Lua or PLEG, but want to see if anyone has already done this.

I work widely varying shifts, and would like to trigger events 1 hour and 15 minutes before the start time. So far my best bet seems to be to use PLEG to run a script regularly checking whether the next calendar entry will occur, and sleeping until the period before.

Has anyone done this and have any suggestions or example code?

Thanks!
Title: Re: Prior notification of an event start
Post by: Stuart on May 10, 2018, 10:29:40 am
StartDelta and EndDelta are your friends ....