node-red-node-smooth is a Node-RED package providing a collection of simple smoothing algorithms for processing incoming numerical data. It includes functions like Minimum, Maximum, Mean, Standard Deviation, High Pass, and Low Pass smoothing. The current stable version, 0.8.0, was released approximately a year ago, indicating an active but not rapid release cadence. This node is specifically designed for the Node-RED environment, a low-code programming platform for event-driven applications, differentiating it from general-purpose JavaScript libraries. Its primary strength lies in its direct integration into Node-RED flows, allowing users to easily incorporate data smoothing into their visual programming logic without writing complex code. It operates exclusively on numerical inputs and can reset its internal state via a `msg.reset` message.
npm install node-red-node-smoothVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install the node-red-node-smooth package and integrate its smoothing functionality into a basic Node-RED flow for processing data.
Validate input messages before sending them to the smooth node, ensuring `msg.payload` is a number: `if (typeof msg.payload !== 'number') { return null; }`Refer to the node's help documentation in the Node-RED editor for detailed explanation of the smoothing factor's behavior and its relationship to traditional alpha values.
Only send `msg.reset` when you explicitly intend to reset the node's internal state. Design your flows to prevent accidental reset signals.
Ensure that the `msg.payload` or the property configured for smoothing is always a number. Use a 'Change' or 'Function' node upstream to convert or filter non-numeric inputs.