RPi - Node-red - MQTT - InfluxDB - Grafana
Outline
This project uses a RPi SBC (version 4 or later), Cricket 2 external sensors, and Tasmota mains pwer sockets. It also requires the following software packages, Node-red, MQTT, InfluxDB, Grafana, Telegram.
The DockerPi2 server is a Raspberry Pi 400 Computer that connects to the Internet, and runs a set of programs which gather and process data from a number of sensors, and store the data, and render the data on one or more computers screens.
The Sensors transmit their data to the RPi using MQTT, the RPi runs a broker (server) that takes this data and passes it onto node-red for processing or forward transmission. Node-red allows for the creation of a number of dashboards to display the information:
Node-red can be considered a toolbox which allows data to be processed, redirected, displayed and expanded (in the same way as a web-browser is expanded by plug-ins).
InfluxDB - Telegram
Grafana
Other software also runs on the RPi, like the mosquitto MQTT server, and RPi-connect for remote access.
Design Notes
Sensors providing data to node-red are primarily Cricket2 units, or smart sockets provided by living-bytes, these run tasmota. These send json data via MQTT.
Node-red runs javascript, and also provides a graphical programming interface, these are used to create the interface, custom javascript code handles the json unpacking/re-routing.
Todo: show Schematic
Images
Build Notes
This project originally ran on a RPi4, it now runs on a RPi400, this is a better suited to the project, as everything is in one place.
Operation Notes
Todo: show Cricket2 or tasmota json strings
Applicable Links
home automation initial source