0.1.4 • Published 4 years ago

node-red-contrib-cycle v0.1.4

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

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.