Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:mqtt [2023/10/01 18:43] – Add firewall note Ree | howto:mqtt [2025/09/11 23:00] (current) – ↷ Links adapted because of a move operation digital man | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This is a bit of a stub for MQTT but it'll help you get going, on Ubuntu at least. | This is a bit of a stub for MQTT but it'll help you get going, on Ubuntu at least. | ||
| - | First, you'll need sbbs v320a_dev from git. This is documented elsewhere. | + | First, you'll need Synchronet v3.20a or later. |
| - | Once compiled and installed, run scfg, make some small change and then save. This will now add a mqtt section to main.ini. Change | + | Then install |
| sudo apt install mosquitto mosquitto-clients | sudo apt install mosquitto mosquitto-clients | ||
| Line 24: | Line 24: | ||
| sudo systemctl start mosquitto | sudo systemctl start mosquitto | ||
| - | |||
| At this point you should probably rebuild sbbs so that libmosquitto will be picked up and included in libsbbs.so. You can verify this with the following command: | At this point you should probably rebuild sbbs so that libmosquitto will be picked up and included in libsbbs.so. You can verify this with the following command: | ||
| Line 33: | Line 32: | ||
| If there is no response to the command, then a recompile is necessary. | If there is no response to the command, then a recompile is necessary. | ||
| + | Run [[util: | ||
| Now start sbbs and you should see the following lines in your log | Now start sbbs and you should see the following lines in your log | ||
| Line 40: | Line 40: | ||
| Dec 12 02:13:08 bbs synchronet: MQTT connecting to broker 127.0.0.1: | Dec 12 02:13:08 bbs synchronet: MQTT connecting to broker 127.0.0.1: | ||
| - | If you see a " | + | If you see a " |
| At this point you should see messages from sbbs being passed into the Mosquitto broker | At this point you should see messages from sbbs being passed into the Mosquitto broker | ||
| Line 49: | Line 49: | ||
| ``` | ``` | ||
| - | Now, to install a client to view the messages. | + | Now, if you want to install a GUI client to view the messages. |
| wget https:// | wget https:// | ||
| Line 129: | Line 129: | ||
| New browser-based Web Monitor and Node Spy features have been added in 3.20, which are powered by MQTT. The first time you load either of these features you'll be prompted to provide the Hostname and WebSocket Ports for your MQTT server (these are different than the WebSocket ports used to power fTelnet). | New browser-based Web Monitor and Node Spy features have been added in 3.20, which are powered by MQTT. The first time you load either of these features you'll be prompted to provide the Hostname and WebSocket Ports for your MQTT server (these are different than the WebSocket ports used to power fTelnet). | ||
| - | Keep in mind that it's your web browser connecting to the MQTT server, so you need to provide a hostname that is reachable by your web browser (ie if your BBS is running on a VPS, then localhost won't be a good choice for the Hostname, unless you plan to remote into that VPS and launch a browser from there). | + | Keep in mind that it's your web browser connecting to the MQTT server, so you need to provide a hostname that is reachable by your web browser (e.g. if your BBS is running on a VPS, then localhost won't be a good choice for the Hostname, unless you plan to remote into that VPS and launch a browser from there). |
| For the WebSocket ports, you'll need to update your Mosquitto server' | For the WebSocket ports, you'll need to update your Mosquitto server' | ||
| Line 161: | Line 161: | ||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[: | * [[: | ||
| - | * [[:ref: | + | * [[monitor: |
| {{tag> | {{tag> | ||