LAN DS18B20 Temperature Monitor PHP Example 1

 

 

 LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor 

 

 

 

One temperature

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

PHP code


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


        echo "<h1>";


        foreach($xml->children() as $sensor)
        {
            if ($sensor->name == "Office inside" )
            {
                echo $sensor->name." <br />";
                echo $sensor->temp." <br />";
            }
        }


        echo "</h1>";


?>

 


 

 

 

 

 

 

 

 

 

 

Read 3191 times