forked from cyrils/web-bt1-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (74 loc) · 2.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content=#0091D5 />
<link rel="stylesheet" href="style.css">
</head>
<div class="title">BT-1 Solar Monitor</div>
<div class="content">
<div class="section hide hidden">
<img src="images/solar-panel.png" class="icon hide hidden"/>
<span class="label hide hidden">Solar Panel</span>
</div>
<div class="grid-container hide hidden">
<div class="grid-item">
<div class="label">Power</div>
<div class="value primary"><span id="pv_power"></span><span class="unit">W</span></div>
</div>
<div class="grid-item">
<div class="label">Generation today</div>
<div class="value"><span id="power_generation_today"></span><span class="unit">kWh</span></div>
</div>
<div class="grid-item">
<div class="label">Voltage</div>
<div class="value"><span id="pv_voltage"></span><span class="unit">V</span></div>
</div>
<div class="grid-item">
<div class="label">Current</div>
<div class="value"><span id="pv_current"></span><span class="unit">A</span></div>
</div>
</div>
<div class="section hide hidden">
<img src="images/battery.png" class="icon"/>
<span class="label">Battery</span>
</div>
<div class="grid-container hide hidden">
<div class="grid-item">
<div class="label"> Voltage</div>
<div class="value"><span id="battery_voltage"></span><span class="unit">V</span></div>
</div>
<div class="grid-item hide hidden">
<div class="label">Charge</div>
<div class="value"><span id="battery_percentage"></span><span class="unit">%</span>
<div class="battery">
<div class="charge" id="soc" style="width: 30%"></div>
<div class="terminal"></div>
</div>
</div>
</div>
</div>
<div class="section hide hidden">
<img src="images/lamp.png" class="icon"/>
<span class="label">Load</span>
</div>
<div class="grid-container hide hidden">
<div class="grid-item">
<div class="label"> Status</div>
<div id="load_toggle" class="toggle off"><div class="tab"></div></div>
</div>
<div class="grid-item">
<div class="label"> Power</div>
<div class="value"><span id="load_power"></span><span class="unit">W</span></div>
</div>
</div>
<div class="section"> </div>
<div class="toolbar">
<button id="search" class="search">Search device</button>
<button id="disconnect" class="hide hidden">Disconnect</button>
</div>
</div>
<script src="./js/BLE.js"></script>
<script src="./js/BtOneApp.js"></script>
</html>