Page 1 of 1

Advanced Filtering

Posted: Sat Feb 14, 2009 10:13 pm
by urge4vert
So, I'm setting this up for a friends business and I'm trying to get the following filters to work. Store hours are M-F 9am until 6:30pm. During those hours no events should be e-mailed. How-ever on Sat and Sun anything that triggers more than 10 frames should get e-mailed. This seems to work for Sat and Sunday, but its still tripping on events with less than 10 frames?!?

Monitor ID equal to 2
and Alarm Frames greater than or equal to 10
and Weekday equal to Saturday
or Weekday equal to Sunday


Now, is there an easy way to make a filter that runs Monday-Friday after 6:30 and before 9?

Monitor ID equal to 2
and Alarm Frames greater than or equal to 10
and Weekday equal to Monday
and Time greater than 18:30
or Time less than 09:00

Do I have to put all the days in there? Or make multiple filters? I'm not so good at the logic stuff and failed on regular expressions!

Thanks

Posted: Mon Feb 16, 2009 7:13 pm
by zoneminder
You should be able to do >= Monday and <= Friday or just do != Saturday and != Sunday. The main thing is to make sure that you have brackets around any 'or' clauses or you will find it won't work as you expect.

Posted: Tue Feb 17, 2009 6:35 am
by urge4vert
Phil,

Thanks for the response! With some help from a friend who's great with this kind of stuff I got it. The following works.

Monitor ID equal to 2
and Alarm Frames greater than or equal to 10
and ( Weekday equal to Saturday
or Weekday equal to Sunday )

For Alarm triggering Monday - Friday before 9am and after 18:30

Monitor ID equal to 2
and Alarm Frames greater than or equal to 10
and Weekday equal to or greater then Monday
and Weekday equal to or less than Friday
and ( Time greater than 18:30
or Time less than 09:00 )

I'm all set! Thanks and I hope this might help others out.

zoneminder wrote:You should be able to do >= Monday and <= Friday or just do != Saturday and != Sunday. The main thing is to make sure that you have brackets around any 'or' clauses or you will find it won't work as you expect.

Posted: Tue Feb 17, 2009 6:39 am
by cordel
Something like:

Monitor ID equal to 2
and Alarm Frames greater than or equal to 10
and (Weekday equal to Saturday
or Weekday equal to Sunday )