@knallle/node-red-contrib-is-day 1.0.3

A node that, given a latitude and a longitude, passes `msg` to either of its' two outputs.

npm install @knallle/node-red-contrib-is-day

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.

Node Info

Version: 1.0.3
Updated 1 year, 6 months ago
License: Apache-2.0
Rating: not yet rated

Categories

Actions

Rate:

Downloads

13 in the last week

Nodes

  • is day

Keywords

  • node-red
  • suncalc
  • sunrise
  • sunset
  • daylight

Maintainers