diff --git a/webstuff/frontend/php_inc/modules/hum.inc.php b/webstuff/frontend/php_inc/modules/hum.inc.php index 3550581..bf279b3 100644 --- a/webstuff/frontend/php_inc/modules/hum.inc.php +++ b/webstuff/frontend/php_inc/modules/hum.inc.php @@ -59,15 +59,15 @@ class Hum{ /* momentanen Durchschnittswert bestimmen */ function _fetchAverage($sensId, $table, &$connection){ $avData = array('average'=>0, 'count'=>0); /* Array initialisieren */ - $i = 3; /* Laufvariable */ + $i = 1; /* Laufvariable */ while($avData['count']<5){ /* Schleife prüft, in welchem Interval 5 Werte zusammenkommen */ - $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ $i++; /* Laufvariable erhöhen */ + $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ } /* Werte den Klassenvariablen zuordnen */ $this->avVal = $avData['average']; - $this->avInter = $i*10; + $this->avInter = $i*15; } /* Bestimmt die Tendenz */ diff --git a/webstuff/frontend/php_inc/modules/press.inc.php b/webstuff/frontend/php_inc/modules/press.inc.php index 5c1e91d..bae4852 100644 --- a/webstuff/frontend/php_inc/modules/press.inc.php +++ b/webstuff/frontend/php_inc/modules/press.inc.php @@ -58,15 +58,15 @@ class Press{ /* momentanen Durchschnittswert bestimmen */ function _fetchAverage($sensId, $table, &$connection){ $avData = array('average'=>0, 'count'=>0); /* Array initialisieren */ - $i = 3; /* Laufvariable */ + $i = 1; /* Laufvariable */ while($avData['count']<5){ /* Schleife prüft, in welchem Interval 5 Werte zusammenkommen */ - $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ $i++; /* Laufvariable erhöhen */ + $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ } /* Werte den Klassenvariablen zuordnen */ $this->avVal = $avData['average']; - $this->avInter = $i*10; + $this->avInter = $i*15; } /* Bestimmt die Tendenz */ diff --git a/webstuff/frontend/php_inc/modules/temp.inc.php b/webstuff/frontend/php_inc/modules/temp.inc.php index 187a26f..376776e 100644 --- a/webstuff/frontend/php_inc/modules/temp.inc.php +++ b/webstuff/frontend/php_inc/modules/temp.inc.php @@ -58,15 +58,15 @@ class Temp{ /* momentanen Durchschnittswert bestimmen */ function _fetchAverage($sensId, $table, &$connection){ $avData = array('average'=>0, 'count'=>0); /* Array initialisieren */ - $i = 3; /* Laufvariable */ + $i = 1; /* Laufvariable */ while($avData['count']<5){ /* Schleife prüft, in welchem Interval 5 Werte zusammenkommen */ - $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ $i++; /* Laufvariable erhöhen */ + $avData = $this->_getAverage($sensId, $table, &$connection, ($i*15)." minutes"); /* Holt Werte mit gegebenem Interval */ } /* Werte den Klassenvariablen zuordnen */ $this->avVal = $avData['average']; - $this->avInter = $i*10; + $this->avInter = $i*15; } /* Bestimmt die Tendenz */ diff --git a/webstuff/frontend/php_inc/parser.inc.php b/webstuff/frontend/php_inc/parser.inc.php index 246342d..2f49607 100644 --- a/webstuff/frontend/php_inc/parser.inc.php +++ b/webstuff/frontend/php_inc/parser.inc.php @@ -30,6 +30,7 @@ class Parser{ } + /* File Parsen */ function parseContent($fileName, & $callingObject, $filePart=null){ $fileArray = file($fileName); /* File als Array einlesen */ if($filePart != null){