Difference between revisions of "How to get Alarm images in alarm emails"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
The Zoneminder documentation for Options => Emails gives a list of tags that one can set on a filter so that the selected tags are entered in the email. The page also contains the warning ''"Todo - check if any other tags have been added"''. | The Zoneminder documentation for Options => Emails gives a list of tags that one can set on a filter so that the selected tags are entered in the email. The page also contains the warning ''"Todo - check if any other tags have been added"''. | ||
I wanted to see the alarmed emails, where the alarmed area is marked in the alarm colour set in the zone definition. The documentation for available tags (Options => Emails) does not give a tag for this. I therefore inspected the code in | I wanted to see the alarmed emails, where the alarmed area is marked in the alarm colour set in the zone definition. The documentation for available tags (Options => Emails) does not give a tag for this. I therefore inspected the code in <code>zmfilter.pl</code>. This file, normally found in <code>/usr/bin/</code>, controls the checking of filters and the sending of emails. The perl code defines a function <code>substituteTags</code>. Here all currently used tags are to be found (in Zoneminder 1.36.33). After a certain amount of reading through the code, I found the tag I was looking for: <code>%EI1A%</code>. | ||
One happy user!! |
Latest revision as of 23:35, 4 August 2024
The Zoneminder documentation for Options => Emails gives a list of tags that one can set on a filter so that the selected tags are entered in the email. The page also contains the warning "Todo - check if any other tags have been added".
I wanted to see the alarmed emails, where the alarmed area is marked in the alarm colour set in the zone definition. The documentation for available tags (Options => Emails) does not give a tag for this. I therefore inspected the code in zmfilter.pl
. This file, normally found in /usr/bin/
, controls the checking of filters and the sending of emails. The perl code defines a function substituteTags
. Here all currently used tags are to be found (in Zoneminder 1.36.33). After a certain amount of reading through the code, I found the tag I was looking for: %EI1A%
.
One happy user!!