2014-02-22 12:37:56 +01:00
|
|
|
<!DOCTYPE html>
|
2014-03-13 20:56:03 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2014-04-21 16:05:13 +02:00
|
|
|
|
|
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
|
|
|
<link type="image/x-icon" href="favicon.ico" />
|
|
|
|
|
|
|
|
<link rel="apple-touch-icon" sizes="57x57" href="images/logo57x57.png"> <!-- iOS 6 iPhone -->
|
|
|
|
<link rel="apple-touch-icon" sizes="72x72" href="images/logo72x72.png"> <!-- iOS 6 iPad -->
|
|
|
|
<link rel="apple-touch-icon" sizes="76x76" href="images/logo76x76.png"> <!-- iOS 7 iPad -->
|
|
|
|
<link rel="apple-touch-icon" sizes="114x114" href="images/logo114x114.png"> <!-- iOS 6 iPhone (retina) -->
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="images/logo120x120.png"> <!-- iOS 7 iPhone (retina) -->
|
|
|
|
<link rel="apple-touch-icon" sizes="144x144" href="images/logo144x144.png"> <!-- iOS 6 iPad (retina) -->
|
|
|
|
<link rel="apple-touch-icon" sizes="152x152" href="images/logo152x152.png"> <!-- iOS 7 iPad (retina) -->
|
|
|
|
|
|
|
|
<!-- iOS 6 & 7 iPad (retina, landscape) -->
|
|
|
|
<link href="images/apple-touch-startup-image-1496x2048.png"media="(device-width: 768px) and (device-height: 1024px)
|
|
|
|
and (orientation: landscape)
|
|
|
|
and (-webkit-device-pixel-ratio: 2)"
|
|
|
|
rel="apple-touch-startup-image">
|
|
|
|
<!-- iOS 6 & 7 iPad (retina, portrait) -->
|
|
|
|
<link href="images/apple-touch-startup-image-1536x2008.png" media="(device-width: 768px) and (device-height: 1024px)
|
|
|
|
and (orientation: portrait)
|
|
|
|
and (-webkit-device-pixel-ratio: 2)"
|
|
|
|
rel="apple-touch-startup-image">
|
|
|
|
|
2014-04-12 13:38:26 +02:00
|
|
|
<meta name="apple-mobile-web-app-title" content="Innen">
|
2014-03-13 20:56:03 +01:00
|
|
|
<title>Innensensoren</title>
|
2014-05-14 20:25:27 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="./style.css" />
|
2014-03-14 16:54:53 +01:00
|
|
|
<script type="text/javascript" src="./Fremddateien/dygraph-combined.js"></script>
|
2014-04-12 13:38:26 +02:00
|
|
|
<script type="text/javascript" src="./Fremddateien/CibulCalendar.min.js"></script>
|
2014-03-13 20:56:03 +01:00
|
|
|
<style type="text/css">
|
|
|
|
#graphdiv {
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
|
|
|
right: 10px;
|
2014-03-14 16:54:53 +01:00
|
|
|
top: 80px;
|
|
|
|
bottom: 50px;
|
2014-03-13 20:56:03 +01:00
|
|
|
}
|
2014-02-22 12:37:56 +01:00
|
|
|
#auswahl {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 10px;
|
|
|
|
}
|
|
|
|
#link {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 10px;
|
|
|
|
right: 80px;
|
|
|
|
}
|
2014-03-14 16:54:53 +01:00
|
|
|
#zoom {
|
|
|
|
position: absolute;
|
|
|
|
top: 30px;
|
|
|
|
}
|
2014-03-13 20:56:03 +01:00
|
|
|
</style>
|
2014-04-12 13:38:26 +02:00
|
|
|
<style type="text/css">
|
|
|
|
.content { padding: 20px; display: inline-block; font-size: 1em; }
|
|
|
|
|
|
|
|
.ccal { width: 18em; font-size: 0.8em; margin-bottom: 5px;text-align: center; font-family: 'Arial',Tahoma,Helvetica,Sans-Serif;}
|
|
|
|
.ccal ul { margin: 0; padding: 0!important; text-align: center; }
|
|
|
|
.ccal li { list-style-type: none; display: inline-block; width: 13.2%; cursor: pointer; text-align: center; margin:0; }
|
|
|
|
.ccal li span { display: inline-block; line-height: 1.8em; }
|
|
|
|
.ccal li.calmonth { width: 66%; }
|
|
|
|
.ccal li span { padding: 0.1em 0.05em; display: block; }
|
|
|
|
.ccal li.calprev span, .ccal li.calnext span { color: #aaa; }
|
|
|
|
.ccal .calbody li.selected span { background: #666; color: white; }
|
|
|
|
.ccal .calbody li.preselected span { background: #f0f0f0; }
|
|
|
|
.ccal * { -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; }
|
|
|
|
.today { font-weight: bold; }
|
|
|
|
.calendar-canvas {
|
|
|
|
text-align: center;
|
|
|
|
background: white;
|
|
|
|
v-moz-box-shadow: 0 3px 4px #999999;
|
|
|
|
-moz-box-shadow: 0 3px 4px #999999;
|
|
|
|
-webkit-box-shadow: 0 3px 4px #999999;
|
|
|
|
box-shadow: 0 1px 2px #999999;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2014-02-22 12:37:56 +01:00
|
|
|
</head>
|
2014-04-12 13:38:26 +02:00
|
|
|
<body onload="onload()">
|
2014-05-14 20:25:27 +02:00
|
|
|
<!--Beginn Navigationsleiste-->
|
|
|
|
<div id="nav">
|
|
|
|
<ul>
|
|
|
|
<li><a href="./index.html">Hauptseite</a></li>
|
|
|
|
<li><a href="./aktuell.html">Aktueller Wert</a></li>
|
|
|
|
<li><a href="./dygraphs_außen.html">Diagramm (Außen)</a></li>
|
|
|
|
<li><a href="./dygraphs_innen.html">Diagramm (Innen)</a></li>
|
|
|
|
<li><a href="">Über das Projekt</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<!--Ende Navigationsleiste-->
|
2014-04-15 14:15:54 +02:00
|
|
|
<iframe width="1" scrolling="no" height="1" frameborder="0" src="control.php?aktion=running" seamless="seamless"></iframe>
|
2014-02-22 12:37:56 +01:00
|
|
|
<div id="graphdiv"></div>
|
2014-03-13 20:56:03 +01:00
|
|
|
<div id="Legende"></div>
|
2014-02-22 12:37:56 +01:00
|
|
|
<span id="auswahl">
|
|
|
|
<input type=checkbox id="7" onClick="change(this)">
|
|
|
|
<label for="7" style="color: #00A6A6;font-weight:bold">Außentemperatur</label>
|
|
|
|
<input type=checkbox id="6" onClick="change(this)">
|
|
|
|
<label for="6" style="color: black;font-weight:bold">Luftdruck</label>
|
|
|
|
<input type=checkbox id="5" onClick="change(this)">
|
|
|
|
<label for="5" style="color: #00FF00;font-weight:bold">Luftfeuchtigkeit</label>
|
|
|
|
<input type=checkbox id="4" onClick="change(this)">
|
|
|
|
<label for="4" style="color: #00A6A6;font-weight:bold">Temperatur (Feuchtesensor)</label>
|
|
|
|
<input type=checkbox id="2" onClick="change(this)">
|
|
|
|
<label for="2" style="color: #0000FF;font-weight:bold">Bodentemperatur</label>
|
|
|
|
<input type=checkbox id="0" checked onClick="change(this)">
|
|
|
|
<label for="0" style="color: #D4AE0B;font-weight:bold">Innentemperatur</label>
|
2014-04-13 10:47:27 +02:00
|
|
|
<input type=checkbox id="9" onClick="change(this)">
|
|
|
|
<label for="9" style="color: #00E7FF;font-weight:bold">Luftqualität</label>
|
2014-02-22 12:37:56 +01:00
|
|
|
<input type=checkbox id="8" checked onClick="change(this)">
|
|
|
|
<label for="8" style="color: orange;font-weight:bold">Prozessor</label>
|
|
|
|
<input type=checkbox id="1" checked onClick="change(this)">
|
|
|
|
<label for="1" style="color: red;font-weight:bold">Gerätetemperatur 1</label>
|
|
|
|
<input type=checkbox id="3" checked onClick="change(this)">
|
|
|
|
<label for="3" style="color: red;font-weight:bold">Gerätetemperatur 2</label>
|
|
|
|
</span>
|
2014-03-14 16:54:53 +01:00
|
|
|
<span id="zoom">
|
2014-04-12 13:38:26 +02:00
|
|
|
<input type="button" value="Letzter Tag" onclick="zoomGraphX(new Date().getTime()-86400000, (new Date().getTime()))">
|
|
|
|
<input type="button" value="Letzte Woche" onclick="zoomGraphX(new Date().getTime()-86400000*7, (new Date().getTime()))">
|
|
|
|
<input type="text" id="datespan"/>
|
2014-03-14 16:54:53 +01:00
|
|
|
</span>
|
2014-02-22 12:37:56 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
g = new Dygraph(
|
|
|
|
document.getElementById("graphdiv"),
|
|
|
|
"dygraph.csv", // path to CSV file
|
|
|
|
{ showRoller: true, //Möglichkeit zum Runden anzeigen
|
|
|
|
animatedZooms: true,
|
|
|
|
// dateWindow: [ Date.parse("2012/09/29 12:00:00"),Date.parse("2013/11/10 12:00:00") ], //Start- und Endzeitraum
|
|
|
|
labels: ["Zeit", "Innentemperatur", "Gerätetemperatur 1", "Bodentemperatur", "Gerätetemperatur 2", "Temperatur (Feuchtesensor)", "Luftfeuchtigkeit", "Luftdruck", "Außentemperatur", "Prozessor", "Luftqualität"],
|
|
|
|
labelsDiv: document.getElementById("Legende"), //Legende in einem bestimmten DIV anzeigen
|
|
|
|
// 'Luftfeuchtigkeit': { //eigene y-Achse für Luftfeuchtigkeit
|
|
|
|
// axis: { valueRange: [1, 99],
|
|
|
|
// independentTicks: true
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
'Luftqualität': { //eigene y-Achse für Luftdruck
|
|
|
|
axis: { independentTicks: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'Luftdruck': {
|
|
|
|
axis: 'Luftqualität'
|
|
|
|
},
|
|
|
|
ylabel: 'Temperatur (°C), Luftfeuchtigkeit (%)',
|
|
|
|
|
|
|
|
y2label: 'Luftqualität, Luftdruck (hPa)',
|
2014-04-13 10:47:27 +02:00
|
|
|
colors: [ "#D4AE0B", "red", "#0000FF", "red", "#00A6A6", "#00FF00", "black", "#00A6A6", "orange", "#00E7FF" ],
|
2014-02-22 12:37:56 +01:00
|
|
|
strokeWidth: 3, // Liniendicke
|
|
|
|
rollPeriod: 10, // Runden standardmäßig auf 10 setzen
|
2014-04-13 10:47:27 +02:00
|
|
|
visibility: [true, true, false, true, false, false, false, false, true, false]
|
2014-02-22 12:37:56 +01:00
|
|
|
// highlightSeriesOpts: {
|
|
|
|
// strokeWidth: 5,
|
|
|
|
// strokeBorderWidth: 1,
|
|
|
|
// }
|
|
|
|
// showRangeSelector: true, //Auswahlzeile anzeigen
|
|
|
|
// rangeSelectorHeight: 80
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // options
|
|
|
|
);
|
|
|
|
function change(el) {
|
|
|
|
g.setVisibility(el.id, el.checked);
|
|
|
|
|
|
|
|
}
|
2014-03-14 16:54:53 +01:00
|
|
|
function zoomGraphX(minDate, maxDate) {
|
|
|
|
g.updateOptions({
|
|
|
|
dateWindow: [minDate, maxDate]
|
|
|
|
});
|
|
|
|
}
|
2014-02-22 12:37:56 +01:00
|
|
|
</script>
|
2014-04-12 13:38:26 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
function onload() {
|
|
|
|
setCibulCalendar('datespan',{onSelect: function(selected) {
|
|
|
|
console.log(selected.begin);
|
|
|
|
console.log(selected.end);
|
2014-04-13 10:56:23 +02:00
|
|
|
zoomGraphX(selected.begin.getTime(), (selected.end.getTime()+86400000))
|
2014-04-12 13:38:26 +02:00
|
|
|
}});
|
|
|
|
}
|
|
|
|
</script>
|
2014-02-22 12:37:56 +01:00
|
|
|
</body>
|
|
|
|
</html>
|