SvenVD / rpisurv

Raspberry Pi surveillance
https://rpisurv.net
GNU General Public License v2.0
626 stars 101 forks source link

More responsive image updates #181

Closed EnriqueWood closed 1 week ago

EnriqueWood commented 11 months ago

I've been working with rpisurv for a while now and noticed something about how it handles and reacts image changes. It feels like the system checks for image updates a bit slow, after I change an image it takes a while to update the image shown.

Is this tied to the interval_check_status in the general.yml file?

Is there a way to check images more often than streams?

I don't want my streams to be refreshing all the time because all of them have to reconnect and that takes time, which leaves me with a black screen for some seconds (around 5 seconds in my setup), however, for local images that is almost instantly (I have an external program changing images in response to events in my house security system).

Thank you for such a great project!

Also, could you give me some pointers to where do I have to look in the code to implement it myself in case you don't have the time/don't want to do it yourself?

SvenVD commented 10 months ago

yes, interval_check_status is the refresh timer for images, but is also the refresh timer for each watchdog to wakeup for probing the health of each camera stream. Currently you can not set different values for those two. But try lowering and see if it works for you.

SvenVD commented 1 week ago

https://opensurv.net/ has a faster update cycle for images independent of health check of cameras