node-red-contrib-gradient
v1.0.4
Published
Gradient calculator - computes rate of change of numeric values over time
Maintainers
Readme
node-red-contrib-rpo-gradient
A Node-RED node: Gradient
Calculates the rate of change (gradient) between consecutive numeric values using the actual elapsed time.
Install
npm install node-red-contrib-rpo-gradientOr via the Node-RED Palette Manager.
Inputs
- payload (number): Numeric sample value
- msg.reset=true: Reset state
Outputs
- Output 1: Smoothed gradient;
msg.gradient = { current, previous, gradient, unit, dt, smoothed, alarm, alarmRate }
Configuration
| Parameter | Description | |-----------|-------------| | Output unit | /s, /min, or /h | | Smoothing | Moving average window (samples) | | Decimal places | Rounding | | Alarm rate | Trigger alarm above this rate (0 = off) |
License
MIT
