biddster / node-red-contrib-schedex

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

Solar time way off #55

Open msteinhartOPC opened 5 years ago

msteinhartOPC commented 5 years ago

I have confirmed that the Latitude and Longitude are correct but the solar times are considerably off. Set the On time to “solarNoon” and the display is stating that ON will be at 17:01, (sunsetStart – 23:51, sunrise – 10:09 …)

msteinhartOPC commented 5 years ago

Update, the displayed time remained incorrect but the triggered light sequence went on at the proper time. (set for sunset, triggered 19:54)

msteinhartOPC commented 5 years ago

Update – the location where the system is EDT, GMT / UTC -4 When setting an ON time or OFF time the display below the node is off by 4Hr. (On Set for 22:35 displays as “ON at 22:35”) triggers at 18:35. Sun based setting trigger at the proper time but display at GMT/UTC. How do you get the node to display and use local time for the “On time” and “Off time” fields? Note - running Node-Red in Docker.

biddster commented 4 years ago

Do you know what the time zone in the container is set to? Schedex doesn't do anything other than use the moment library which uses the system time. So it works fine here in the UK, even across daylight saving.

Is your container running on UTC?