Page 1 of 1

Emailing Zones?

PostPosted: Thu Aug 07, 2014 12:12 pm
by chstuart
I have been all over the forum looking for information on how to have the zone information emailed when an alarm is triggered. I have everything up and running with AD2USB and the virtual keypad, but it only emails ALARM/Disarm and basic info. How does one go about getting more info in an email on what zone faulted? Time/date stamp would be nice as well. It would be nice to have user info emailed as well when the alarm is armed or disarmed.

Re: Emailing Zones?

PostPosted: Fri Aug 08, 2014 9:21 am
by Scott
The module responsible for emailing doesn't support this currently, however, it is the example module (mystuff) who's source is included with the Keypad app. It'd be pretty easy to modify it to include the zone number in the email. The zone number should be in m_Message.Numeric. Just make your changes and recompile it with Mono and you should be good to go.

User ID is a little more difficult. In order to get that you either have to have an LRR device connected to your system, or set up your AlarmDecoder to emulate one by toggling a flag in the config. After that you'll start receiving !LRR messages. It looks like Sean already wrote in a skeleton function to handle LRR messages in the example module, so you'd just need to write some logic to handle it. You can find the reference for LRR messages here: http://www.alarmdecoder.com/wiki/index.php/Protocol#LRR

Thanks,
Scott