LAN DS18B20 WEB Temperature Monitor 1 meter Cable
www.WEB-Relays.com
www.Facebook.com/KMtronic

PHP temperature monitoring KMtronic Temperature Monitor

Spread the love

 

 

 

PHP File:

<?php

// Loading the XML file
 $xml = simplexml_load_file("http://88.87.29.196:8002/status.xml");

foreach($xml->children() as $sensor)
 {
 echo $sensor->name." ";
 echo " temperature is ".$sensor->temp."\r\n";
 }

?>

 

Output:

2874EDD0040000F3 temperature is 25.62
284108D104000072 temperature is 24.50
28C9A0B804000037 temperature is 26.06
28F3FDB80400006C temperature is 29.93

 

 

KMtronic LAN WEB 8 Channel Relay board