homebridge-camera-ffmpeg icon indicating copy to clipboard operation
homebridge-camera-ffmpeg copied to clipboard

Add suppport for MQTT message matching via RegExp

Open tjmehta opened this issue 1 year ago • 4 comments

There are many cases when working with third-party modules where developers may not know the full MQTT message published to a particular topic. In my case, I am using nanit which broadcasts a RTMP video stream and publishes a timestamps when motion is detected. Publishing timestamps make it impossible for me to match the entire message via motionMessage.

To make message matching more flexible for various scenarios, I added RegExp matching support for MQTT messages.

tjmehta avatar Dec 31 '22 22:12 tjmehta

Interesting, something like this has been on my to do list for a while. I’ll take a look at your submission as soon as I can get a chance.

Sunoo avatar Dec 31 '22 22:12 Sunoo

hmm where do I update: https://sunoo.github.io/homebridge-camera-ffmpeg/automation/mqtt.html ?

tjmehta avatar Dec 31 '22 22:12 tjmehta

(updated readme and force pushed)

tjmehta avatar Dec 31 '22 22:12 tjmehta

That’s in a different branch of this same project: https://github.com/Sunoo/homebridge-camera-ffmpeg/blob/gh-pages/_automation/mqtt.md

Sunoo avatar Dec 31 '22 22:12 Sunoo