@knallle/node-red-contrib-is-day
v1.0.3
Published
A node that, given a latitude and a longitude, passes `msg` to either of its' two outputs.
Downloads
23
Maintainers
Readme
node-red-node-is-day
A node that, given a latitude and a longitude, passes msg
to either of its' two outputs.
A typical use case for this is to control lights only if the sun is down.
The node expects two inputs to be passed: msg.lat
and msg.lon
. This coordinate is used to calculate the times for various sun events, which are then used to determine if the sun is up or not.