-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neuron mqtt subscriber #467
Comments
I still did not had installed Kalliope due to the fact I want fist to stabilize the pairing between my RPi 3 and a bluetooth speaker. My next requirement will be to install a MQTT broker on the same RPi. For that I found a lightweight broker called Moquette. As Sispheor said it should then be interresting to get MQTT feedback on demand (Example : "Which day are we ?") but it should also interesting that Kalliope give information when a MQTT has been triggered (Example : ."I detected movement around your car" - message said when I am sleeping "There is water on the ground at ..." - by supposing the wash machine is loosing water). I have to recognize I still did not had study how MQTT return work but by considering they could be trigger by generating a structured JSON/text file that Kalliope could then use (and archive when the user confirmed he take care about this last information) then I presume it should be easy for Kalliope to react (trigger) when a MQTT result has just be send to the broker. It "just need" to be filter like : will be said on demand, have to been send now (due to security reason), will be said following calendar/time (like when I wake up or come back at home), ... Then I propose to :
|
What you are looking for is almost covered in the mqtt signal. |
And BTW you should at first try kalliope :) I keep this issue opened because I still want to create a neuron to get one shot info from a broker that save state. The example is: |
You right. But I still have to stabilize the pairing with the bluetooth speaker before installing Kalliope. You also right with the answer Kalliope must return on demand from a last MQTT value the broker received. As you want to take this neuron in one shot this is why I first gave my opinion and then recommand to take care about those aspects :
What I means is the fact, for a one shot, your neuron has to foreseen some further aspects than only saying last each MQTT triggered events received on the broker. As I still does not know how to use neuron and MQTT (I will use as far as possible) I sincerely appreciate your approach I will certainly use. Thanks for your work on this one. |
The "desired moment" is handled by a signal called "event" . |
Connect to a broker, read a value and quit.
Because the existing signal mqtt will trigger an action on each received message.
With a neuron, we could have a message on demand.
The text was updated successfully, but these errors were encountered: