New EVENT_CLOSE_MODE: time_after_alarm

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
zerkms
Posts: 4
Joined: Wed Apr 05, 2023 6:18 am

New EVENT_CLOSE_MODE: time_after_alarm

Post by zerkms »

Hi, I'm a new user of the ZM (and surveillance overall) and at the moment I'm learning how to configure and administer the ZM. While doing that I have set up camera in my living room to watch our cats creating mess.

Now follow me, this morning ZM have captured the following events (Minimum section length is set to 15s, and EVENT_CLOSE_MODE set to idle):

Code: Select all

4/6/23, 9:09:39 AM GMT+12	4/6/23, 9:09:57 AM GMT+12	00:00:18
4/6/23, 9:10:00 AM GMT+12	4/6/23, 9:10:21 AM GMT+12	00:00:20
4/6/23, 9:10:28 AM GMT+12	4/6/23, 9:10:42 AM GMT+12	00:00:14
4/6/23, 9:10:44 AM GMT+12	4/6/23, 9:10:58 AM GMT+12	00:00:14
So, effectively, what happens: motion is detected in the zone, then it records it for at least 15 (14) seconds, then if at the very end motion is still happening - then recording will continue, until motion is not still for at least a few milliseconds. To start again a few seconds later.

Instead - if it was a new mode called `time_after_alarm` (or something along the lines) available, then it would be just a single record from `4/6/23, 9:09:39 AM GMT+12` to `4/6/23, 9:10:58 AM GMT+12`.

How it would work: event is only closed if there is no motion in the frame for `Minimum section length` seconds AFTER LAST ALERT.

So it would practically debounce alerts: as long as anything moves within 15 seconds - it waits while movement ends, then if frame is calm wait for another 15s before the event is finalised (unless new movement is detected). And so on, and so forth.

Thoughts?

Thank you!
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: New EVENT_CLOSE_MODE: time_after_alarm

Post by iconnor »

kinda already exists. You want event_close_mode=alarm, and set post-events frames to however many frames 15 seconds is.

So Options->Config->Event_CLOSE_MODE = alarm
And Monitor->Buffers->Post_event_frames=whatever

This whole thing needs a revamp, but of course, blah blah blah no one's paying balh blah blah.. Ill get to it eventually.
zerkms
Posts: 4
Joined: Wed Apr 05, 2023 6:18 am

Re: New EVENT_CLOSE_MODE: time_after_alarm

Post by zerkms »

> blah blah blah no one's paying balh blah blah

oh right, I intended to add that I'm happy to contribute the feature if it's accepted, but was distracted and forgot about it.

What's the way to financially support the project (sorry if it's already posted somewhere, I'm not sure I seen it while reading the documentation).
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: New EVENT_CLOSE_MODE: time_after_alarm

Post by iconnor »

There are many ways, https://zoneminder.com/donate for the list.

The best is github sponsors as they don't take a cut. I wish they would do feature sponsorship.
Post Reply