Node-RED Smoothing Algorithms Node

0.1.2 · active · verified Sun Apr 19

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

npm install node-red-node-smooth
# After installation, restart Node-RED if it's running.
# Open your Node-RED editor (usually at http://localhost:1880).
# Drag the 'smooth' node from the palette (under 'function' or 'data-and-analytics' category) onto your flow.
# Configure the node by double-clicking it, selecting a smoothing algorithm (e.g., 'Mean'), and setting parameters like window size or smoothing factor.
# Connect an 'inject' node to its input to send numerical data (e.g., `msg.payload = 10`).
# Connect a 'debug' node to its output to view the smoothed results.
# Deploy the flow and observe the output in the debug sidebar.

view raw JSON →