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:
The original payload is returned as payload_in.
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