Changeset 738 for trunk/temp/meteo/load_meteo.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/temp/meteo/load_meteo.php
r737 r738 3 3 include('Image.php'); 4 4 5 class MeteoStation 5 class MeteoStation 6 6 { 7 7 var $Id; … … 28 28 $this->Data = $Data; 29 29 } 30 30 31 31 function DownloadData() 32 32 { 33 33 $XmlData = simplexml_load_file($this->URL); 34 34 35 $Data = array('MeteoStation' => $this->Id, 35 $Data = array('MeteoStation' => $this->Id, 36 36 'WindSpeed' => trim($XmlData->windspeed), 37 37 'WindDir' => trim($XmlData->winddir), … … 61 61 'DewPoint' => $this->Data['DewPoint'])); 62 62 } 63 63 64 64 function CreateImage($FileName) 65 65 { … … 95 95 $Image->SaveToFile($FileName); 96 96 } 97 97 98 98 function LoadFromDb() 99 99 { … … 124 124 foreach($Meteo->Data as $Index => $Item) 125 125 { 126 $Collect[$Index][] = $Item; 126 $Collect[$Index][] = $Item; 127 127 } 128 if(($I % 6) == 0) 128 if(($I % 6) == 0) 129 129 { 130 130 foreach($Collect as $Index => $Item)
Note:
See TracChangeset
for help on using the changeset viewer.