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:10] – m0mzf | packet:bpqmonweb [2025/04/13 00:13] (current) – m0mzf | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Tom 2E0JJI' | ===== Tom 2E0JJI' | ||
- | Tom has created a superb web application to monitor a BPQ or Xrouter node. 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: | + | Tom has created a superb web application to monitor a BPQ or Xrouter node. |
+ | |||
+ | {{: | ||
+ | |||
+ | This involves installing a web server | ||
< | < | ||
- | Grab Tom's repository and copying | + | Grab Tom's repository and copy everything into the web server |
< | < | ||
Line 11: | Line 15: | ||
cd ~/ | cd ~/ | ||
sudo rm / | sudo rm / | ||
- | sudo cp nginx/ | + | sudo cp nginx/ |
sudo cp *.html / | sudo cp *.html / | ||
sudo cp *.css / | sudo cp *.css / | ||
sudo cp *.js / | sudo cp *.js / | ||
- | sudo systemctl restart nginx.service | ||
</ | </ | ||
- | Now we need to add an entry to our hosts file so the nginx proxy knows where mosquitto is located on the network | + | 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 so it's cleaner to add it here rather than edit the files pulled from git |
< | < | ||
- | 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 "bpquser: | + | echo "linbpquser: |
echo " | echo " | ||
sudo mosquitto_passwd -U / | sudo mosquitto_passwd -U / | ||
Line 42: | Line 45: | ||
acl_file / | acl_file / | ||
allow_anonymous false' | sudo tee / | allow_anonymous false' | sudo tee / | ||
+ | </ | ||
+ | and create an access control list so publishing to the publicly-available user can only read the topic | ||
+ | < | ||
+ | echo 'user bpqmonweb | ||
+ | topic read PACKETNODE/ | ||
+ | </ | ||
+ | |||
+ | 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; the hostname " | ||
+ | < | ||
+ | MQTT=1 | ||
+ | MQTT_HOST=mosquitto | ||
+ | MQTT_PORT=1883 | ||
+ | MQTT_USER=linbpquser | ||
+ | MQTT_PASS=supersecretbpqmqttpassword | ||
+ | </ | ||
+ | |||
+ | then restart all the services we've tinkered with | ||
+ | < | ||
sudo systemctl restart mosquitto.service | sudo systemctl restart mosquitto.service | ||
+ | sudo systemctl restart linbpq.service | ||
+ | sudo systemctl restart nginx.service | ||
</ | </ | ||
+ | Now you can access the web server and watch the packet racket! | ||
+ | < | ||
packet/bpqmonweb.1744492219.txt.gz · Last modified: 2025/04/12 21:10 by m0mzf