I'm trying to improve my script in order to send me a Push notification and an email (with PushingBox.com) as soon as there is an intrusion.
Currently I have a script on an other server that checks every 30s the URL http://myrouter/cgi-bin/jsongetxplstate.cgi
Here is an example of the output :
Code: Select all
{
"status":"disarmed",
"pmaxstatus":"disarmed",
"readytoarm":"",
"sensor":[
{
"zone":"Hall entree",
"type":"interior",
"alert":"false",
"armed":"false",
"tamper":"false",
"low-battery":"false"
},
{
"zone":"Cuisine",
"type":"interior",
"alert":"false",
"armed":"false",
"tamper":"false",
"low-battery":"false"
}
]
}
I also test the values of "pmaxstatus". Possible values are "disarmed", "arming-away" and "armed-away".
But nothing that can indicate an intrusion.
Any idea? How have you handle this?