Taking baby steps in Node-RED

This commit is contained in:
simonox 2023-02-22 16:18:17 +01:00
parent 876fb71926
commit ddf31fdd96
8 changed files with 27 additions and 1 deletions

View File

@ -25,10 +25,12 @@ mosquitto_pub -h localhost -p 1883 -t '/' -m $(date --utc +%s)
You can login to Grafana: http://localhost:3000/login (admin:admin)
### NodeRed
### Node-RED
NodeRed is running here: http://localhost:1880/
A simple introduction to Node-RED can be found in [this repository](./software/flow/README.md).
## Hardware
We are using HelTec Automation Wirelsess Sticks ESP32 Dev-Boards.

24
software/flow/README.md Normal file
View File

@ -0,0 +1,24 @@
# Node-RED
If you boot up our tech stack using `docker-compose` you already have a Node-RED instance running on[your local machine](http://localhost:1880/).
## first steps
For debuging shell into your Docker container and install the Node-RED Dashboard (we will switch to Grafana, soon):
```sh
npm install node-red-dashboard
```
Then the dashboard should be visible on the righmost menu item in Node-RED.
![Dashboard item](./docs/images/dashboard.png)
Then you can add a MQQT node to receive values from the power monitor, hook it up to a gauge and display it in a dasboard.
![Overview](./docs/images/1-overview.png)
![MQTT Node](./docs/images/2-mqtt-node.png) ![Gauge NOde](./docs/images/3-gauge-node.png) ![Dashboard Settings](./docs/images/4-dashboard-node.png)
The dashboard looks like that.
![Mobile view](./docs/images/5-dashboard.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB