-
Notifications
You must be signed in to change notification settings - Fork 4
/
dashboard.html
673 lines (584 loc) · 37.7 KB
/
dashboard.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Allow launching a page fullscreen from home screen shortcuts -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Web App Manifest -->
<link rel="manifest" href="dashboard/manifest.json">
<!-- Lors du rechargement automatique de la page, l'écran de la tablette n'est pas rallumée :) (90000 s = 25h) -->
<meta http-equiv="refresh" content="90000">
<title>Domoticz dashboard</title>
<!-- Bootstrap -->
<link href="dashboard/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="dashboard/bootstrap-3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="dashboard/jdigiclock/jquery.jdigiclock.css" rel="stylesheet">
<link href="dashboard/bootstrap-3.3.7/css/bootstrap-switch.min.css" rel="stylesheet">
<link href="dashboard/bootstrap-3.3.7/css/bootstrap-select.min.css" rel="stylesheet">
<STYLE type="text/css">
<!--
body {
background: #202020 url(dashboard/images/background.jpg) repeat;
font-size: 20px;
}
.container-fluid {
max-width: 1255px;
margin-left: 5px;
margin-right: 0px;
}
.navbar {
min-height: 32px;
margin-bottom: 0px;
padding-bottom: 0px;
font-size: 20px;
}
.navbar-toggle {
padding-top: 0px;
padding-bottom: 0px;
margin-top: 6px;
margin-bottom: 6px;
}
.nav > li > a {
padding: 4px 15px;
}
[class*="col-"] {
padding: 0px;
text-align: center;
}
.blocmodule {
position: relative;
background-color: #363636;
border: 1px solid #4c4c4c;
margin: 15px 4px 5px 4px;
border-radius: 9px;
}
.blocmodule-title {
color: #96AA4F;
position: absolute;
float: left;
top: -12px;
left: 12px;
text-align: left;
padding-left: 5px;
padding-right: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
background-color: inherit;
}
.blocmodule-title-logo {
width: 25px;
}
#blocmodule-parameters {
display: none;
}
#pluie-title {
width: 35px;
}
#velib-title {
position: relative;
top: -1px;
width: 65px;
}
#airparif-title {
position: relative;
top: 1px;
left: -14px;
width: 65px;
}
#ratp-title {
position: relative;
width: 85px;
top: 0px;
left: -5px;
}
#ratp-alert {
position: absolute;
float: right;
top: -12px;
right: 8px;
text-align: right;
color: white;
}
#reveil-title {
width: 20px;
}
#lumierechambre-title {
width: 22px;
}
#wallplug-title {
width: 30px;
}
.blocmodule-body {
color: #FFFFFF;
position: relative;
padding: 15px 0px 5px 0px;
text-align: center;
}
.txt_temp {
font-size: 70px;
vertical-align: top;
height: 88px;
}
.txt_humid {
font-size: 45px;
text-align: center;
}
.txt_temp-consigne {
font-size: 20px;
line-height: 35px;
}
.txt_temp-heure {
color: grey;
text-align: right;
font-size: 11px;
position: absolute;
bottom: 0px;
right: 5px;
}
.table-pluie-heure-time td {
border-collapse: collapse;
border: 1px solid #CFCFCF;
width: 40px;
height: 28px;
}
.graph-pluie-heure-time {
font:0.75em /1.4em Arial, Helvetica, sans-serif;
}
#calendar-wrap {
width: 97%;
height: 213px;
padding: 0;
overflow: hidden;
margin:0 auto;
}
#calendar-iframe {
-ms-zoom: 1.3;
-ms-transform-origin: 75px 20px;
-moz-transform: scale(1.3);
-moz-transform-origin: 75px 20px;
-o-transform: scale(1.3);
-o-transform-origin: 75px 20px;
-webkit-transform: scale(1.3);
-webkit-transform-origin: 75px 20px;
}
.btn-medpadding {
padding: 10px 11px;
}
.btn-lowpadding {
padding: 10px 8px;
}
.btn-verylowpadding {
padding: 10px 4px;
}
.btn-darkgreen {
background-color: #327232;
}
.btn-info-perso {
color:#494949;
background-color: #a9dded;
}
.expandButton
{
display:block;
position:absolute;
top:-8px;
left:-8px;
width:29px;
height:29px;
z-index: 9998;
background:url('/dashboard/images/expand-button.png') no-repeat center center;
}
.closeButton
{
display:block;
position:absolute;
top:-12px;
right:-10px;
width:29px;
height:29px;
z-index: 9999;
background:url('/dashboard/images/close-button.png') no-repeat center center;
}
-->
</STYLE>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- The JS defer scripts begin to download immediately without pausing the parser AND are guaranteed to be executed in the order they occur in the page -->
<script src="dashboard/jquery-3.1.0.min.js"></script>
<script src="dashboard/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="dashboard/bootstrap-3.3.7/js/bootstrap-select.min.js"></script>
<script src="dashboard/bootstrap-3.3.7/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="dashboard/cross-origin/jquery.ajax-cross-origin.min.js"></script>
</head>
<body>
<!-- Bloc overlay -->
<div id="divoverlay" style="overflow:visible; display: none; position: fixed; z-index: 9551; left: 8%; top: 8%; width: 84%; height: 84%; margin:0 auto; border-style: ridge; border-radius: 9px;"></div>
<div id="backgroundgrey" style="opacity: 0.5; background:#000000; display: none; position: fixed; z-index: 9550; width: 100%; height: 100%; margin:0 auto;"></div>
<!-- Static navbar -->
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#" onClick="location.reload(true);">Accueil</a></li>
<li><a href="#" id="fullscreenid" onClick="toggleFullScreen();">Plein écran</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Domoticz <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" onClick="OpenOverlayPage('/');">Domoticz</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onClick="OpenOverlayPage('/#/Temperature');">Température</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onClick="OpenOverlayPage('/#/Utility');">Energie</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onClick="OpenOverlayPage('/#/Log');">Logs</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Services <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" onClick="OpenOverlayPage('/dashboard/pages/ratp.html');">RATP</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onClick="OpenOverlayPage('/velib/');">Velib'</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onClick="OpenOverlayPage('/#/Log');">Logs</a></li>
</ul>
</li>
<li><a href="#" onClick="OpenOverlayPage('/monit');">Monitoring</a></li>
<li><a href="#" onClick="OpenOverlayPage('/dashboard/pages/wifi.html');">WIFI</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#" onClick="RestartDomoticz();"><span class="glyphicon glyphicon-off" aria-hidden="true"></span></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
<div class="row">
<!-- 1ere colonne : modes, volets, temperatures-->
<div class="col-lg-4 col-sm-7">
<table style="width: 100%">
<tr>
<td width="90%">
<div class="blocmodule" style="cursor: pointer;" id="presencecouleur">
<div class="blocmodule-title" style="background-color: transparent;"><img class="blocmodule-title-logo" src="dashboard/images/presence.png" onclick="DomoticzSetPresenceOn();" alt="présence"> </div>
<div class="blocmodule-body" onclick="DomoticzSetPresenceOn();" id="presencetexte"></div>
</div>
</td>
<td style="padding-left: 5px; padding-right: 5px; vertical-align: bottom">
<button type="button" class="btn btn-default btn-md" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDCamera + '&switchcmd=Toggle', $( '#cameraonoff' ).text() === 'Caméra OFF' ? 'Surveillance Caméra ON' : 'Surveillance Caméra OFF' );" id="cameraonoff" style="padding-right: 6px; padding-left: 6px">Caméra OFF</button>
</td>
</tr>
</table>
<div class="blocmodule" style="margin-top: 10px">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="pilot-title" src="dashboard/images/pilot.png" alt="Mode"> Mode</div>
<div style="font-size: 13pt; color:#9d9d9d; position: absolute; float: right; top: -7px; right: 10px; text-align: right; padding-left: 5px; padding-right: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; background-color: inherit;" id="presence2passif" ></div>
<div class="blocmodule-body">
<button type="button" class="btn btn-default btn-lg" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Maison + '&vtype=2&vvalue=auto', 'Mode auto activé');" id="modemaisonauto">Auto</button>
<button type="button" class="btn btn-default btn-lg" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Maison + '&vtype=2&vvalue=manuel', 'Mode manuel activé');" id="modemaisonmanuel">Manuel</button>
<button type="button" class="btn btn-default btn-lg" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Maison + '&vtype=2&vvalue=absent', 'Mode absent activé');" id="modemaisonabsent">Absent</button>
</div>
</div>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="volets-title" src="dashboard/images/volets.png" alt="Volets"> Volets</div>
<div class="blocmodule-body">
<button type="button" class="btn btn-default btn-lg btn-medpadding" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_VoletsTardifs + '&vtype=2&vvalue=' + (vModeVolets == 'auto' ? vDomoticzVoletsTardifs == 'off' ? 'on' : 'off' : vDomoticzVoletsTardifs) ); DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Volets + '&vtype=2&vvalue=auto', 'Volets mode auto ' + (vModeVolets == 'auto' ? vDomoticzVoletsTardifs == 'off' ? 'tardif ' : '' : vDomoticzVoletsTardifs == 'on' ? 'tardif ' : '') + 'activé');" id="modevoletsauto">Auto</button>
<button type="button" class="btn btn-default btn-lg btn-medpadding" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Volets + '&vtype=2&vvalue=manuel', 'Volets mode manuel activé');" id="modevoletsmanuel">Manuel</button>
<button type="button" class="btn btn-default btn-lg btn-medpadding" onclick="DomoticzCallAPI('type=command¶m=updateuservariable&vname=' + vDomoticzScript_Mode_Volets + '&vtype=2&vvalue=canicule', 'Volets mode canicule activé');" id="modevoletscanicule">Canicule</button><br>
<table style="width: 100%;margin-top: 30px">
<tr>
<td>
<p style="margin-bottom: 0">
<button type="button" class="btn btn-default btn-lg" style="width: 30px;margin-bottom: 10px;padding-left: 1px;padding-right: 1px" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalonG +'&switchcmd=On', 'Ouverture du volet gauche salon');"><span class="glyphicon glyphicon-arrow-up" id="voletssalongaucheup" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default btn-lg" style="width: 70px;margin-bottom: 10px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalon +'&switchcmd=On', 'Ouverture des volets du salon'); DomoticzGetUpdatedAll(11000);"><span class="glyphicon glyphicon-arrow-up" id="voletssalonup" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default btn-lg" style="width: 30px;margin-bottom: 10px;padding-left: 1px;padding-right: 1px" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalonD +'&switchcmd=On', 'Ouverture du volet droit du salon');"><span class="glyphicon glyphicon-arrow-up" id="voletssalondroitup" aria-hidden="true"></span></button>
</p>
<p><span style="color:#727272">(G)</span> Salon <span style="color:#727272">(D)</span></p>
<p style="margin-bottom: 0"><button type="button" class="btn btn-default btn-lg" style="width: 30px;padding-left: 1px;padding-right: 1px" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalonG +'&switchcmd=Off', 'Fermeture du volet gauche salon');"><span class="glyphicon glyphicon-arrow-down" id="voletssalongauchedown" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default btn-lg" style="width: 70px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalon + '&switchcmd=Off', 'Fermeture des volets du salon'); DomoticzGetUpdatedAll(11000);"><span class="glyphicon glyphicon-arrow-down" id="voletssalondown" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default btn-lg" style="width: 30px;padding-left: 1px;padding-right: 1px" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSalonD +'&switchcmd=Off', 'Fermeture du volet droit salon');"><span class="glyphicon glyphicon-arrow-down" id="voletssalondroitdown" aria-hidden="true"></span></button>
</p>
</td>
<td>
<p style="margin-bottom: 0"><button type="button" class="btn btn-default btn-lg" style="width: 60px;margin-bottom: 10px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsChambre + '&switchcmd=On', 'Ouverture des volets de la chambre');">
<span class="glyphicon glyphicon-arrow-up" style="cursor: pointer;" id="voletchambreup" aria-hidden="true"></span>
</button></p>
<P>Chambre</p>
<p style="margin-bottom: 0"><button type="button" class="btn btn-default btn-lg" style="width: 60px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsChambre + '&switchcmd=Off', 'Fermeture des volets de la chambre');">
<span class="glyphicon glyphicon-arrow-down" id="voletchambredown" aria-hidden="true"></span>
</button></p>
<td>
<p style="margin-bottom: 0"><button type="button" class="btn btn-default btn-lg" style="width: 60px;margin-bottom: 10px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSdb + '&switchcmd=On', 'Ouverture des volets de la salle de bain');">
<span class="glyphicon glyphicon-arrow-up" id="voletsdbup" aria-hidden="true"></span>
</button></p>
<p>Salle de bain</p>
<p style="margin-bottom: 0"><button type="button" class="btn btn-default btn-lg" style="width: 60px;" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDVoletsSdb + '&switchcmd=Off', 'Fermeture des volets de la salle de bain');">
<span class="glyphicon glyphicon-arrow-down" id="voletsdbdown" aria-hidden="true"></span>
</button></p>
</td>
</tr>
</table>
</div>
</div>
<table style="width: 100%;">
<tr>
<td >
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" src="dashboard/images/temp-15-20.png" id="tempdehorsimg" alt="Temp"> Dehors</div>
<div class="blocmodule-body" style="padding-top: 0px">
<table style="width: 100%;">
<tr>
<td style="vertical-align: text-top;">
<div class="txt_temp" id="tempdehors"> </div>
<div class="txt_humid" id="humiditedehors"> </div>
</td>
<td>
</td>
</tr>
</table>
<div class="txt_temp-heure" id="timetempdehors"></div>
</div>
</div>
</td>
<td>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" src="dashboard/images/temp-15-20.png" id="tempsalonimg" alt="Temp"> Salon</div>
<div class="blocmodule-body" style="padding-top: 0px">
<table style="width: 100%;">
<tr>
<td style="vertical-align: text-top;">
<div class="txt_temp" id="tempsalon"> </div>
<div class="txt_humid" id="humiditesalon"> </div>
</td>
<td>
<div class="txt_temp-consigne">
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-up" aria-hidden="true" OnClick="SetConsigneChauffage('salon', 'up');"></span><br>
<span id="consignesalon"> </span><br>
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-down" aria-hidden="true" OnClick="SetConsigneChauffage('salon', 'down');"></span>
</div>
</td>
</tr>
</table>
<div class="txt_temp-heure" id="timetempsalon"></div>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" src="dashboard/images/temp-15-20.png" id="tempchambreimg" alt="Temp"> Chambre</div>
<div class="blocmodule-body" style="padding-top: 0px">
<table style="width: 100%;">
<tr>
<td style="vertical-align: text-top;">
<div class="txt_temp" id="tempchambre"> </div>
<div class="txt_humid" id="humiditechambre"> </div>
</td>
<td>
<div class="txt_temp-consigne">
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-up" aria-hidden="true" OnClick="SetConsigneChauffage('chambre', 'up');"></span><br>
<span id="consignechambre"> </span><br>
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-down" aria-hidden="true" OnClick="SetConsigneChauffage('chambre', 'down');"></span>
</div>
</td>
</tr>
</table>
<div class="txt_temp-heure" id="timetempchambre"></div>
</div>
</div>
</td>
<td>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" src="dashboard/images/temp-15-20.png" id="tempsdbimg" alt="Temp"> Salle de bain</div>
<div class="blocmodule-body" style="padding-top: 0px">
<table style="width: 100%;">
<tr>
<td style="vertical-align: text-top;">
<div class="txt_temp" id="tempsdb"> </div>
<div class="txt_humid" id="humiditesdb"> </div>
</td>
<td>
<div class="txt_temp-consigne">
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-up" aria-hidden="true" OnClick="SetConsigneChauffage('sdb', 'up');"></span><br>
<span id="consignesdb"> </span><br>
<span style="cursor: pointer;" class="glyphicon glyphicon-chevron-down" aria-hidden="true" OnClick="SetConsigneChauffage('sdb', 'down');"></span>
</div>
</td>
</tr>
</table>
<div class="txt_temp-heure" id="timetempsdb"></div>
</div>
</div>
</td>
</tr>
</table>
</div>
<!-- 3è colonne : chauffage, reveil, calendrier ... (droite) -->
<div class="col-lg-3 col-lg-push-5 col-sm-5">
<div class="blocmodule">
<div class="blocmodule-title" onClick="ToggleShowCalendar();" id="blocmodule-calendar-title1" style="cursor: pointer; z-index: 5; top: -13px;"><img class="blocmodule-title-logo" id="calendrier-title" src="dashboard/images/calendrier.png" alt="Calendrier">Calendrier</div>
<div class="blocmodule-title" onClick="ToggleShowCalendar();" id="blocmodule-calendar-title2" style="right:12px; left: initial; cursor: pointer; z-index: 5; top: -13px; color:#697637"><span class="glyphicon glyphicon glyphicon-hand-right" id="voletssalondown" aria-hidden="true"></span> Param.</div>
<div class="blocmodule-body" id="blocmodule-calendar">
<div id="calendar-wrap">
<!-- Div caché pour cliquer dessus et ouvrir l'overlay -->
<div style="position: absolute; width: 100%; height: 213px; z-index: 500; cursor: pointer;" onClick="OpenOverlayPage('/dashboard/pages/calendrier.html');"></div>
<!-- Attention : les cookies Third Parties doivent être activés pour que le code suivant fonctionne (Google Calendar) -->
<iframe id="calendar-iframe" style="border-width:0;" height="213" frameborder="0" scrolling="no"></iframe>
</div>
</div>
<div class="blocmodule-body" id="blocmodule-parameters" style="padding-left: 7px; padding-right: 4px">
<table style="font-size: 14pt; width:100%;">
<tr>
<td style="text-align: left;">Volets Salon ON</td>
<td><div id="ivoletssalonon"></div></td>
</tr>
<tr>
<td style="text-align: left; padding-bottom: 12px">Volets Salon OFF</td>
<td style="padding-bottom: 12px"><div id="ivoletssalonoff"></div></td>
</tr>
<tr>
<td style="text-align: left">Volet Sdb semaine ON</td>
<td><div id="ivoletssdbweekmorningon"></div></td>
</tr>
<tr>
<td style="text-align: left">Volet Sdb semaine OFF</td>
<td><div id="ivoletssdbweekmorningoff"></div></td>
</tr>
<tr>
<td style="text-align: left; padding-bottom: 12px">Volet Sdb OFF</td>
<td style="padding-bottom: 12px"><div id="ivoletssdboff"></div></td>
</tr>
<tr>
<td style="text-align: left">Volet Chambre semaine ON</td>
<td><div id="ivoletschambreweekon"></div></td>
</tr>
<tr>
<td style="text-align: left">Volet Chambre OFF</td>
<td><div id="ivoletschambreoff"></div></td>
</tr>
</table>
</div>
</div>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="chauffage-title" src="dashboard/images/chauffage.png" alt="Mode"> Chauffage</div>
<div class="blocmodule-body">
<table style="width: 100%; margin-top: 12px;">
<tr>
<td colspan="3">
<button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffageautopresence" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageAutoPresence + '&switchcmd=Toggle', 'Chauffage - Mode auto présence modifié'); DomoticzGetUpdatedAll(3000);">Auto présence</button>
<button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffageautoplanif" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageAutoPlanif + '&switchcmd=Toggle', 'Chauffage - Mode auto planification modifié');">Auto planif.</button>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align: bottom; text-align: left; padding-top: 12px; padding-left: 5px"><p style="margin: 5px">Salon</p></td>
</tr>
<tr>
<td style="vertical-align: bottom;"><button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffagesalonconsigne" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageSalonConsigne + '&switchcmd=Toggle', $( '#chauffagesalonconsigne' ).text() == 'Manuel' ? 'Chauffage salon - Mode consigne activé à ' + vDomocitzConsigneSalon + ' °C' : 'Chauffage salon - Mode consigne désactivé');">Manuel</button></td>
<td style="vertical-align: bottom; text-align: right"><button type="button" class="btn btn-default btn-lg" id="chauffagesalononff" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageSalonOnOff + '&switchcmd=Toggle', $( '#chauffagesalononff' ).text() === 'Off' ? 'Chauffage salon On' : 'Chauffage salon Off' );">Off</button></td>
<td style="vertical-align: bottom;"><button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffagesalonconfort" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageSalonConfort + '&switchcmd=Toggle', $( '#chauffagesalonconfort' ).text() === 'Eco' ? 'Chauffage salon - Mode Confort activé' : 'Chauffage salon - Mode Eco activé' );">Eco</button></td>
</tr>
<tr>
<td colspan="3" style="vertical-align: bottom; text-align: left; padding-top: 11px; padding-left: 5px"><p style="margin: 5px">Chambre</p></td>
</tr>
<tr>
<td style="vertical-align: bottom;"><button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffagechambreconsigne" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageChambreConsigne + '&switchcmd=Toggle', $( '#chauffagechambreconsigne' ).text() == 'Manuel' ? 'Chauffage chambre - Mode consigne activé à ' + vDomocitzConsigneChambre + ' °C' : 'Chauffage chambre - Mode consigne désactivé');">Manuel</button></td>
<td style="vertical-align: bottom; text-align: right"><button type="button" class="btn btn-default btn-lg" id="chauffagechambreonoff" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageChambreOnOff + '&switchcmd=Toggle', $( '#chauffagechambreonoff' ).text() === 'Off' ? 'Chauffage chambre On' : 'Chauffage chambre Off' );">Off</button></td>
<td style="vertical-align: bottom;"><button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffagechambreconfort" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageChambreConfort + '&switchcmd=Toggle', $( '#chauffagechambreconfort' ).text() === 'Eco' ? 'Chauffage chambre - Mode Confort activé' : 'Chauffage chambre - Mode Eco activé' );">Eco</button></td>
</tr>
<tr >
<td colspan="3" style="vertical-align: bottom; text-align: left; padding-top: 11px; padding-left: 5px"><p style="margin: 5px">Salle de bain</p></td>
</tr>
<tr>
<td style="vertical-align: bottom; padding-bottom: 11px"><button type="button" class="btn btn-default btn-lg btn-lowpadding" id="chauffagesdbconsigne" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageSdbConsigne + '&switchcmd=Toggle', $( '#chauffagesdbconsigne' ).text() == 'Manuel' ? 'Chauffage salle de bain - Mode consigne activé à ' + vDomocitzConsigneSdb + ' °C' : 'Chauffage salle de bain - Mode consigne désactivé');">Manuel</button></td>
<td style="vertical-align: bottom; text-align: right; padding-bottom: 11px"><button type="button" class="btn btn-default btn-lg" id="chauffagesdbonoff" onclick="DomoticzCallAPI('type=command¶m=switchlight&idx=' + vDomoticzIDChauffageSdbOnOff + '&switchcmd=Toggle', $( '#chauffagesdbonoff' ).text() === 'Off' ? 'Chauffage salle de bain On' : 'Chauffage salle de bain Off' );">Off</button></td>
<td style="vertical-align: bottom; padding-bottom: 11px"></td>
</tr>
</table>
</div>
</div>
<div class="blocmodule">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="reveil-title" src="dashboard/images/reveil.png" alt="Reveil"> Réveil</div>
<div class="blocmodule-body">
<input type="checkbox" name="reveil-checkbox">
<span class="form-group">
<select class="selectpicker" data-width="60px" id="reveil_sel_hour" title="h" data-size="15" >
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option>
</select> :
<select class="selectpicker" data-width="60px" id="reveil_sel_min" title="m" data-size="15" >
<option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option><option value="32">32</option><option value="33">33</option><option value="34">34</option><option value="35">35</option><option value="36">36</option><option value="37">37</option><option value="38">38</option><option value="39">39</option><option value="40">40</option><option value="41">41</option><option value="42">42</option><option value="43">43</option><option value="44">44</option><option value="45">45</option><option value="46">46</option><option value="47">47</option><option value="48">48</option><option value="49">49</option><option value="50">50</option><option value="51">51</option><option value="52">52</option><option value="53">53</option><option value="54">54</option><option value="55">55</option><option value="56">56</option><option value="57">57</option><option value="58">58</option><option value="59">59</option>
</select>
</span>
</div>
</div>
</div>
<!-- 2è colonne : météo, vélib, ratp (milieu) -->
<div class="col-lg-5 col-lg-pull-3 col-sm-12">
<div id="digiclock"></div>
<div class="blocmodule" style="background-color:#393941;border-color:#393941; margin-top: 15px;">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="pluie-title" src="dashboard/images/pluie.png" alt="Pluie"> <span id="pluie-title-txt" style="font-size: 15px; color: white;"> </span></div>
<div class="blocmodule-body" id="pluieuneheure">
<table style="margin: 0px auto;">
<thead><tr><th><span class="graph-pluie-heure-time"></span></th></tr></thead>
<tbody><tr style="height: 31px"><td></td></tr></tbody>
</table>
</div>
</div>
<table style="width: 100%">
<tr>
<td style="width: 51%">
<div class="blocmodule" style="margin-top: 10px">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="velib-title" src="dashboard/images/velib.png" alt="Vélib"></div>
<div class="blocmodule-body">
<table style="width: 100%;">
<tr>
<td style="border-right:1px solid grey; cursor: pointer;" onclick="OpenOverlayPage('/velib/?code=18042&lastweekdays=4')">JB Pigalle</td>
<td onclick="OpenOverlayPage('/velib/?code=9018&lastweekdays=4')" style="cursor: pointer;">Martyr 2</td>
</tr>
<tr>
<td style="border-right:1px solid grey;cursor: pointer;" onclick="OpenOverlayPage('/velib/?code=18042&lastweekdays=4')"><span id="velibtext1" style="font-size: 36px"> </span></td>
<td onclick="OpenOverlayPage('/velib/?code=9018&lastweekdays=4')" style="cursor: pointer;"><span id="velibtext2" style="font-size: 36px"> </span></td>
</tr>
</table>
</div>
</div>
</td>
<td style="width: 49%">
<div class="blocmodule" style="margin-top: 10px; cursor: pointer;" OnClick='OpenOverlayPage("https://www.airparif.fr");'>
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="airparif-title" src="dashboard/images/airparif.png" alt="AirParif"></div>
<div class="blocmodule-body" id="airparif" style="text-align: right; padding-top: 4px; padding-left: 3px">
Hier : <span id="airpariftext1" style="display: inline-block; text-align: center; border-radius: 8px; width: 100px; margin: 1px 5px 1px 1px;"> </span><br>
Aujourd'hui : <span id="airpariftext2" style="display: inline-block; text-align: center; border-radius: 8px; width: 100px; margin: 1px 5px 1px 1px;"> </span><br>
Demain : <span id="airpariftext3" style="display: inline-block; text-align: center; border-radius: 8px; width: 100px; margin: 1px 5px 1px 1px;"> </span>
</div>
</div>
</td>
</tr>
</table>
<div class="blocmodule" style="margin-top: 10px; cursor: pointer;" onclick="OpenOverlayPage('/dashboard/pages/ratp.html');">
<div class="blocmodule-title"><img class="blocmodule-title-logo" id="ratp-title" src="dashboard/images/ratp.png" alt="Ratp"></div>
<div id="ratp-alert"></div>
<div class="blocmodule-body" style="text-align: left; padding-left: 5px; font-size: 17px;">
<span id="ratptext1"> </span><br>
<span id="ratptext2"> </span><br>
</div>
</div>
</div>
</div>
</div> <!-- /container -->
<script type="text/javascript" src="dashboard/dashboard.js"></script>
<script type="text/javascript" src="dashboard/jdigiclock/jquery.jdigiclock.js"></script>
<script type="text/javascript" src="dashboard/bootstrap-3.3.7/js/notify.js"></script>
</body>
</html>