Is there any way to do an every other day at a certain time schedule in PLEG?
I’m testing a regular PLEG schedule with a daily on at 3am and an off interval of 47:55:00. My thinking is the schedule will evaluate as true at 3am, stay true for 47 hours and 55 minutes before turning false and then change to true again five minutes later at 3am firing the logic action via a trigger.
I’ll know tonight if it works.
My approach (which works in Lua scene code, I don’t know about PLEG) would simply be to schedule a daily event and then calculate the Unix epoch day number. If it’s odd (or even) then abort else proceed.
Epoch day is simply
local day = math.floor(os.time()/24/60/60)