From 9148b190d80a15e5393f7ef8c5bd6997c4b40bb2 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 17 Oct 2013 16:06:21 +0000 Subject: [PATCH] sensorgauges --- raspberry-kiosk/kiosk.js | 53 ++++++++++++++++-------------------- raspberry-kiosk/kiosk768x1366.html | 13 +++++++-- 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/raspberry-kiosk/kiosk.js b/raspberry-kiosk/kiosk.js index 457a359..d506e1e 100644 --- a/raspberry-kiosk/kiosk.js +++ b/raspberry-kiosk/kiosk.js @@ -170,43 +170,38 @@ function drawGauge(targetelem, label, temp, options) { if (targetelem) { var data = google.visualization.arrayToDataTable([["Label", "Value"],[label,temp]]); - options["width"] = targetelem.getAttribute("width"); - options["height"] = targetelem.getAttribute("height"); - if (!gauges.hasOwnProperty(targetelem.id)) { - gauges[targetelem.id] = new google.visualization.Gauge(targetelem); - } + if (!gauges.hasOwnProperty(targetelem.id)) { + gauges[targetelem.id] = new google.visualization.Gauge(targetelem); + } gauges[targetelem.id].draw(data, options); } } var linecharts = {} function drawLineGraph(targetelem, dataarray, options, x_is_epochdate) { - if (dataarray) { - var data; - if (x_is_epochdate) { - data=new google.visualization.DataTable(); - data.addColumn('datetime',dataarray[0][0]); - for (var c=1; c
-
+

Sensorwerte

Lädt ...
Lädt ...
-
-
+
+
+ + + + + + +
-- 1.7.10.4