node-red-contrib-cycle

0.1.4 • Public • Published

node-red-contrib-cycle

A node that cycles sequentially between all outputs.

For the first message, the flow will be routed to the first output, on the next to the second and so on. After reaching the last output, the next message will again be routed to the first output.

The internal state is only stored in memory, so after restarting Node-RED, the next message will be routed to the first output.

Multiple nodes may be used in the same flow without interfering with each other.

Sending a message with msg.reset set, will stop that flow and the next message will be routed to the first output.

Sending an integer value with msg.skip will use that value to increment the internal counter (default: skip = 1). So with msg.skip = -1 it will cycle backwards.

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-cycle

Weekly Downloads

37

Version

0.1.4

License

none

Unpacked Size

5.94 kB

Total Files

6

Last publish

Collaborators

  • elzoido