1Set up the Raspberry Pi
2Electrical Connection of Sensores and Actuators
3Set up the Connection
4Heating Control

no warranty for any of the provided information

HV_showWeatherForecast

Is used by:
index

HV_Admin_Login

Just to indicate that the pulling of the weather forecast works, this fuctions reads the last line of the weather logfile and shows its values.

<?php 
/* published under GPL www.gnu.org/licenses/gpl.html */
function HV_showWeatherForecast(){
  $weatherFile="ambient".date('Y-m-d').".tsv";
  if (file_exists($weatherFile)) {
    $weather = `tail -n 1 $weatherFile`;
  }else{
    $yesterday=date("Y-m-d",mktime(0, 0, 0, date("m")  , date("d")-1, date("Y")));
    $weatherFile="ambient".$yesterday.".tsv";
    $weather = `tail -n 1 $weatherFile`;
  }
  $tmp=explode("\t",$weather);
  $tmp[0]=sprintf("%s Uhr",$tmp[0]);
  $tmp[1]=sprintf("%3.1f ",$tmp[1])."°C";
  $tmp[2]=sprintf("%3.1f g/kg",$tmp[2]*1000);
  $tmp[3]=sprintf("%3d ",$tmp[3])."%";
  $tmp[4]=sprintf("%4.1f kPa",$tmp[4]/1000);
  $weatherString ="\n<p style='color:teal;'>Wettervorhersage von ".$tmp[0]."\n";
  $weatherString.="<table>\n";
  $weatherString.="<tr><td style='color:teal;'>Temperatur:   </td>
                         <td style='color:teal;'>".$tmp[1]."   </td></tr>\n";
  $weatherString.="<tr><td style='color:teal;'>spez. Feuchte:</td>
                         <td style='color:teal;'>".$tmp[2]."   </td></tr>\n";
  $weatherString.="<tr><td style='color:teal;'>Sonnenschein: </td>
                         <td style='color:teal;'>".$tmp[3]."   </td></tr>\n";
  $weatherString.="<tr><td style='color:teal;'>Luftdruck:    </td>
                         <td style='color:teal;'>".$tmp[4]."   </td></tr>\n";
  $weatherString.="</table></p>\n";
  return $weatherString;
}
?>
1HV_Admin_Login
2HV_colorMap
3HV_config
4HV_convertASCII
5HV_getSunPrediction
6HV_heatingControl
7HV_loop
8HV_readOperationState
9HV_readTemperatures
10HV_restart
11HV_serviceLog
12HV_setActuators
13HV_setParameters
14HV_showHouse
15HV_showLog
16HV_showRawValues
17HV_showWeatherForecast
18HV_thermos200
19HV_ventProg
20HV_writeLog
21index
22MoistAir
23readFilenames
24readNamedData
25tableInterpol

 

gnuplot

gnuplot is used to visualise the results - via script you can do infinite diagrams in 1 second.
Run 'test' in gnuplot to get an owerview of the available line- and symbolstyles.

Login
Valid HTML 4.01!