Hi all,
I like to add my data to the web service but I have no idea how to get the data out of my system into a XML file.
I’m using xComfort with IP-Symcon.
Someone a idea or better, already a script to do this?
Thanks,
Albert
<?xml version="1.0" encoding="UTF-8"?>
<BWired>
<Init>
<DateTime>07-08-2012 12:09:35</DateTime>
<UserName>ludom</UserName>
<Password>B3w1r3dW3bs3rv1c3</Password>
<ScreenName>Ludom</ScreenName>
<Gpslat>51.4308</Gpslat>
<Gpslong>5.5399</Gpslong>
<City>Geldrop</City>
<Website/>
<WebCamPicUrl/>
<Title>Ludom's Online Home</Title>
</Init>
<Entry>
<Name>Temperature Outside</Name>
<ID>0</ID>
<Units>C</Units>
<Value>17.5</Value>
</Entry>
<Entry>
<Name>Temperature Inside</Name>
<ID>1</ID>
<Units>C</Units>
<Value>21</Value>
</Entry>
</BWired>
18-08-2012 12:13:56albertshousealbertshouse2012AlbertsHouse51.8442794.968341Gorinchemwww.albertsweb.nlhomeserver.albertsweb.nl:82/data/img.php?imageid=45997MyTitle2Temperature outside:029.1 °CTemperature inside:123.8 °CHumidity outside:250.4 %Humidity inside:346.2 %
Bwired Googlemaps Webservice.
appie wrote:Hi,
I try to get this working with the script of Ludom but I don’t see the XML file.
See the review echo below from the script, is this enough for sending my XML string upload to the WebService of BWired?18-08-2012 12:13:56albertshousealbertshouse2012AlbertsHouse51.8442794.968341Gorinchemwww.albertsweb.nlhomeserver.albertsweb.nl:82/data/img.php?imageid=45997MyTitle2Temperature outside:029.1 °CTemperature inside:123.8 °CHumidity outside:250.4 %Humidity inside:346.2 %
Bwired Googlemaps Webservice.
Albert
$bwired->addEntry('Temperature Outside:', 1, '°C', $temp_out);
appie wrote:Hi Ludom,
When I put this in the code no XML upload is send to BWired. I don’t see a error, but in the echo I see the °C and not the oC.
Maybe this is because I’m running the code inside IP-Symcon, I’m not sure?
- Code: Select all
$bwired->addEntry('Temperature Outside:', 1, '°C', $temp_out);
Is there a way to make a blank line, to separate the different sensor groups?
Albert
°C
$bwired->addEntry(' ', 7, ' ', NULL);
$bwired->addEntry('Temperature Outside:', 1, 'ºC', $temp_out);
Users browsing this forum: No registered users and 1 guest