Raspberry Pi setup
The Raspberry Pi will be the host for the local MQTT broker in this project and also the dashboard hosting device. The dashboard for this project will be created using Node-RED and the Node-RED dashboard module, which will both be running on the Raspberry Pi.
Setting up MQTT and Node-RED on the Raspberry Pi has already been covered, so we will start with the Node-RED setup portion straight away. The first step is to start Node-RED after booting up your Pi.
Just open a new terminal on your Pi and type in the following command:
node-red-start
Please refer to Figure 6.11 for reference:
Figure 6.11 – Starting Node-RED on the Pi
This command will start your Node-RED and give you the IP address from which you can access the Node-RED editor from any device connected to the same network as the Pi. Once you open Node-RED, the next step is creating the flow and, in turn, the dashboard for this project. As this is a control project...