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
Advanced Filtering
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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.
Last edited by urge4vert on Tue Feb 17, 2009 7:23 am, edited 1 time in total.