Delete event after a few hours

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
phil32
Posts: 5
Joined: Mon Jan 16, 2023 2:09 pm

Delete event after a few hours

Post by phil32 »

Hello,
I couldn't find the information on the forum so I'm asking my question :)
I can't create a filter to remove all events over a number of hours, 12 hours for example.
Thanks in advance for your help.
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Delete event after a few hours

Post by iconnor »

Create a filter. Use startdatetime less than -2 hours. Also add a rule for Archive Status = UnArchived.
phil32
Posts: 5
Joined: Mon Jan 16, 2023 2:09 pm

Re: Delete event after a few hours

Post by phil32 »

Thank you for your reply.
It works but I put "start time" so as not to have the date.
Thanks again.
phil32
Posts: 5
Joined: Mon Jan 16, 2023 2:09 pm

Re: Delete event after a few hours

Post by phil32 »

iconnor wrote: Mon Jan 16, 2023 3:34 pm Create a filter. Use startdatetime less than -2 hours. Also add a rule for Archive Status = UnArchived.
good evening,
Finally it does not work. I lose all recordings.
I don't understand, when I select start date time I have to choose a date and a time.
I just want to keep the last 24 hours.
I have attached a capture of the filter.
Thanks for your help.
Attachments
Capture d’écran de 2023-01-19 19-32-43.png
Capture d’écran de 2023-01-19 19-32-43.png (60.21 KiB) Viewed 209 times
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Delete event after a few hours

Post by iconnor »

enter "-3 hours" in the text box. Do not use the calendar popup.
phil32
Posts: 5
Joined: Mon Jan 16, 2023 2:09 pm

Re: Delete event after a few hours

Post by phil32 »

iconnor wrote: Thu Jan 19, 2023 6:46 pm enter "-3 hours" in the text box. Do not use the calendar popup.
ok, I just entered the new parameters. I will see tomorrow morning.
Thank you for your quick reply.
Have a good evening.
phil32
Posts: 5
Joined: Mon Jan 16, 2023 2:09 pm

Re: Delete event after a few hours

Post by phil32 »

iconnor wrote: Thu Jan 19, 2023 6:46 pm enter "-3 hours" in the text box. Do not use the calendar popup.
hello,
It's good, the filter works.
Thank you and good day.
Post Reply