kerberos-io / machinery

(DEPRECATED) An open source image processing framework, which uses your USB-, IP- or RPi-camera to recognize events (e.g. motion).
https://www.kerberos.io
489 stars 102 forks source link

IO event on detection end #194

Open lahdekorpi opened 5 years ago

lahdekorpi commented 5 years ago

Is your feature request related to a problem? Please describe. Using MQTT, Webhook or TCP, there is no simple way of knowing when one event ends, except to wait for the same period as in the configuration.
When automating a system to upload videos, if the video is uploaded before the event has ended, the file is incomplete and may corrupt.

Describe the solution you'd like Send an event via MQTT and/or other IO methods when a video is written and closed.

Describe alternatives you've considered Currently, I'm just waiting for x number of seconds after the last message with the same pathToVideo has been received, occasionally resulting in corruptions.

cedricve commented 5 years ago

@lahdekorpi good point, we can add it to our next release. Thanks!