node-red-contrib-sun-event-trigger

1.1.1 • Public • Published

License: MIT Build Status

node-red-contrib-sun-event-trigger

A simple node-red node that, for a given sun event, calculates the time of next occurrence of the event at a given geographic location. The node injects a message into the flow at the calculated time.

The node calculates the sun event occurrence time by means of the SunCalc library.

Description

This node calculates the time of next occurrence of a given sun event at a given geographical location and injects a message into the flow at the calculated time. The node allows to configure a time offset (either negative or positive) for the injection time. Additionally, the user can manually trigger message injection via the node-red admin panel, similarly as they can do for the standard node-red's inject node.

Installation

You can install the node by the node-red's palette manager or by executing the following command in your node-red's home directory:

npm install node-red-contrib-sun-event-trigger

Usage

Use the node in the same way as you would use the standard node-red's inject node. For example:

inject example

Configuration

See the node's help page in the node-red's admin panel for exhaustive information.

Appreciation

If you want to say thank you by donation, you can do it here: Donate

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    24
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    24
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i node-red-contrib-sun-event-trigger

Weekly Downloads

24

Version

1.1.1

License

MIT

Unpacked Size

23.9 kB

Total Files

9

Last publish

Collaborators

  • majektom