-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
658 lines (643 loc) · 37.3 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
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
<!-- Cole L - April 28th 2023 - https://github.com/cole8888/SRNE-Solar-Charge-Controller-Monitor -->
<!-- Originally based on https://github.com/fabaff/mqtt-panel -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A web interface for MQTT over Websockets">
<title>Solar Box</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="./custom.css">
<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.2/mqttws31.min.js"></script>
<script type="text/javascript" src="./index.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary">
<div class="container-fluid">
<a class="navbar-brand col-md-3 col-lg-2 mr-0 px-3" href="#">Solar Box</a>
<div class="d-flex justify-content-between ">
<div class="form-check form-switch me-3 mb-0">
<label class="form-check-label ms-3" for="lightSwitch">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fill=white
class="bi bi-brightness-high"
viewBox="0 0 16 16"
>
<path id="sunMoon" d="" />
</svg>
</label>
<input
class="form-check-input"
type="checkbox"
id="lightSwitch"
style="margin-top: 6px"
/>
</div>
</div>
</div>
</nav>
<div class="container">
<!-- Overview, 15AMP Plug, 20AMP Plug -->
<div class="row" style="padding-top: 0.5rem;">
<!-- Overview section -->
<div class="col-12 col-xxl-6 col-xl-6 col-lg-6" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>Overview</b></h4>
</div>
<div class="card-body" style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>Volts:
<span id="CC3battVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>SOC:
<span id="CC3SOCLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2SOCLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1SOCLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Cumulative Panel Watts:
<span id="cumulativePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Cumulative Plug Watts:
<span id="cumulativePlugPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Charge Watts:
<span id="CC3panelWattsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2panelWattsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1panelWattsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Batt Amps:
<span id="CC3battAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Charge Mode:
<span id="CC3chargeModeLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2chargeModeLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1chargeModeLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total Daily Power:
<span id="cumulativeDailyTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Faults:
<span id="CC3anyFaults" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2anyFaults" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1anyFaults" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Min Volts:
<span id="CC3battMinVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battMinVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battMinVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Max Volts:
<span id="CC3battMaxVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battMaxVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battMaxVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
</div>
</div>
</div>
</div>
<!-- 15 AMP Plug Section -->
<div class="col-6 col-xxl-3 col-xl-3 col-lg-3 col-md-6 col-sm-6" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="d-flex flex-column align-items-center">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0rem;">
<h4><b><a href="http://192.168.2.131">15 AMP</a></b></h4>
</div>
<div class="form-check form-switch plugSwitch">
<input
class="form-check-input"
type="checkbox"
id="15AMPSwitch"
style="float: none; cursor: pointer;"
/>
</div>
<!-- Toggle confirmation modal -->
<div class="modal fade" id="modal15AMP" tabindex="-1" aria-labelledby="15AMPConfirmModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content custom-modal-light">
<div class="modal-header custom-modal-header-light">
<h1 class="modal-title fs-5 text-light" id="15AMPConfirmModalLabel">Are you sure?</h1>
<button type="button" class="btn-close custom-btn-close-light" id="15AMPModalX" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="text-light">Are you sure you want to turn off the 15 AMP Plug?</p>
</div>
<div class="modal-footer custom-modal-header-light">
<button type="button" class="btn btn-secondary" id="15AMPCancel" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="15AMPConfirm" data-bs-dismiss="modal">Yes</button>
</div>
</div>
</div>
</div>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>State:<span id="Plug15AMPPowerStatusLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power: <span id="Plug15AMPPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Current: <span id="Plug15AMPCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Voltage: <span id="Plug15AMPVoltageLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Today: <span id="Plug15AMPTodayPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total: <span id="Plug15AMPTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power Factor: <span id="Plug15AMPFactorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Apparent Pwr: <span id="Plug15AMPApparentPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Reactive Pwr: <span id="Plug15AMPReactivePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
</div>
</div>
</div>
</div>
<!-- 20 AMP Plug Section -->
<div class="col-6 col-xxl-3 col-xl-3 col-lg-3 col-md-6 col-sm-6" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="d-flex flex-column align-items-center">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0rem;">
<h4><b><a href="http://192.168.2.107">20 AMP</a></b></h4>
</div>
<div class="form-check form-switch plugSwitch">
<input
class="form-check-input"
type="checkbox"
id="20AMPSwitch"
style="float: none; cursor: pointer;"
/>
</div>
<!-- Toggle confirmation modal -->
<div class="modal fade" id="modal20AMP" tabindex="-1" aria-labelledby="20AMPConfirmModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content custom-modal-light">
<div class="modal-header custom-modal-header-light">
<h1 class="modal-title fs-5 text-light" id="20AMPConfirmModalLabel">Are you sure?</h1>
<button type="button" class="btn-close custom-btn-close-light" id="20AMPModalX" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="text-light">Are you sure you want to turn off the 20 AMP Plug?</p>
</div>
<div class="modal-footer custom-modal-header-light">
<button type="button" class="btn btn-secondary" id="20AMPCancel" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="20AMPConfirm" data-bs-dismiss="modal">Yes</button>
</div>
</div>
</div>
</div>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>State:<span id="Plug20AMPPowerStatusLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power: <span id="Plug20AMPPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Current: <span id="Plug20AMPCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Voltage: <span id="Plug20AMPVoltageLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Today: <span id="Plug20AMPTodayPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total: <span id="Plug20AMPTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power Factor: <span id="Plug20AMPFactorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Apparent Pwr: <span id="Plug20AMPApparentPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Reactive Pwr: <span id="Plug20AMPReactivePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
</div>
</div>
</div>
</div>
</div>
<!-- Water Heater Plug, AC/Heater Plug, HVAC Plug -->
<div class="row">
<!-- Water Heater Plug Section -->
<div class="col-6 col-lg-4 col-md-4 col-sm-6 col-xs-6" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="d-flex flex-column align-items-center">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0rem;">
<h4><b><a href="http://192.168.2.118">Water Heater</a></b></h4>
</div>
<div class="form-check form-switch plugSwitch">
<input
class="form-check-input"
type="checkbox"
id="WaterHeaterSwitch"
style="float: none; cursor: pointer;"
/>
</div>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>State:<span id="PlugWaterHeaterPowerStatusLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power: <span id="PlugWaterHeaterPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Current: <span id="PlugWaterHeaterCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Voltage: <span id="PlugWaterHeaterVoltageLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Today: <span id="PlugWaterHeaterTodayPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total: <span id="PlugWaterHeaterTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power Factor: <span id="PlugWaterHeaterFactorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Apparent Pwr: <span id="PlugWaterHeaterApparentPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Reactive Pwr: <span id="PlugWaterHeaterReactivePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
</div>
</div>
</div>
</div>
<!-- AC/Heater Plug Section -->
<div class="col-6 col-lg-4 col-md-4 col-sm-6" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="d-flex flex-column align-items-center">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0rem;">
<h4><b><a href="http://192.168.2.119">AC/Heater</a></b></h4>
</div>
<div class="form-check form-switch plugSwitch">
<input
class="form-check-input"
type="checkbox"
id="AC-HeaterSwitch"
style="float: none; cursor: pointer;"
/>
</div>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>State:<span id="PlugAC-HeaterPowerStatusLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power: <span id="PlugAC-HeaterPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Current: <span id="PlugAC-HeaterCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Voltage: <span id="PlugAC-HeaterVoltageLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Today: <span id="PlugAC-HeaterTodayPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total: <span id="PlugAC-HeaterTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power Factor: <span id="PlugAC-HeaterFactorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Apparent Pwr: <span id="PlugAC-HeaterApparentPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Reactive Pwr: <span id="PlugAC-HeaterReactivePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
</div>
</div>
</div>
</div>
<!-- HVAC Plug Section -->
<div class="col-12 col-lg-4 col-md-4 col-sm-12" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="d-flex flex-column align-items-center">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0rem;">
<h4><b><a href="http://192.168.2.176">HVAC</a></b></h4>
</div>
<div class="form-check form-switch plugSwitch">
<input
class="form-check-input"
type="checkbox"
id="HVACSwitch"
style="float: none; cursor: pointer;"
/>
</div>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>State:<span id="PlugHVACPowerStatusLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power: <span id="PlugHVACPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Current: <span id="PlugHVACCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Voltage: <span id="PlugHVACVoltageLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Today: <span id="PlugHVACTodayPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total: <span id="PlugHVACTotalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Power Factor: <span id="PlugHVACFactorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Apparent Pwr: <span id="PlugHVACApparentPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Reactive Pwr: <span id="PlugHVACReactivePowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
</div>
</div>
</div>
</div>
</div>
<!-- Panels, Environment -->
<div class="row">
<!-- Panels Section -->
<div class="col-12 col-xl-6 col-lg-6 col-md-7" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title", style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>Panels</b></h4>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>Panel Amps:
<span id="CC3panelAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2panelAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1panelAmpsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Panel Volts:
<span id="CC3panelVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2panelVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1panelVoltsLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Daily Max Watts:
<span id="CC3panelMaxPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2panelMaxPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1panelMaxPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Daily Max Amps:
<span id="CC3battMaxChargeCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battMaxChargeCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battMaxChargeCurrentLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Daily Power:
<span id="CC3dailyPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2dailyPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1dailyPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Daily Amp Hours:
<span id="CC3dailyAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2dailyAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1dailyAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total Power:
<span id="CC3totalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2totalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1totalPowerLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Total Amp Hours:
<span id="CC3totalAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2totalAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1totalAmpHoursLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Over-Discharges:
<span id="CC3numOverDischargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2numOverDischargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1numOverDischargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Full Charges:
<span id="CC3numFullChargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2numFullChargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1numFullChargesLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Days Operational:
<span id="CC3numDaysLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2numDaysLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1numDaysLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
</div>
</div>
</div>
</div>
<!-- Environment Section -->
<div class="col-12 col-lg-6 col-md-5" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>Environment</b></h4>
</div>
<div class="card-body", style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6>Box Temp: <span id="tempSensorLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Humidity: <span id="humLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Pressure: <span id="presLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span></h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>GAS (VOC):
<span id="gasLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>CC Temp:
<span id="CC3controllerTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2controllerTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1controllerTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
<hr style="margin-top: -4px; margin-bottom: -4px;">
</div>
<div class="card-title">
<h6>Batt Temp:
<span id="CC3battTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC2battTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0.25rem;">⋅⋅⋅</span>
<span id="CC1battTempLabel" class="badge bg-secondary text-light" style="float: right; margin-top: -0.5px; margin-left: 0rem;">⋅⋅⋅</span>
</h6>
</div>
</div>
</div>
</div>
</div>
<!-- Faults Section -->
<div class="row">
<div class="col-12 col-md-4" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>CC1 Faults</b></h4>
</div>
<div class="card-body" style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6><span id="CC1faults" style="text-align: left;">None :)</span></h6>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-4" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title", style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>CC2 Faults</b></h4>
</div>
<div class="card-body" style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6><span id="CC2faults" style="text-align: left;">None :)</span></h6>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-4" style="padding-top: 0.5rem; padding-right: 0.5rem; padding-left: 0.5rem;">
<div class="card mb-2 custom-card-dark">
<div class="card-title" style="padding-top: 1rem; margin-bottom: 0.5rem; text-align: center;">
<h4><b>CC3 Faults</b></h4>
</div>
<div class="card-body" style="padding-top: 0rem; padding-bottom: 0.75rem;">
<div class="card-title">
<h6><span id="CC3faults" style="text-align: left;">None :)</span></h6>
</div>
</div>
</div>
</div>
</div>
<!-- Status bar -->
<div id="status" class="alert" style="margin-top: 0.5rem; margin-left: -0.25rem; margin-right: -0.25rem;">
<small>Loading...</small>
</div>
</div>
<script src="./darkLightSwitch.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>