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

@inuse/node-red-contrib-ifm-vvb001

v0.0.4

Published

A Node red package that handles communication with an ifm VVB001 sensor through iolink.

Downloads

18

Readme

node-red-contrib-ifm-vvb001

Node-RED nodes that handles data transfers from IFM VVB sensors.

It includes the following nodes to retrieve monitoring data and transfer a raw acceleration BLOB*:

  • get data: Gets the monitoring data from a VVB sensorO (V rms, A rms, A peak, Temperature and Crest).
  • stream blob: Start a BLOB generation, extract it and convert it to m/s^2 unit.
  • blob status: Return the status of the BLOB (ex: transmission is in progress or idle)
  • abort blob : Run the abort BLOB transfer command. If the data transfer must be stopped before the end of the transfer, the transfer must be aborted. If not, a new Start command for reading the BLOB can't be raised with success.

*A BLOB is a record of raw acceleration at a high frequency (4 seconds at a frequency of 25 KHz which represents a time serie of 100K values)

Installation

In Node-RED (preferred)

  • Via Manage Palette -> Search for "node-red-contrib-ifm-vvb001"

In a shell

Basic installation:

  • go to the Node-RED "userDir" folder, typically ~/.node-red
  • run npm install node-red-contrib-ifm-vvb001

Usage

Usage of get data

The easiest usage of the node get data is the following:

This node will return a modified msg with the following payload:

{
  "data": {
    "v_Rms": 0.0001,
    "a_Peak": 0.2,
    "a_Rms": 0,
    "Temperature": 33,
    "Crest": 4.2,
    "status": "OK"
  },
  "ts": "2022-07-07T21:32:22.133Z"
}

where:

  • v_Rms is the speed root mean square in m/s
  • a_Peak is the acceleration peak in m/s^2
  • a_Rms is the acceleration root mean square in m/s^2
  • Temperature is the temperature is celsius degrees
  • Crest
  • Status is the device status
  • ts is the timestamp of this event

Usage of stream blob

The easiest usage of the node stream blob is the following:

The blob status node check if there is an ongoing blob acquisition. If it is the case, you cannot run stream blob until the actual blob transfer is finished or aborted using abort blob.

The stream blob node will return a modified msg with the following payload:

{
  "ts": "2022-07-07T21:43:34.542Z",
  "length": 200000,
  "acceleration": [
    1.010053825378418,
    1.0848726272583007,
    1.1035773277282714,
    "..."
  ],
  "crc": "4076F8421C"
}

where:

  • length is the BLOB length in bytes (200K)
  • acceleration is the raw acceleration recorded on 4 seconds using 25 KHz acquisition (vector of 100K values)
  • crc is the CRC signature of the BLOB
  • ts is the start timestamp of this recording