npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-machine-condition-forecast

v1.0.0

Published

Node-RED node for time-series forecasting and anomaly detection using Exponential Smoothing

Downloads

6

Readme

node-red-contrib-forecast

This Node-RED custom node allows you to perform time-series forecasting and anomaly detection using exponential smoothing. This can be particularly useful for predictive/preventive maintenance scenarios.

Installation

npm install node-red-contrib-forecast


## Usage

1. Once installed, you will find the forecast node in the function category in the Node-RED interface.
2. Drag and drop the node into your flow.
3. Double-click on the node to configure its properties:

| Property | Description |
|---|---|
| Alpha | The exponential smoothing factor (default value is 0.5). |
| Number of Standard Deviations | This value sets the threshold for anomaly detection. If a data point's deviation from the forecasted value is greater than this many standard deviations, it is considered an anomaly (default value is 2). |

4. Connect the node's input to a source of numeric data and its output to a node that will handle the result.
5. The output of this node will be a JSON object that contains two fields:

| Field | Description |
|---|---|
| value | The current data point value. |
| status | A string that is either "Normal" or "Anomaly". |

## Predictive/Preventive Maintenance Use Case

In predictive/preventive maintenance scenarios, the goal is to predict failures or issues before they occur so they can be prevented. This often involves monitoring some sort of metric or sensor data over time, such as temperature or vibration, and looking for anomalies that may indicate a problem.

The forecast node can be used in such scenarios to analyze the data stream and flag any anomalies. For example, you could have a temperature sensor on a machine that sends data to the forecast node every minute. The forecast node applies exponential smoothing to forecast future values, and if the actual value is significantly different from the forecasted value (i.e., it is an anomaly), it could indicate a problem with the machine.

This could trigger a warning or an automatic shutdown of the machine, preventing damage to the machine and avoiding downtime. The exact reaction to an anomaly would depend on the specific situation and would be handled by other nodes in the Node-RED flow.

## License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.