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

readNamedData

Is used by:
HV_showLog

Script to read in structured data, where the first line is expected to contain the names of the data columns.

From dicrectory $path the file $fname is read in. The data should be in columns which are separated by $delimiter.

The result $data is an array with column names of raw data as array keys.

<?php 
/* published under GPL www.gnu.org/licenses/gpl.html */
function readNamedData($fname,$path,$delimiter){
  $fname=sprintf("%s%s", $path, $fname);
  if (file_exists($fname)) {
    $fid = fopen($fname, "r");
    $line = fgets( $fid, 2048 ); #headerline
    $line=str_replace("#","",trim($line));
    $fieldNames=explode($delimiter,$line);
    $NoVars=count($fieldNames);
    $line = fgets( $fid, 2048 );
    $n=-1;
    while(!feof($fid)){
      $n++;
      /* change format of numbers */
      $line=str_replace(",",".",$line);
      $values=explode($delimiter,$line);
      $time[$n]=trim($values[0]);
      for ($m=0;$m<$NoVars;$m++){
	$data[$fieldNames[$m]][$n]=trim($values[$m]);
      } #m
      $line = fgets( $fid, 2048 );
    } #n
    fclose($fid);
  }else{
    printf("FILE ".$fname." DOES NOT EXIST!\N");
  }
  return $data;
}
?>
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!