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

readFilenames

Is used by:
HV_showLog
HV_writeLog
index

Script to get content of directory $path.

If $extension is set to some file type, a list of files of this kind is returned.

If $extension = * is set, lists of all subdirectories and all contained files are returned.

<?php 
/* published under GPL www.gnu.org/licenses/gpl.html */
function readFilenames($path,$extension){
  $fileNames=array();
  $directories=array();
  if (is_dir($path)) {
    if ($dh = opendir($path)) {
      if ($extension=="*"){
	while (($file = readdir($dh)) !== false) {
	  if (is_dir($path."/".$file)) {
	    if ($file != "." AND $file != ".."){
	      array_push($directories,$file);
	    }
	  }else{
	    array_push($fileNames,$file);
	  }
	} #while
	closedir($dh);
	return array($directories,$fileNames);
      }else{
	while (($file = readdir($dh)) !== false) {
	  if (eregi($extension,$file)){
	    array_push($fileNames,$file);
	  }
	} #while
	closedir($dh);
	return $fileNames;
      }
    }
  }
}
?>
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!