homebridge-camera-ffmpeg
homebridge-camera-ffmpeg copied to clipboard
Add suppport for MQTT message matching via RegExp
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.
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.
hmm where do I update: https://sunoo.github.io/homebridge-camera-ffmpeg/automation/mqtt.html ?
(updated readme and force pushed)
That’s in a different branch of this same project: https://github.com/Sunoo/homebridge-camera-ffmpeg/blob/gh-pages/_automation/mqtt.md