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

@oringnet/node-red-contrib-oring-paas

v1.1.0

Published

Node-RED nodes for the ORing PaaS.

Downloads

11

Readme

node-red-contrib-oring-paas

Node-RED nodes for the ORing PaaS.

platform The MIT License

Installation

Run the following command in the root directory of your Node-RED install

npm install @oringnet/node-red-contrib-oring-paas

or you can use the Palette Manager in Node-RED.

Nodes

oring paas thing

Create an end to end connection between ORing PaaS application and registerd thing.

oring-paas-thing-node

oring paas dashboard chart adapter

Convert oring-paas-thing node output payload into node-red-dashboard chart payload.

oring-paas-dashboard-chart-adapter-node

oring paas dashboard gauge adapter

Convert oring-paas-thing node output payload into node-red-dashboard gauge payload.

oring-paas-dashboard-gauge-adapter-node

Quick Start

Step 1: Create an application on the ORing PaaS

create-an-app

Step 2: Generate an API Key

generate-an-api-key

Step 3: Add a new app config to the oring paas thing node

add-app-to-node

Step 4: Copy the thing identity and name to the oring paas thing node

copy-thing-info

Deploy the node then you should see the node status is connected.

connected-node

Output Format

The oring paas thing node will subscribe to MQTT data topics and convert data payload into the following format:

{
  "topic":"$thing/{thingId}/$data/sensorData",
  "data":{
    "timestamp":1591781444304,
    "values":[
      {"id":"GW1_00001", "value":0},
      {"id":"GW1_30801", "value":2}
    ]
  },
  "type":"stream"
}

Build a Dashboard

You can build a Node-RED dashboard in just few steps by the dashboard adapter nodes.

Dashboard Chart

Step 1: Step up oring paas thing node correctly

Step 2: Add oring paas dashboard chart adapter node to the flow

The node can be configured to include/exclude specific data identities.

oring-paas-dashboard-chart-adapter-config

The node will convert oring paas thing node output into dashboard chart node input.

oring-paas-thing-node-to-dashboard-chart-adapter-node

If set up correctly, a real-time chart will be displayed on the dashboard.

dashboard-chart-result

Sending Command

You can send a command to the thing via oring paas thing node. The following example shows how to use the dashboard switch node to send a on/off command to the thing.

Step 1: Add a dashboard switch node to the flow

Step 2: Add a function node to convert switch on/off into a valid input

on-off-convert-example

The oring paas thing node input example:

{
  "topic": "gw-1-command",
  "commandId": "GW1_00001",
  "value": true
}

The flow should look like this:

sending-command-flow-example

After the switch being toggled, the command will be sent to $thing/{thingId}/$cmd/$downlink/gw-1-command topic with the following payload:

{
  "id": "GW1_00001",
  "value": true
}

License

© ORing Industrial Networking Corp., 2020-NOW

Released under the MIT License