2023-02-22 16:18:17 +01:00
|
|
|
# Node-RED
|
|
|
|
|
|
2023-02-22 16:20:27 +01:00
|
|
|
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/).
|
2023-02-22 16:18:17 +01:00
|
|
|
|
2023-02-22 16:20:27 +01:00
|
|
|
## First steps
|
2023-02-22 16:18:17 +01:00
|
|
|
|
2023-02-22 16:20:27 +01:00
|
|
|
For debuging I am going to install Node-RED's own dashboard.
|
|
|
|
|
|
|
|
|
|
Shell into your Docker container.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
Inside the container you can install the Node-RED Dashboard (we will switch to Grafana, soon):
|
2023-02-22 16:18:17 +01:00
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm install node-red-dashboard
|
|
|
|
|
```
|
|
|
|
|
|
2023-02-22 16:22:25 +01:00
|
|
|
The dashboard should be visible on the righmost menu item in Node-RED.
|
2023-02-22 16:18:17 +01:00
|
|
|
|
|
|
|
|

|
|
|
|
|
|
2023-02-22 16:22:25 +01:00
|
|
|
In Node-RED you can add a MQQT node to receive values from the power monitor, hook it up to a gauge and display it on a dasboard.
|
2023-02-22 16:18:17 +01:00
|
|
|
|
|
|
|
|

|
|
|
|
|
  
|
|
|
|
|
|
|
|
|
|
The dashboard looks like that.
|
|
|
|
|
|
|
|
|
|

|