https://github.com/rdmtc/node-red-contrib-combine
Node-RED Nodes that outputs combinations of consecutive incoming messages
https://github.com/rdmtc/node-red-contrib-combine
combine list logic node-red statistics
Last synced: 11 months ago
JSON representation
Node-RED Nodes that outputs combinations of consecutive incoming messages
- Host: GitHub
- URL: https://github.com/rdmtc/node-red-contrib-combine
- Owner: rdmtc
- License: mit
- Created: 2018-04-21T10:37:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T21:07:33.000Z (almost 7 years ago)
- Last Synced: 2025-07-06T00:57:07.039Z (12 months ago)
- Topics: combine, list, logic, node-red, statistics
- Language: JavaScript
- Homepage:
- Size: 340 KB
- Stars: 6
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-combine
[](http://badge.fury.io/js/node-red-contrib-combine)
[](https://david-dm.org/rdmtc/node-red-contrib-combine)
[](https://travis-ci.org/rdmtc/node-red-contrib-combine)
[](https://coveralls.io/github/rdmtc/node-red-contrib-combine?branch=master)
[](https://github.com/sindresorhus/xo)
[![License][mit-badge]][mit-url]
> Node-RED Nodes that output combinations of consecutive incoming messages
These nodes aim to solve typical use cases where multi-input nodes (something that doesn't exist in Node-RED's concept)
would be convenient. Incoming messages are stored internally by the nodes so combinations of multiple messages can be
provided. Distinction of these messages is based on their `topic` property.
## Prerequisites
node-red-contrib-combine requires Node.js version 7.0.0 or higher.
## Nodes
#### If
Forwards messages to the first output when previously received a truthy payload on "Condition Topic", otherwise messages
will be routed to the second output.
#### Logic
Logic combination of incoming messages (And, Or, Xor, Nand, Nor, Xnor).
#### Delta
Simple subtraction of the values received on two configured topics.
#### Bangbang
Bang-bang (2 step / on-off) Controller. Emits `true` when the the payload value exceeds the upper bound, emits
`false` when the payload goes below the lower bound. You could e.g. use this as a simple thermostat for a
climate control, feed in the actual temperature and use the output to control a cooling device. For a heating
device you would have to use the "invert" option, so you receive `false` when exceeding the upper bound and
`true` when going below the lower bound.
#### Statistic
Calculate statistic samples like e.g. min, max, mean, median, ... from incoming payloads. Message distinction can be
configured to `msg.topic` or `msg._id`. A timeout can be configured that removes messages from the internal cache.
The statistics are re-composed when a message times out.
#### List
Compose a table of consecutive incoming topics and payloads. Output as array, csv, html table or html list. Columns and
sort order can be configured. Message distinction can be configured to `msg.topic` or `msg._id`. A timeout can be
configured that removes messages from the internal cache. The tables are re-composed when a message times out.
#### Defer
Defer a message with truthy payload for given time.
If another message arrives with falsy payload the timer is cancelled.
Keeps track on each topics state, only one message per topic will be sent until reset by a falsy payload.
## License
MIT (c) Sebastian Raff
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE