SOLVED: How to use cgi temperature output Foscam to update virtual sensor?
Posted: Monday 31 October 2016 11:23
Hi,
I've recently bought a Fosbaby IP Camera to be used in a babyroom. One of it's features is that is has a Temperature sensor. In the WebUI you can set a minimum and maximum temperature so an alert can be sent if the current temperatue is out of that range. Now I would like to use the current temperaature to update a virtual sensor in Domoticz so if for example the room temp is below 15 degrees C I can turn on the heating system for a while.
I've managed to find an url which cam show me the current temperature: http://192.168.2.12:88//cgi-bin/CGIProx ... xx&pwd=xxx
which gives me the folowing result:
<CGI_Result>
<result>0</result>
<state>1</state>
<degree>18</degree>
</CGI_Result>
So i'm looking for a way to post the <degree> value to (I guess a JSON URL) to update a virtual sensor. Is there anyone who can put me on the right track?
I've recently bought a Fosbaby IP Camera to be used in a babyroom. One of it's features is that is has a Temperature sensor. In the WebUI you can set a minimum and maximum temperature so an alert can be sent if the current temperatue is out of that range. Now I would like to use the current temperaature to update a virtual sensor in Domoticz so if for example the room temp is below 15 degrees C I can turn on the heating system for a while.
I've managed to find an url which cam show me the current temperature: http://192.168.2.12:88//cgi-bin/CGIProx ... xx&pwd=xxx
which gives me the folowing result:
<CGI_Result>
<result>0</result>
<state>1</state>
<degree>18</degree>
</CGI_Result>
So i'm looking for a way to post the <degree> value to (I guess a JSON URL) to update a virtual sensor. Is there anyone who can put me on the right track?