open-index/open-npm huggingface dataset:
npm package: @knallle/node-red-contrib-is-day
Description: A node that, given a latitude and a longitude, passes `msg` to either of its' two outputs.
Author: Karl Svensson
Latest version: 1.0.3

# 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.