Page 1 of 1

MQTT value from zmeventnotification

Posted: Fri Jan 31, 2020 1:24 pm
by Jamieeburgess
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

Re: MQTT value from zmeventnotification

Posted: Fri Jan 31, 2020 5:09 pm
by asker
This has been a TBD for a long time. As of now, you can write your own small parser but it really should be done by the detection engine.
The system was originally designed to push notifications to phones, which is why it returns a string. I'll work on it. Please keep track of https://github.com/pliablepixels/zmeven ... issues/206