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
+27 -1
View File
@@ -6,7 +6,24 @@
$pg_pass = "";
/* Default-Werte */
$default_set = "test";
$default_set = "test";
$default_chart_dir = "images/chart/";
/* Graphen - Bilder */
$cImg = array(
/* Bild - Id Dateiname Link - Name Link - Beschreibung Vorschaubild Set */
'temp_test_1' => array( "temp_ex.png", "Beispiel - Temp", "Zeigt den Temparaturverlauf der letzten 10 Tage", null, "chart"),
'hum_test_1' => array( "hum_ex.png", "Beispiel - Hum", "Zeigt den Luftfeuchte - verlauf der letzten 10 Tage", null, "chart"),
'press_test_1' => array( "press_ex.png", "Beispiel - Press", "Zeigt den Luftdruck - verlauf der letzten 10 Tage", null, "chart"),
'' => array( "", "", "", null, "chart")
);
/* Config-Klasse, Bitte nicht ändern! */
class Config{
@@ -21,5 +38,14 @@ class Config{
return $default_set;
}
function getChartArray($chartId){
global $cImg;
return $cImg[$chartId];
}
function getDefaultChartDir(){
global $default_chart_dir;
return $default_chart_dir;
}
}
?>