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:
@@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user