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 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-red-contrib-netfield-websocket

v0.9.9

Published

Node-RED nodes for Hilscher 'netFIELD Cloud' WebSocket API services

Readme

node-red-contrib-netfield-websocket

Node-RED nodes to communicate to Hilscher netFIELD Cloud WebSocket API services.

The section Websocket in the online API documents the services:

WebSocket Interface

In netFIELD Cloud WebSockets are used to stream process data of the cloud managed devices live to any clients such as Node-RED.

In a WebSocket session a device is determined by its unique deviceId. Device IDs can be retrieved from your cloud account:

The device's data object of interest is specified by a path formatted topic. Topics can be retrieved from the Device Manager in your cloud account.

Depending on the device topics can either be static:

or created manually:

The streamed data object itself is JSON formatted.

The communication is TLS secured and authenticated by an authorization key in JSON Web Token format. Keys can be generated using the API Key Manager in your cloud account.

When generating a key make sure the permission viewDeviceMessages is enabled for using WebSockets. This is a typical key details page:

Nodes usage

The module provides the nodes websocket-in and websocket-config. Configure the

  • node websocket-in with

    |Parameter|Description|Example |:---------|:------------|:--------- |Device ID | Device id of the addressed device. Copy value from your cloud account | 5f7b1bec199d7835e0929e9b |Topic | Data object tag to listen to live. Copy the topic from your cloud account. Wildcard char # in the path creates pattern matching. # only listens to all objects | #

    The node injects a JSON formatted object in msg.payload for any data object received through the WebSocket.

  • configuration node websocket-config with

    |Parameter|Description|Example |:---------|:------------|:--------- |URL | WebSocket wss://... server URL | wss://api.netfield.io |Timeout Period [s]| Inactivity timeout (ping) in seconds if expired WebSocket is assumed as timed out and tried to get connected again | 30 |Key | Key to authorize on the server. Copy value from your cloud account key details page | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1S ...

Nodes installation

Use the Node-RED "Manage Palette" function to install. Enter node-red-contrib-netfield-websocket in the install tab search bar, wait for the package appearing and click install.

License

Copyright (c) Hilscher Gesellschaft fuer Systemautomation mbH. All rights reserved. Licensed under the LICENSE file information stored in the project's source code repository.