Nearly Perfected Mystique

    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

    Install

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

    DownloadsWeekly Downloads

    29

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    23.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • majektom