X-Git-Url: http://russells-world.com/code/?p=home-automation.git;a=blobdiff_plain;f=weather-php-test.php;fp=weather-php-test.php;h=41fa20afb460239787da7061b438425a8391194e;hp=0000000000000000000000000000000000000000;hb=2302283047d4580aa4b97bc8987dd1525480c3ba;hpb=22502eb7a498183fada4a50994fa2bb25e4bb790 diff --git a/weather-php-test.php b/weather-php-test.php new file mode 100644 index 0000000..41fa20a --- /dev/null +++ b/weather-php-test.php @@ -0,0 +1,107 @@ + +load('http://weather/weather/all-output.xml'); + $arrFeeds = array(); + foreach ($doc->getElementsByTagName('weather') as $node) { + $itemRSS = array ( + $item => $node->getElementsByTagName($item)->item(0)->nodeValue, + ); + array_push($arrFeeds, $itemRSS); + } + echo $itemRSS[$item]; +} +?> + + + + + + + + + + + + + + + + + + + + +
TemperatureWind
+
+
[No canvas support]
+
+
+
+
[No canvas support]
+
+ +
+ +