When sending the following command in a browser to his Foscam camera:
Code: Select all
http://192.168.1.xx:xx/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=xxxxx&pwd=xxxxx
Code: Select all
<CGI_Result>
<result>0</result>
<IOAlarm>0</IOAlarm>
<motionDetectAlarm>1</motionDetectAlarm>
<soundAlarm>1</soundAlarm>
<record>0</record>
<sdState>0</sdState>
<sdFreeSpace>0k</sdFreeSpace>
<sdTotalSpace>0k</sdTotalSpace>
<ntpState>1</ntpState>
<ddnsState>0</ddnsState>
<url>http%3A%2F%2Flg3102.myfoscam.org%3A85</url>
<upnpState>0</upnpState>
<isWifiConnected>0</isWifiConnected>
<wifiConnectedAP></wifiConnectedAP>
<infraLedState>1</infraLedState>
<humanDetectAlarmState>1</humanDetectAlarmState>
</CGI_Result>
With the command curl in a script in LUA in domoticz:
Code: Select all
os.execute('curl "http://192.168.1.xx:xx/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=xxxxx&pwd=xxxxx"')
Would be really convenient to do some scenario in case of alarm.
If you have any ideas ...