Node-RED nodes for the ORing PaaS.
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.
Create an end to end connection between ORing PaaS application and registerd thing.
Convert oring-paas-thing node output payload into node-red-dashboard chart payload.
Convert oring-paas-thing node output payload into node-red-dashboard gauge payload.
Deploy the node then you should see the node status is connected.
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"
}You can build a Node-RED dashboard in just few steps by the dashboard adapter nodes.
The node can be configured to include/exclude specific data identities.
The node will convert oring paas thing node output into dashboard chart node input.
If set up correctly, a real-time chart will be displayed on the dashboard.
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.
The oring paas thing node input example:
{
"topic": "gw-1-command",
"commandId": "GW1_00001",
"value": true
}The flow should look like this:
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
}© ORing Industrial Networking Corp., 2020-NOW
Released under the MIT License












