updated removed
[home-automation.git] / weather3.php
1 <?
2
3     require_once("pxweather.class.php");
4     $w = new Weather("19046", $force = true);
5     $w->load();
6
7     echo "<table border=1>";
8     echo "<tr>";
9
10     foreach($w->getDaycasts() as $forecast)
11     {
12       echo "<td><center>";
13       echo $forecast['day']. "<br>";
14       echo "<img src='icons/weather/".$w->weatherString($forecast['weather']).".png'><br>";
15       echo $w->weatherString($forecast['weather']) . "<br>";
16         
17       if (isset($forecast['low_temp']))
18         echo "Low: " . $forecast['low_temp'] . "<br>";
19
20       if (isset($forecast['high_temp']))
21         echo "High: " . $forecast['high_temp'] . "<br>";
22             
23       #echo "Description: " . $forecast['text'] . "<br><br>";
24       #echo "</td>";
25       echo "</center></td>";
26     }
27     echo "</tr>";
28     echo "</table>";
29 ?>
30 <?php 
31   include("weather-footer.php");
32 ?>