node-RED - InfluxDB Cloud

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

node-RED – InfluxDB (Cloud) Palette

WAGO Kontakttechnik GmbH & Co. KG


Agenda

Topic 1 Influxdb Cloud - Setup

Topic 2 Connect Bucket to node-RED:

Topic 3 Node-RED Influxdb Batch Node:

Topic 4 Test Connection:

Page 2 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Influxdb Cloud - Setup

** Refer to InfluxDB Cloud – Setup.pptx


for initial configuration

WAGO Kontakttechnik GmbH & Co. KG


Connect Bucket to node-RED:

WAGO Kontakttechnik GmbH & Co. KG


Connect Bucket to node-RED
With a Bucket created, and an API token created, we can connect the database to external programs.
-Navigate to "your email" and click "Settings"

Page 5 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Connect Bucket to node-RED
- Keep this page open. Note "Organization ID" and "Cluster URL"

Page 6 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Node-RED Influxdb Batch Node:

WAGO Kontakttechnik GmbH & Co. KG


Influxdb Batch Node
-In node-RED, install influxdb pallet, and add an influx batch node to a flow
-Enter the "Organization" and "Bucket" from influx DB.
-Under server, select "add new influxdb“.
Click the Edit Icon to edit this new server

Page 8 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Influxdb Batch Node
- Enter a Name
- Select the correct version
- Add "URL". This is the same as the "Cluster URL" shown above.
- Enter the token generated for this bucket.

Page 9 Influxdb cloud w/ node-RED Mike Psaltis March 2022


Internal
Influxdb Batch Node
-Using a function node, create a batch statement in the structure shown below. See blow for resources on how this
data is store as time series data

Other Resources:
TSM Engine: (measurement, field, tags)
https://docs.influxdata.com/resources/videos/tsm-engine/

Page 10 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Test Connection:

WAGO Kontakttechnik GmbH & Co. KG


Test Connection
- Using an inject node, timed trigger, or event trigger. Send a message with the payload structure shown previously.
Check node-RED for any debug errors. See below for configuration.

Page 12 node-RED – InfluxDB Mike Psaltis March 2022


Internal
Test Connection
- Using Data Explorer, verify that the data is now in Influx. You can add different filters to visualize the data.
- Happy data logging!

Page 13 node-RED – InfluxDB Mike Psaltis March 2022


Internal

You might also like