Simple Tutorial for Using MQTT in this CA? #42
-
I decided I should at least try to use the integrated MQTT, maybe to flash a notification of incoming caller to my cell phones... Really more of an experiment/learning opportunity. So far, I have not gotten very far. I have:
I have not yet had the time to change to debug and gather output. So I don't know what might be happening and I will do that ASAP. But I am wondering if I might need to add any additional software to my CA install to make this work? So I am wondering if someone out that has got this working and, if so, perhaps some details of what they did? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
If Mosquitto is local only you really don't need user/psw or SSL. Making use of the Mosquitto utilities (
Log or console output from CA would be most helpful with respect to items 2 & 3 above. |
Beta Was this translation helpful? Give feedback.
-
Well, I can get results from the _sub and _pub commands. But with the following in my config file:
I get this output when trying (unsuccessfully) to start CA:
This makes me wonder if I am missing some software... Is it as simple as me sourcing my venv and issuing the command:
(note that on Ubuntu I have always used pip instead of pip3)? Thanks |
Beta Was this translation helpful? Give feedback.
-
As stated in
Should get you going,,, |
Beta Was this translation helpful? Give feedback.
-
Oh, I am rather an idiot. Sorry for missing that... I sourced my venv and did the pip install... Now CA definitely starts just fine. And I can subscribe and see output when a call comes in:
But rats! I thought I might get some caller id info. But I can see now that I may have to wait until v2.0 for that. But when we all get there I should be able to flash notifications to my android devices and likely Windows computers as well. I have only a single phone extension with caller id display and, of course, when the phone rings I am never near that extension. Thanks, as always, for all! |
Beta Was this translation helpful? Give feedback.
-
BTW - I followed most of the instructions here to install mosquitto on my CA server box. I ignored the "Create MQTT Administrative Password" section. And in the default.conf file I did NOT add "password_file /etc/mosquitto/passwd" but "allow_anonymous true" instead. After testing per the section "How to Use MQTT to Send and Receive Message", I did nothing else. |
Beta Was this translation helpful? Give feedback.
-
Resolved with MQTT re-design in v2.0.4 release.The CA use of MQTT is documented in MQTT-Client.md |
Beta Was this translation helpful? Give feedback.
Resolved with MQTT re-design in v2.0.4 release.The CA use of MQTT is documented in MQTT-Client.md
Setup and interacting with an MQTT server is beyond the scope of this project.