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-observation

v0.0.3

Published

A Node-RED node that processes data from the node-red-contrib-simple-spc node

Downloads

28

Readme

Node-RED Smart Machine Alarm System Node: Observation Node

This module defines a Node-RED node, the ObservationNode, developed by Harshad Joshi (GitHub: hj91). This node processes input from the node-red-contrib-simple-spc node, checks for certain conditions, and provides output accordingly.

Installation

Before using this node, ensure that the fft-js and node-red-contrib-simple-spc modules are installed:

npm install fft-js
npm install node-red-contrib-simple-spc

Usage

This Node-RED custom node checks for spikes and out-of-control conditions in data from the node-red-contrib-simple-spc node. It can trigger an alarm if either condition exceeds a certain limit, which can be configured in the Node-RED flow editor.

Input and Output

The ObservationNode accepts input from the node-red-contrib-simple-spc node, checks for certain conditions, and accordingly sends output messages with properties such as frequencies, magnitudes, spikeDetected, alarm, and state.

Error Handling

The ObservationNode provides effective error handling, updating its status with an error message in case of any errors.

Example

The ObservationNodeis used in a flow to accept samples from the node-red-contrib-simple-spc node, and check for spike and out-of-control conditions.

Usage

The ObservationNode could be an integral part of a predictive maintenance system in an industrial automation scenario. Let's consider an example in the context of a manufacturing plant:

In a manufacturing plant, various machines and equipment are continuously operating, and their health and performance are crucial for maintaining overall productivity. Each piece of machinery might have several sensors attached, measuring various parameters like vibration, temperature, pressure, etc., all of which provide a wealth of data for monitoring the machine's health.

This is where the ObservationNode comes into play.

  1. Machine Vibration Analysis: Mechanical faults often manifest as changes in vibration patterns. The ObservationNode can analyze the vibration data in real-time. Using FFT, it converts time-domain data (how vibration changes with time) to frequency-domain data (vibration at different frequencies), making it easier to spot anomalies.

  2. Spike Detection: Sudden increases in vibration (spikes) can indicate serious issues, like mechanical faults or failures. The node detects these spikes, alerting operators or triggering automatic protective actions.

  3. Out-of-control Detection: If the machine repeatedly goes into an out-of-control state - where it deviates significantly from its normal operating conditions - it could signify deteriorating health of the equipment. The ObservationNode can count these instances and trigger an alarm if the count exceeds a certain limit.

  4. Alarm Conditions: By setting appropriate spike and out-of-control limits, the node could identify potential machine failure ahead of time, allowing operators to take preventative action before a catastrophic failure occurs. This reduces downtime and maintenance costs.

  5. State Querying: Operators or other systems can query the current state of the ObservationNode to know the number of detected spikes or out-of-control conditions. This could be used to monitor trends over time, giving insights into machine behavior and aiding in decision-making processes.

License

This project is licensed under the GPL-3.0 License.