Adding the time of the alarm to the email header

Support and queries relating to all previous versions of ZoneMinder
Locked
antar
Posts: 35
Joined: Mon Mar 20, 2006 1:32 am

Adding the time of the alarm to the email header

Post by antar »

Hi,
I was wondering if I can add the time of the alarm
to the email subject and the body of the email

if anybody knows how. please PM or reply here



ZoneMinder: Alarm - Driveway-10337 (1 - 1 10 )


Monitor : Driveway
Event Id : 10337
Duration : Motion: far driveway
Frames : 85 (10)
Scores : t10 m1 a1
Time : ???????/
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post by MJN »

Sure - there are a whole load of environment variables that you can quote in both the subject and main body. Check out the main documentation at http://www.zoneminder.com/fileadmin/dow ... EADME.html (section 8.5).

As an example, my subject line reads:

ZoneMinder: ALERT! Suspected motion detected in %MN% @ %ET% for %EL%s! (Static images attached)

which gives something along the lines of:

ZoneMinder: ALERT! Suspected motion detected in Kitchen @ 2007-01-24 18:13:42 for 3.61s! (Static images attached)

Mathew

P.S. Try copying the whole list of variables as mentioned in the documentation into your message body and give it a try - best way to see what sort of info you have available IMHO.
Locked