Changeset 490


Ignore:
Timestamp:
Feb 23, 2013, 6:36:00 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Při stahování dat z meteo stanice se nyní plní také data do grafů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/temp/meteo/load_meteo.php

    r489 r490  
    110110$Meteo->Name = 'Koliba Zděchov';
    111111//$Meteo->LoadTestData();
     112$URL = 'http://stat.zdechov.net/meteo/add.php';
     113$I = 0;
    112114while(1)
    113115{
    114116  $Meteo->DownloadData();
    115117  $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  }
    116132  sleep(10);
     133  $I++;
    117134}
    118135
Note: See TracChangeset for help on using the changeset viewer.