Page 1 of 1

TPI question - best way to...

Posted: Tue Oct 02, 2012 12:59 pm
by Juggler
I've read through the documentation and have a couple of ideas of what I would like to be able to do with the TPI.

The first is to activate a Linux program called Motion that will monitor my webcams for motion--it is configurable to record/email notifications on detection. I would like to activate motion whenever I press Armed/Away.

Similarily, I am looking to build a front-end webpage for my home alarm system showing all of the zones. I would like to make this "AJAXy" so that it will change the status of any zone as their status changes.

What is the best way to do this with the TPI? Do I need to continually poll my 2DS for changes, or is their a way to receive an "interrupt" notification?

many thanks,
J>

Re: TPI question - best way to...

Posted: Fri Oct 05, 2012 11:50 am
by mikep
Hi J:
The TPI connection is a persisted TCP connection to the 2DS/3DS card, so you will receive real time notifications in your monitoring app/server. You'll need to track the status on the server side if you want to avoid polling, since the web clients won't always be connected. I've done a similar thing with a tomcat app and DOJO for web access.

Mike