This page last changed on Jan 26, 2014 by nickwren.
I'm attempting to retrieve the alarm trigger out of a Foscam.
I can obtain the data I require from the following command in a browser.
This returns the following:-
How can I extract the alarm_status in OpenRemote?
I was hoping I could use the HTTP command somehow.
Any help would be much appreciated.
You can extract the alarm_status with the following regex:
in the http command.
If you need only the digit then it would require grouping and the regex:
However, grouping is not implemented yet so you need to patch the code yourself. Mode about it http://www.openremote.org/display/forums/regex+match
Posted by aktur at Jan 26, 2014 16:13
That works a treat, thanks.
I now have a camera triggering a label on the ipad whenever it sees motion. I will now write some rules to switch lights on whenever the cameras triggered.
Posted by nickwren at Jan 26, 2014 16:50
Again thanks for the help, I now have three Foscams all set-up so they can trigger any light i desire on movement.
Just going to have a look on the thread about randomizing time so that all the lights don't just turn on together but have a slight random delay.
Posted by nickwren at Jan 26, 2014 20:51