node-red-contrib-peak-value-calculator
v1.0.1
Published
A Node-RED node for calculating peak (maximum) and lowest peak (minimum) value
Downloads
36
Readme
Node-RED Peak Value Calculator Node
Table of Contents
Overview
The Node-RED Peak Value Calculator Node is a node designed for Node-RED. It allows you to effortlessly calculate peak and low peak values in real-time data streams. It's particularly useful for systems that require monitoring and analysis of peak data points, such as analog input systems, control systems, and more.
Installation
You can install this node directly from the Node-RED palette manager, or use the following npm command:
npm install node-red-contrib-peak-value-calculator
After installation, the node will appear in your Node-RED palette under the category you specified.
Usage
Features
- Start/Stop Controls: This feature allows you to control when the node starts or stops accepting new data points.
- Peak Calculation: The node will automatically calculate the peak value among the received data points.
- Status Indicators: Real-time status updates are shown for all the operations performed by the node.
- Ease of Use: Simply drag and drop the node into your Node-RED flow to start using it.
Input
Send boolean input with following topics
- start (boolean): Starts accepting values for peak calculation
- stop (boolean): Stops accepting values
- peak (boolean): Triggers a peak value calculation and sends the result containing peak and low peak value
- low_peak (boolean): Triggers a peak value calculation and sends the result containing low peak value only
- clear (boolean): Clears the stored peak value and stops accepting values
Example Workflow
- Insert the Peak Value Calculator Node into your Node-RED flow.
- Connect it to the desired data stream.
- Use control messages to start and stop data collection and to initiate peak value calculation.
- The node will output the calculated peak value in the specified format.
For more detailed information, please refer to the example
folder in the GitHub repository.
Applications
- Signal Processing: For normalizing and limiting audio signals.
- Control Systems: To monitor peak values for maintaining system stability.
- Healthcare: To analyze peak values in ECG/EKG and EEG data.
- Data Analytics: Useful in detecting peaks in financial data, stock market trends, or sensor data.
- Electrical Engineering: For measuring peak voltage and current levels.
- Networking: To monitor peak data traffic for optimizing network performance.
Contributing
We welcome contributions! Please see the CONTRIBUTING.md
file for details.
License
This project is licensed under the GPL-3.0 License - see the LICENSE.md
file for details.
Contact
For any questions or suggestions, please open an issue on the GitHub repository: Node-RED Peak Value Calculator.
Thank you for using the Node-RED Peak Value Calculator Node!