iot-backend/software/flow
2023-02-23 16:31:52 +01:00
..
.npm added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
00-dashboard-example example flow 2023-02-22 16:27:14 +01:00
docs/images removed image 2023-02-22 17:36:45 +01:00
node_modules added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
.config.nodes.json added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
.config.nodes.json.backup added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
.config.projects.json added demo dashboard in node RED 2023-02-22 17:26:41 +01:00
.config.runtime.json added demo dashboard in node RED 2023-02-22 17:26:41 +01:00
.config.users.json added demo dashboard in node RED 2023-02-22 17:26:41 +01:00
.config.users.json.backup added demo dashboard in node RED 2023-02-22 17:26:41 +01:00
.flows.json.backup documentation on node red 2023-02-23 16:31:52 +01:00
.flows_cred.json.backup documentation on node red 2023-02-23 16:31:52 +01:00
flows.json documentation on node red 2023-02-23 16:31:52 +01:00
flows_cred.json documentation on node red 2023-02-23 16:31:52 +01:00
package-lock.json added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
package.json added node-red-contrib-influxdv 2023-02-23 15:38:30 +01:00
README.md documentation on node red 2023-02-23 16:31:52 +01:00
settings.js added demo dashboard in node RED 2023-02-22 17:26:41 +01:00

About

This folder will be mounted into the Node-RED runtime. So be careful.

Node-RED

If you boot up our tech stack using docker-compose you already have a Node-RED instance running on your local machine.

First steps

For debuging I already added Node-RED's own dashboard (sure, we are going to use Grafana, later).

Overview

The dashboard should be visible on the righmost menu item in Node-RED.

Dashboard item

In Node-RED you can add a MQQT node to receive values from the power monitor. As we run in docker-composeyou don't have to use the IP address of our Eclipse Mosquitto sever, but you can simply use mosquitto as the host nome.

MQTT Nodegit a

To simply display the values in a gauge (or chart) you can hook it up to a gauge node.

Gauge Node

In the dasboard section you have to create a tab. Inside this tab you have to create a group.

Dashboard Settings

The tricky part is putting the gauges in the group. This is done in the gauge's settings (not in the dashboard's settings).

Gauge Node

You can view the dashboard in an (also mobile) web browser.

Mobile view

Have a look at the flow also in this repository.

InfluxDB

Already added to this project is node-red-contrib-influxdb. You can use it's nodes to write and query data from an InfluxDB time series database. These nodes support both InfluxDB 1.x and InfluxDb 2.0 databases. At the time of this writing we are using version 2.6 of InfluxDB on port 8086.

Links