Events restart at midnight.

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
phils01
Posts: 6
Joined: Fri Mar 19, 2021 5:04 pm

Events restart at midnight.

Post by phils01 »

Hi all

I have a odd problem, Im sure is a setting i have missed.

I use zmtrigger to start/stop events, yesterday I started an event in he afternoon that ran through till the early hours of today.

However, ZM shows the event was stopped at 00:00:48 and a new event started immediately. I have event length set to 172800seconds (48hrs) for all my cameras, and there is nothign in cron that would trigger at midnight.

I need all my events to be contunuous, because I have pot-event scripts which process the video based on the event number.

Any idea what could cuase ZM to split my event at mindnight?

Thanks in advance
Phil.

PS, when an event is split, is there anything in the database to say which events follow on?
User avatar
iconnor
Posts: 2882
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Events restart at midnight.

Post by iconnor »

logrotate generally happens at midnight. After moving the logs we signal zm to reload.

There are ajax calls that will return the next event. Or you can just sql query for the next event for that monitor sorted by time or id.
phils01
Posts: 6
Joined: Fri Mar 19, 2021 5:04 pm

Re: Events restart at midnight.

Post by phils01 »

Thank you - I had not thought about logrotate.

I will have a look at that, and see if I can find a way to not restart if it is recording an event.

Can you point me to what Ajax calls I can use? I have been use sql to query the next event my monitor, but I cannot guarantee that was part of the same triggered event, and my post-process scripts generate a video of the whole event and send it to another process. I dont want to end up missing part of the events.

Thanks

Phil.
Post Reply