-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTempDetailsNew.html
166 lines (127 loc) · 7.26 KB
/
TempDetailsNew.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
<!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="http://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><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 class="active"><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>
</div><!--/.nav-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container">
<div class="tempmonitors" id="detailedgraphs">
<h1>Detailed Graphs</h1>
</div>
<hr>
<footer>
<p>© TM 2013-2016</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 detailled sliding graphs */
streams = [ { stream: 5, marker: 'o', label: 'Out', toggle: true},
{ stream: 6, marker: 'i', label: 'In'}];
/* var gen5 = new Graph("Températures chaudière - 6h",'graph_intemp5', streams, feedtable[0].feed, {start: moment().subtract('hours', 6).format(), interval: 30, limit: 1000});
gen5.getAllData();
*/
var slide1 = new Graph("Températures chaudière - 24h", 'chart', streams, feedtable[0].feed,
[ {start: moment().subtract('hours', 24).format(), duration: '6hours', interval: 30, limit: 800},
{start: moment().subtract('hours', 18).format(), duration: '6hours', interval: 30, limit: 800},
{start: moment().subtract('hours', 12).format(), duration: '6hours', interval: 30, limit: 800},
{start: moment().subtract('hours', 6).format(), duration: '6hours', interval: 30, limit: 800} ],
10);
/*
var slide1 = new Graph("Températures chaudière - 24h", 'chart', streams, feedtable[0].feed,
[ {start: moment().subtract('hours', 24).format(), duration: '1hours', interval: 30, limit: 800}]);
*/
slide1.getAllDataGenSlidingGraphDygraphNew();
streams = [ { stream: 1, marker: 't', label: 'Thermostat'},
{ stream: 3, marker: 'e', label: 'Exterieur'}];
var slide2 = new Graph("Températures intérieur / extérieur - 3mois",'chart2', streams, feedtable[0].feed,
[{start: moment().subtract('days', 88).format(), interval: 21600, limit : 500, interval_type: 'discrete'}]);
slide2.getAllDataGenSlidingGraphDygraph();
// New
streams = [ { stream: 5, marker: 'o', label: 'Out', toggle: true},
{ stream: 6, marker: 'i', label: 'In'},
{ stream: 1, marker: 't', label: 'Thermostat'},
{ stream: 3, marker: 'e', label: 'Exterieur'}];
var slide3 = new Graph("Températures intérieur / chaudière - 48h", 'chart3', streams, feedtable[0].feed,
[ {start: moment().subtract('hours', 48).format(), duration: '12hours', interval: 60, limit: 800, interval_type: 'discrete'},
{start: moment().subtract('hours', 36).format(), duration: '12hours', interval: 60, limit: 800, interval_type: 'discrete'},
{start: moment().subtract('hours', 24).format(), duration: '12hours', interval: 60, limit: 800, interval_type: 'discrete'},
{start: moment().subtract('hours', 12).format(), duration: '12hours', interval: 60, limit: 800, interval_type: 'discrete'} ],
10);
slide3.getAllDataGenSlidingGraphDygraph();
});
</script>
</body>
</html>