{"library":"node-red-node-smooth","title":"Node-RED Smoothing Algorithms Node","description":"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.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-red-node-smooth"],"cli":null},"imports":["Install via npm: npm install node-red-node-smooth\nThen add 'smooth' node from the palette in Node-RED editor.","// In a custom Node-RED node .js file (e.g., ~/.node-red/nodes/my-smooth-node.js)\nmodule.exports = function(RED) {\n    function SmoothNode(config) {\n        RED.nodes.createNode(this, config);\n        // ... node logic ...\n    }\n    RED.nodes.registerType('smooth', SmoothNode);\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install node-red-node-smooth\n# After installation, restart Node-RED if it's running.\n# Open your Node-RED editor (usually at http://localhost:1880).\n# Drag the 'smooth' node from the palette (under 'function' or 'data-and-analytics' category) onto your flow.\n# Configure the node by double-clicking it, selecting a smoothing algorithm (e.g., 'Mean'), and setting parameters like window size or smoothing factor.\n# Connect an 'inject' node to its input to send numerical data (e.g., `msg.payload = 10`).\n# Connect a 'debug' node to its output to view the smoothed results.\n# Deploy the flow and observe the output in the debug sidebar.","lang":"javascript","description":"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}