Changeset 490
- Timestamp:
- Feb 23, 2013, 6:36:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/temp/meteo/load_meteo.php
r489 r490 110 110 $Meteo->Name = 'Koliba Zděchov'; 111 111 //$Meteo->LoadTestData(); 112 $URL = 'http://stat.zdechov.net/meteo/add.php'; 113 $I = 0; 112 114 while(1) 113 115 { 114 116 $Meteo->DownloadData(); 115 117 $Meteo->CreateImage('koliba.png'); 118 if(($I % 6) == 0) 119 { 120 file_get_contents($URL.'?MeasureId=28&Value='.$Meteo->Data['Temperature']); 121 file_get_contents($URL.'?MeasureId=29&Value='.$Meteo->Data['AbsHumidity']); 122 file_get_contents($URL.'?MeasureId=30&Value='.$Meteo->Data['BarAltitude']); 123 file_get_contents($URL.'?MeasureId=31&Value='.$Meteo->Data['DewPoint']); 124 file_get_contents($URL.'?MeasureId=32&Value='.$Meteo->Data['Pressure']); 125 file_get_contents($URL.'?MeasureId=33&Value='.$Meteo->Data['RelHumidity']); 126 file_get_contents($URL.'?MeasureId=34&Value='.$Meteo->Data['SysTemp']); 127 file_get_contents($URL.'?MeasureId=35&Value='.$Meteo->Data['WindChill']); 128 file_get_contents($URL.'?MeasureId=36&Value='.$Meteo->Data['WindDir']); 129 file_get_contents($URL.'?MeasureId=37&Value='.$Meteo->Data['WindGust']); 130 file_get_contents($URL.'?MeasureId=38&Value='.$Meteo->Data['WindSpeed']); 131 } 116 132 sleep(10); 133 $I++; 117 134 } 118 135
Note:
See TracChangeset
for help on using the changeset viewer.