2014-04-08, 13:10
Yes this add-on queries the status of the camera's own motion detection alarm. I found the command to do that for the MJPEG models, e.g. using the Foscam demo:
http://50.197.211.181:8910/get_status.cg...pwd=foscam
This reveals that the response is not XML format as with the HD models, so that adds another complication for adapting the current code. The easiest way to parse the response would be something like
Start by going through the add-on code until you understand the basics of what it does, but adapting it would not be trivial.
If you want something basic without adapting the add-on you can access the main video feed in XBMC by creating a text .strm file with contents in this format:
http://50.197.211.181:8910/videostream.a...pwd=foscam
http://wiki.xbmc.org/index.php?title=Int...ile_method:
http://50.197.211.181:8910/get_status.cg...pwd=foscam
This reveals that the response is not XML format as with the HD models, so that adds another complication for adapting the current code. The easiest way to parse the response would be something like
PHP Code:
re.findall("^var (\w+)='?([\w\.]+)'?;$", response, re.M)
Start by going through the add-on code until you understand the basics of what it does, but adapting it would not be trivial.
If you want something basic without adapting the add-on you can access the main video feed in XBMC by creating a text .strm file with contents in this format:
http://50.197.211.181:8910/videostream.a...pwd=foscam
http://wiki.xbmc.org/index.php?title=Int...ile_method: