packet:bpqmonweb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:bpqmonweb [2025/04/12 21:40] – m0mzf | packet:bpqmonweb [2025/04/13 00:13] (current) – m0mzf | ||
---|---|---|---|
Line 4: | Line 4: | ||
{{: | {{: | ||
- | This involves installing a web server, installing an MQTT broker, and configuring the whole lot. This is on a Pi running Raspberry Pi OS 12 - let's start with installing the required packages: | + | This involves installing a web server |
< | < | ||
Line 21: | Line 21: | ||
</ | </ | ||
- | Now we need to add an entry to our hosts file so the nginx proxy knows where mosquitto is located on the network; this is hard coded into the web application | + | Now we need to add an entry to our hosts file so the nginx proxy knows where mosquitto is located on the network; this is already set in the nginx config |
< | < | ||
- | Then, we need to set up mosquitto users - replace the supersecretbpqmqttpassword with something " | + | Then we need to set up mosquitto users - replace the supersecretbpqmqttpassword with something " |
< | < | ||
echo " | echo " | ||
Line 47: | Line 47: | ||
</ | </ | ||
- | and create an access control list so publishing to the topic is password protected | + | and create an access control list so publishing to the publicly-available user can only read the topic |
< | < | ||
echo 'user bpqmonweb | echo 'user bpqmonweb | ||
Line 54: | Line 54: | ||
Now we need to tell LinBPQ to publish to the MQTT broker; add the following lines to your / | Now we need to tell LinBPQ to publish to the MQTT broker; add the following lines to your / | ||
- | Remember to use the super secret password you created above | + | Remember to use the super secret password you created above; the hostname " |
< | < | ||
MQTT=1 | MQTT=1 | ||
- | MQTT_HOST=localhost | + | MQTT_HOST=mosquitto |
MQTT_PORT=1883 | MQTT_PORT=1883 | ||
MQTT_USER=linbpquser | MQTT_USER=linbpquser |
packet/bpqmonweb.1744494027.txt.gz · Last modified: 2025/04/12 21:40 by m0mzf