-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (147 loc) · 8.07 KB
/
index.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HomeStatus @ CZERU</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/homestatus.css" rel="stylesheet">
<link href="css/nv.d3.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet"type="text/css" href="css/jquery.easy-pie-chart.css">
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="../assets/ico/favicon.png">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">HomeStatus</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="Teleinfo.html">EDF TeleInfo</a></li>
<li><a href="TeleInfoHistory.html">EDF TeleInfo History</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Chauffage <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu">
<li><a href="TempDetailsNew.html">Details - New version</a></li>
<li><a href="TempDetailsHistory.html">History</a></li>
<li><a href="TempDetails.html">Old Version</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a></li>
<!--
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="nav-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" class="form-control" placeholder="Email">
<input type="password" class="form-control" placeholder="Password">
<button type="submit" class="btn btn-default">Sign in</button>
</div>
</form>
-->
</div><!--/.nav-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container">
<div class="tempmonitors">
<h1>Monitors</h1>
<div id="tempmonitors"></div>
</div>
<div class="tempmonitors" id="detailedgraphs">
<h1>Graphs</h1>
</div>
<hr>
<footer>
<p>© TM 2013-2014</p>
</footer>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="https://d23cj0cdvyoxg0.cloudfront.net/xivelyjs-1.0.4.min.js"></script>
<script type="text/javascript" src="js/jquery.easy-pie-chart.js"></script>
<script type="text/javascript" src="js/raphael-min.js"></script>
<script type="text/javascript" src="js/morris.min.js"></script>
<script type="text/javascript" src="js/moment.min.js"></script>
<!--
<script src="js/dygraph-combined.js"></script>
-->
<script src="js/homestatus.js"></script>
<script type="text/javascript">
$(document).ready(function() {
SetupMoment();
xively.setKey( "bI-PWNeyFPrHnJOq7tclJGLVjDiSAKxOSlRJNVVYMTBnbz0g" );
var containers = "tempholder_";
var feedtable = [ { feed: "97289", datastream: "1", title: "Thermostat", minmax: [10, 30], greenzone: [15, 25]},
{ feed: "97289", datastream: "3", title: "Extérieur", minmax: [-10, 40], greenzone: [10, 25]},
{ feed: "97289", datastream: "9", title: "Salon", minmax: [10, 30], greenzone: [15, 25]},
{ feed: "97289", datastream: "8", title: "Chambre", minmax: [10, 30], greenzone: [15, 25]},
{ feed: "97289", datastream: "6", title: "Chaudière IN", minmax: [15, 85], greenzone: [20, 55]},
{ feed: "97289", datastream: "5", title: "Chaudière OUT", minmax: [15, 85], greenzone: [20, 55]}];
/* Generate all Temp monitors */
for(var i = 0; i < feedtable.length; i++){
feedtable[i].container = containers+i;
$("#tempmonitors").append("<div class=\"tempmonitor "+feedtable[i].container+"\"><p>"+feedtable[i].title+"</p><div class=\"tempgauge\" data-percent=\"0\"><span></span></div><p id=\"at\">TEST</p></div>");
feedtable[i].masterelement = $("."+feedtable[i].container);
feedtable[i].element = $(".tempgauge", feedtable[i].masterelement);
feedtable[i].monitor = new Tempmonitor(feedtable[i]);
feedtable[i].monitor.createPie();
feedtable[i].monitor.cosmOneTime();
feedtable[i].monitor.cosmRealTime();
}
streams = [ { stream: 1, marker: 't', label: 'Thermostat'},
{ stream: 8, marker: 'c', label: 'Chambre'},
{ stream: 9, marker: 's', label: 'Salon'}];
var gen1 = new Graph("Températures intérieures - 6h", 'graph_intemp1', streams, feedtable[0].feed, [{start: moment().subtract('hours', 6).format(), interval: 300, limit: 300, interval_type: 'discrete'}]);
gen1.getAllData();
streams = [ { stream: 5, marker: 'o', label: 'Out'},
{ stream: 6, marker: 'i', label: 'In'}];
//var gen2 = new Graph("Températures chaudière - 6h",'graph_intemp2', streams, feedtable[0].feed, [{start: moment().subtract('hours', 6).format(), interval: 300, limit: 300, interval_type: 'discrete'}]);
//gen2.getAllData();
streams = [ { stream: 1, marker: 't', label: 'Thermostat'},
{ stream: 3, marker: 'e', label: 'Exterieur'}];
var gen3 = new Graph("Températures intérieur / extérieur - 48h",'graph_intemp3', streams, feedtable[0].feed, [{start: moment().subtract('hours', 48).format(), interval: 2400, limit: 300, interval_type: 'discrete'}]);
gen3.getAllData();
streams = [ { stream: 5, marker: 'o', label: 'Out', toggle: true},
{ stream: 6, marker: 'i', label: 'In'}];
//var gen4 = new Graph("Températures chaudière - 24h",'graph_intemp4', streams, feedtable[0].feed, [{start: moment().subtract('hours', 24).format(), interval: 300, limit: 1000, interval_type: 'discrete'}]);
//gen4.getAllData();
});
</script>
</body>
</html>