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 Pi.
The previous chapters cover in detail how to set up and activate the MQTT broker (refer to Chapter 1,Introduction to Raspberry Pi and MQTT, to refresh your memory). If you have followed the book by chapter, you will already have the MQTT broker up and running on boot. The next step is to create the Node-RED flow and the dashboard for our project. Please follow these step-by-step instructions, which will walk you through the entire setup process.
Starting Node-RED
Run the node-red-start
command on the Pi to start Node-RED at the following IP address: <pi's ip address>:1880
. Please refer to Figure 5.8 for reference.
Figure 5.8 – Starting Node-RED on the Raspberry Pi through...