1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<html>
<head>
<title>Control Panel</title>
<script src="lib/d3-v2.6.1/d3.js" type="text/javascript"></script>
<script src="lib/d3-v2.6.1/d3.time.js" type="text/javascript"></script>
<script src="src/d3.plot.js" type="text/javascript"></script>
<script src="src/d3.control.js" type="text/javascript"></script>
<style>
path {
stroke: steelblue;
stroke-width: 2;
fill: none;
}
line {
stroke: black;
}
div.popup {
position: absolute;
border: 2px solid gray;
background-color: #fefefe;
}
div.popup .plot {
margin: 5px;
}
</style>
</head>
<body>
<div id="image"></div>
<script type="text/javascript">
var mapping = {
/* id : { options } */
"heizkesselWert":{
type:"text",
sensor:"heizkreisregler10.betriebsdatenRegler1.kesselTemperatur",
range:7*60*60*24*1000 /*7 days*/},
"tempkollektorWert":{
type:"text",
sensor:"heizkreisregler9.solarDaten.tempKollektor",
range:7*60*60*24*1000},
"temperatur_oel":{
type:"text",
sensor:"feuerungsautomat1.betriebsdatenRegler1.boilerTemperatur",
range:7*60*60*24*1000},
"temperatur_holz":{
type:"text",
sensor:"feuerungsautomat1.betriebsdatenRegler1.boilerTemperatur",
range:7*60*60*24*1000},
};
var control = d3.control(d3.select("#image"), "draw.svg", mapping);
</script>
</body>
</html>
|