roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.51k stars 155 forks source link

schedule / active time for recordings - control via api/mqtt/http #620

Closed freisei closed 1 year ago

freisei commented 1 year ago

Hi!

is it possible to configure times when recordings should be active? For example tigger recording only at night-time.

Personally it would be enough if i can switch some "recoding-active" value like sensor.camera_1_operation_state via http/mqtt or similar. By the way would such a api for example enable me to use my cameras internal motion detection to trigger recordings.

Nice Greets!

roflcoopter commented 1 year ago

This can sort of be accomplished by using the MQTT Toggle Topic to turn the camera on/off.

The downside of this is that Viseron will stop reading from the camera completely, meaning everything else also stops running (object detection, face recognition, MJPEG streams etc) I have plans to make it possible to pause recordings, but i need to do an overhaul of the API first so it might take me some time

freisei commented 1 year ago

Thank you very much. I dont why i have overseen the mqtt-component :)