LAN DS18B20 Temperature Monitor PHP Example 2

 

 

 LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor 

 

 

 

All temperatures

 

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)
        {
            echo $sensor->name." <br />";
            echo "Temperature : ".$sensor->temp." <br />";
            echo "<hr/>";
        }
        echo "</h1>";
    ?>

 


 

 

 

 

 

 

 

 

 

 

Read 2737 times