Emailing Zones?

General Discussion

Emailing Zones?

Postby chstuart » Thu Aug 07, 2014 12:12 pm

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.
chstuart
newt
newt
 
Posts: 1
Joined: Thu Aug 07, 2014 12:04 pm

Re: Emailing Zones?

Postby Scott » Fri Aug 08, 2014 9:21 am

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
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am


Return to General

Who is online

Users browsing this forum: No registered users and 31 guests

cron