MQTT value from zmeventnotification
Posted: Fri Jan 31, 2020 1:24 pm
Hi everyone,
So wonder if someone could help me modify WHAT is sent from the zmeventnotification service (or at least where I can change it).
I’ve got dlandon’s docker all set up and person detection is working well with tiny-yolo. However using node-red to interpret the results I would like to pull out what is detected without a lot of extra code to look at the “name” portion of the MQTT value.
Current is “ [s] detected: person : 76% : Motion : mudroom”
The rest of the MQTT value is JSON that can be used easily.
Is there a way to break out the above to something like:
{
“name” : “mudroom”,
“detected” : “person”
}
For example?
Not sure if it’s in the detect script or the start scripts, but hoping someone can point me in the right direction.
Thanks
So wonder if someone could help me modify WHAT is sent from the zmeventnotification service (or at least where I can change it).
I’ve got dlandon’s docker all set up and person detection is working well with tiny-yolo. However using node-red to interpret the results I would like to pull out what is detected without a lot of extra code to look at the “name” portion of the MQTT value.
Current is “ [s] detected: person : 76% : Motion : mudroom”
The rest of the MQTT value is JSON that can be used easily.
Is there a way to break out the above to something like:
{
“name” : “mudroom”,
“detected” : “person”
}
For example?
Not sure if it’s in the detect script or the start scripts, but hoping someone can point me in the right direction.
Thanks