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

@princodinoto/test-actions

v0.0.5

Published

A set of nodes to connect between the data from different sources and OCTOBUS cloud ![Alt text](https://iworks-public-assets.s3.ap-southeast-1.amazonaws.com/npm/octobus_logo.png?raw=true "Optional Title")

Downloads

2

Readme

node-red-contrib-octobus-connector

A set of nodes to connect between the data from different sources and OCTOBUS cloud Alt text

Installing OCTOBUS connector using npm

# change to your ~./node-red/ folder
cd ~/.node-red/
npm install npm i @octobus/node-red-contrib-octobus-connector

Installing OCTOBUS connector via Node-RED palette

Alt text

You can install the node also via the Manage palette feature in the Node-RED administration UI.

Connecting to OCTOBUS via OPC UA using Generated Flow function on OCTOBUS

1: Create Client on OCTOBUS

  • Go to Clients Tab create new Client.
  • On Client Type select Node-RED. Alt text

2: Create Data Flow on Client

The data flow on OCTOBUS doesn't the same definition on Node-RED. If you have multiple data flow on client it will be created on the same flow on Node-RED.

  • Names data flow and select protocol to OPC UA.
  • Go to Setting/Parameters
    • Fill the setting and parameters for OPC UA. Alt text
  • Go to Measurement Mapping tab
    • Add and select asset.
    • Select measurement that you want to map varaible/tag inside of OPC Server to OCTOBUS.
    • Fill the NodeId from OPC server then select Sampling Method. ( Subscribe interval will be fixed to 300 ms)
    • Select more assets or measurements if it's needed then click create. Alt text

3: Deploy to Node-RED

  • Generate Flow for Node-RED. Alt text

  • Copy or Download the configuration. Alt text

  • Open Node-RED web application.

  • Click the hamburger button and then select import. Alt text

  • Paste the configuration or select the downloaded configuration file then click import. Alt text

  • You will see the pop up that show the flow has been imported then DEPLOY it! Alt text

Connecting to OCTOBUS using MQTT Client and OCTOBUS payload node.

1: Create Client on OCTOBUS

  • Go to Clients Tab create new Client.

  • On Client Type select Generic MQTT. Alt text

  • Select any assets which you want to add to the client. Alt text

2: Preparing nodes on Node-RED

  • Prepare the OCTOBUS payload node

    • For each OCTOBUS payload reserve for each measurement in OCTOBUS
    • On OCTOBUS you will see the message payload format for each measurement.
    • Copy Asset Id and Measurement Id from OCTOBUS and paste to OCTOBUS payload on Node-RED.
    • Select the Data type which have to match on OCTOBUS. Alt text
  • Prepare the MQTT Client node

    • On mqtt out node, fill the topic and set the QoS to 1. Alt text
    • Fill the MQTT Endpoints, username and password on Connection and Security tab accordingly Alt text Alt text
  • The wire for OCTOBUS payload node and mqtt out node will be look like this. Alt text

FAQ

  • Install to the .node-red folder if you have installed node-red globally
  • Install to the userDir directory if you have custom userDir
  • Make sure that your nodejs version is relatively current