Scheduler for node-red which allows you to enter on/off times as 24hr clock (e.g. 01:10) or suncalc events (e.g. goldenHour). It also allows you to offset times and randomise the time within the offset.
23
stars
17
forks
source link
Initial scheduling is wrong if time + offset is after now. #29
Current time = sunset + 1 minute On time = sunset On offset = 60
Redeploy and the first on event will be tomorrow (or the next enabled day). It should be current + 59 minutes.
Looks like in the schedule method, we determine if the event is after now before applying the offset.
May be related to #24