This document discusses connecting an InfluxDB cloud bucket to Node-RED. It covers setting up the InfluxDB cloud, connecting the bucket to Node-RED, using the InfluxDB batch node, and testing the connection.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
54 views
node-RED - InfluxDB Cloud
This document discusses connecting an InfluxDB cloud bucket to Node-RED. It covers setting up the InfluxDB cloud, connecting the bucket to Node-RED, using the InfluxDB batch node, and testing the connection.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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