node-red-contrib-cycle 0.1.4

A node that cycles sequentially between all outputs.

npm install node-red-contrib-cycle

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.

Node Info

Version: 0.1.4
Updated 5 years, 1 month ago
Rating: 5.0 2

Categories

Actions

Rate:

Downloads

15 in the last week

Nodes

  • cycle

Keywords

  • node-red
  • cycle

Maintainers