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

v0.2.339

Published

A Node-RED node to communicate via OPC UA based on node-opcua library.

Downloads

5,710

Readme

NPM download NPM version

Node-RED OPC UA

node-red-contrib-opcua

opcuanodeLogo64

A Node-RED nodes to communicate or serve via OPC UA.

based on node-opcua

nodeopcua64

Install

Run command on Node-RED installation directory.

npm install node-red-contrib-opcua

or run command for global installation.

npm install -g node-red-contrib-opcua

Usage

Use OpcUa-Item to define variables. Use OpcUa-Client to read / write / subscribe / browse OPC UA server.

See some flows under folder ![examples]. Updated server sub-flow example OPCUA-TEST-NODES.json look commands: addFolder, addVariable, addMethod, setFolder. Added new opcua-rights node to set folder/variable access level and role & permissions.

Here you got some ready to use examples. You can use the Import in Node-RED in the right upper corner menu.

node-red-opcua-flow

Examples are available for Schneider IGSS and Prosys Simulation Server as Node-RED flow. Search for OPC UA on: http://flows.nodered.org/

node-red-opcua-flow-Prosys

New method node example

Events example

Message parameters

Input message

| Property | Function/Value | Notes | |--------------------|---------------------------|---------------------------| | payload | set interval for subscription or monitorItem | interval | Subscription interval | | queueSize | Subscription queue size | | deadbandType | "a" abs. or "p" percent | Action monitor | deadbandValue | integer for deadband | Action monitor | topic | NodeId and DataType in format ns=3;s=Counter;datatype=Int32 | action | subscribe | nodeId / variable | | unsubscribe | nodeId / variable | | deletesubscription | subscription | | browse | nodeId / folder | | info | nodeId | | read | nodeId | | write | nodeId & value | | monitor | deadbandtype abs/pro | | events | nodeId | | readmultiple | [nodeId + datatype] | | writemultiple | [nodeId + datatype + value]

readmultiple to readmultiple items writemultiple to write multiple items clearitems to empty multiple items (readmultiple / writemultiple)

NOTE: With datatype=xxxArray msg.payload.range = "2:4" can used as indexRange to read/write partial array

Output message

| Property | Function/Value | Notes | |--------------------|---------------------------|---------------------------| | payload | dataValue.value.value | | | statusCode | OPC UA StatusCode | | | sourceTimestamp | Source timestamp | | | serverTimestamp | Server´s timestamp | |

Release history (only couple of older releases):

v0.2.223

v0.2.117

v0.2.116

v0.2.115

v0.2.114

v0.2.113

v0.2.112

v0.2.111

v0.2.110

v0.2.109

v0.2.108 and older

Authors

Testing

karma start opcua.conf.js --log-level debug --single-run

TBD List

| Nodes | Function | Done | |--------------------|---------------------------|---------------------------| | All | | | | | Project structure | :white_check_mark: | | | Async calls | :waxing_crescent_moon: | | | UnitTesting | :new_moon: | | | Documentation | :first_quarter_moon: | | Item | | :white_check_mark: | | Browser | | | | | Browse | :white_check_mark: | | | Simple UI interface | :first_quarter_moon: | | Client | | | | | Read | :white_check_mark: | | | Read Multiple | :white_check_mark: | | | Write | :white_check_mark: | | | Write Multiple | :white_check_mark: | | | Subscribe | :white_check_mark: | | | Unsubscribe | :white_check_mark: | | | DeleteSubscription | :white_check_mark: | | | Info | :white_check_mark: | | | Browse | :white_check_mark: | | | AE | :new_moon: | | | reconnect on error | :waxing_crescent_moon: | | Server | | | | Commands | | | | | Restart | :white_check_mark: | | | Add Folder | :white_check_mark: | | | Set Folder | :white_check_mark: | | | Add Variable | :white_check_mark: | | | Add Object | :new_moon: | | | Add Method | :new_moon: | | | Add Equipment | :first_quarter_moon: | | | Add PhysicalAssets | :first_quarter_moon: | | | | | | | Delete by NodeId | :white_check_mark: | | Examples | | | | | Methods | | | | Structures | | | | Variables | | | | Objects | | | | AE | | | | | | | Alarm and Events | | | | | Subscribe | :white_check_mark: | | | | |

EMOJI CHEAT SHEET