node-red-contrib-roster 0.0.6

Record sucessive unique messages and mark those older than a defined age

npm install node-red-contrib-roster

#Node Red Roster Node

This node keeps a record of all unique messages to it and outputs an array of them. 'Unique' is defined as messages which contain a unique value of the index specified by the configuration parameter 'indexProperty'

The node keeps a record of the last time that each unique value was received. If the last message was less than 'timeout' seconds ago, the entry is marked as active otherwise it is marked as inactive.

Typically, this node is used to keep track of active devices. Each device sends a periodic message with say, a unique deviceID to a single MQTT topic, which forwards the messages to the roster node which uses deviceID as its indexProperty.

The roster array can then be used to show all known devices and their active state.

Node Info

Version: 0.0.6
Updated 1 year, 8 months ago

Downloads

0 in the last day
8 in the last week
35 in the last month

Nodes

  • roster

Keywords

  • node-red
  • thingstudio

Maintainers

  • mkarliner