From: Bernhard Tittelbach Date: Thu, 17 Oct 2013 16:06:21 +0000 (+0000) Subject: sensorgauges X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=9148b190d80a15e5393f7ef8c5bd6997c4b40bb2;p=svn42.git sensorgauges --- 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 ...
-
-
+
+
+ + + + + + +