1.3.0 • Published 3 years ago

node-red-contrib-moving-average v1.3.0

Weekly downloads
33
License
WTFPL
Repository
github
Last release
3 years ago

Moving average for Node-RED

A Node-RED node that calculates moving averages.

Moving averages are calculated on a per topic basis.

The amount of messages over which the moving average is calculated can be configured. It handles moving averages over numbers and booleans. Booleans are converted to 1 and 0.

Additionally you can send some commands to the node to manipulate it:

  • "get": Gets the current moving average whithout adding a new number.
  • "pop": Removes the oldest stored number.
  • "clear": Removes all stored numbers.
  • "count": Counts the number of currently stored numbers.
  • "min": Returns the minimum of the currently stored numbers.
  • "max": Returns the maximum of the currently stored numbers.

The original payload is returned as payload_in.

Links

GitHub: https://github.com/AmyAmy/node-red-contrib-moving-average

NPM: https://www.npmjs.com/package/node-red-contrib-moving-average

Node-RED: https://flows.nodered.org/node/node-red-contrib-moving-average

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago