Software Overview  |  Sitemap  |  Downloads  |  Developers  |  Forums
Small_clear_logo_llc

Low Cost Alarm System Script

Here is the example script for building the low cost alarm system. Make sure your substitute your own values for the Email and the IO8-G "port_location" parameters. We've added comment lines, for clarity.

# create our Emailing Device
run_script("Scripts/Device/EMail/TextMessagingPOP", email_address:"9995551212@vzwpix.com", gmail_polling:true, host:"pop.gmail.com", id:"alarm_mailer", mail_subject:"Alarm Message", password:"alarm", poll_interval:300, smtp_host:"smtp.gmail.com", smtp_port:587, ssl_enable:true, user_name:"alarm_system@gmail.com")

# create our IO8-G Device
run_script("Scripts/Device/DLP/IO8", id:"io8", poll_interval:1, port_location:"/dev/ttyUSB0")

# create our Alarm Device and a "door" input terminal
run_script("Scripts/Device/Virtual/Alarm/Alarm", duration:1, id:"alarm") run_script("Scripts/Device/Virtual/Alarm/InputTypes/Equal", alarm_id:"alarm", input_name:"door", value:"on")


# wire everything together
wire("io8:1S", "alarm:door")
wire("alarm:messages", "alarm_mailer:in")
wire("alarm_mailer:out", "alarm:command")

Catalina Computing, LLC.

Copyright © Catalina Computing, LLC. (2013-2017)




Page last updated: Wed Jun 4 16:46:21 2014 (UTC)