Hello,
this is my first post
I installed Zoneminder 1.3 and it is working fine.
But i have somme issuses with filtering and sending emails on events.
I did the email setup as discribed in the Wiki and created a filter to send emails on alarm:
- Date/Time greater than or equal to -2 Minutes
- Sort by <Date/Time> <Desc>
- Limit to the <1> results only
- Email details of all matches <is selected>
The sript zmfilter.pl runs every 5 minutes.
And here ist the problem:
The filter as above selects allways the right event (the newest one, even it was sended by email or not) but i receive more than one email with different events.
That means the first email ist the correct one (with the selected event), but after the next run of zmfilter.pl (every 5 Minutes) i receive a new email which includes an older event.
It seems, that the script zmfilter.pl selects allways the newest event which has not been sended by email.
Any help to this?
Thanks in advance
issues with email filter
issues with email filter
Last edited by rainer300 on Sat Nov 12, 2016 9:35 am, edited 1 time in total.
Re: issues with email filter
I've got this settings working just fine, if it can help...
Did you try to sort by <Asc> ?
Did you try to sort by <Asc> ?
Re: issues with email filter
Here are my settings, which works fine (shows the right event in zoneminder) but did not send the right event-data (as discribed in my first post).
Sorting by <Asc> will bring the oldest - not the newest - event.
Sorting by <Asc> will bring the oldest - not the newest - event.
- Attachments
-
- pic.jpg (43.12 KiB) Viewed 3461 times
Re: issues with email filter
It seems that the zoneminder filter selects and displays the newest event in the web interface but for the step "Email details of all matches" the filter selects allways the newest event from the database which has not yet the "sent" flag (and of course that can be different events).
Any ideas?
Thanks.
Any ideas?
Thanks.
Re: issues with email filter
I'm no Zoneminder expert but you could tick "Archive all matches" as well as "Email details of all matches" and then add another line to your filter that says "Archive Status equal to Unarchived Only".
Of course you will then end up with a growing number of "archived" events that will need to be deleted manually or you could create another filter to delete them after say a few days.
Of course you will then end up with a growing number of "archived" events that will need to be deleted manually or you could create another filter to delete them after say a few days.