synology-surveillance-api-motion-mqtt-gifs icon indicating copy to clipboard operation
synology-surveillance-api-motion-mqtt-gifs copied to clipboard

Add wait to polling.

Open dzarlax opened this issue 4 years ago • 2 comments

Can you please help to add a wait time settings between polling events? In my case I always get second event, when motion stops and lights turned off. It would be great if we could control how often new events checks fires.

dzarlax avatar Jan 18 '21 16:01 dzarlax

You mean here? https://github.com/fabtesta/synology-surveillance-api-motion-mqtt-gifs/blob/9606b206516aeb78e2abdfeb5621d61f2d483aba/synology_surveillance_motion_mqtt_gifs.py#L262

I'll try to implement this improvement asap.

fabtesta avatar Jan 18 '21 17:01 fabtesta

Something like this, but between events. In reality it should skip all events that will happen in X seconds after processed. Thanks!

dzarlax avatar Jan 18 '21 17:01 dzarlax