1.1.1 • Published 11 months ago

node-red-node-timeswitch v1.1.1

Weekly downloads
185
License
Apache-2.0
Repository
github
Last release
11 months ago

node-red-node-timeswitch

A Node-RED node to provide a simple timeswitch node to schedule daily on/off events.

Install

You can install by using the Menu - Manage Palette option, or running the following command in your Node-RED user directory - typically ~/.node-red

    cd ~/.node-red
    npm i node-red-node-timeswitch

Usage

Sets msg.payload to 1 during on times, and 0 during off times.

Also uses the suncalc module to allow use of dawn and dusk.

Dawn and dusk times can be offset both positively (+ve) for minutes after dawn or dusk, and negatively (-ve) for minutes before dawn or dusk..

The output emits a msg.payload of 1 or 0 every minute depending on whether the current time is during the selected on time or off time.

If you just need the transitions from 0->1 or 1->0 then follow this node with a filter (RBE) node.

You may also optionally specify a msg.topic if required.

Note: For a more complex version with more built-in options see node-red-contrib-bigtimer node, or for multiple schedules and a nice visual interface to cron then use Steve's node-red-contrib-cron-plus node.

1.1.1

11 months ago

1.1.0

11 months ago

1.0.0

1 year ago

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

5 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago