1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00

charts added to webfrontend

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@114 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-09-18 17:58:25 +00:00
parent cac1a73c77
commit 504ee3b339
8 changed files with 211 additions and 2 deletions
+9
View File
@@ -1,5 +1,6 @@
<?
include_once("php_inc/parser.inc.php"); /* Parser */
include_once("php_inc/chart.inc.php"); /* Chart */
include_once("php_inc/modules/sensor.inc.php"); /* Sensor-Klasse */
include_once("php_inc/modules/temp.inc.php"); /* Temp-Klasse */
include_once("php_inc/modules/rain.inc.php"); /* Rain-Klasse */
@@ -92,10 +93,18 @@ class Module{
return $callObject->$funcName($content_split[1]); /* Methode ausführen (Wert holen) und zurückgeben */
}
function addChartLink($chartName){
return Chart::generateChartLink($chartName.'_'.$this->sensId);
}
function getModId($type){
if($type == "css")
return $this->modName."_".$this->sensId;
}
function addChart($chartName){
Chart::insertChart($chartName);
}
}
?>