-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattery-calculator.html
207 lines (201 loc) · 7.97 KB
/
battery-calculator.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Smart Parks Sensor Battery Calculator</title>
<link rel="shortcut icon" href="/assets/favicon32x32.jpg" type="image/x-icon">
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/shared.css">
<style type="text/css">
</style>
</head>
<body class="bg-light">
<!---------------------------------------Do not include when exporting page - Internal navigation------------------------------------------>
<nav class="navbar navbar-dark bg-dark navbar-expand-lg">
<div class="container">
<a class="navbar-brand" href="/">Smart Parks Toolset</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="/battery-calculator.html">Sensor Battery Calculator</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/decoder-app.html">Decoder app</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/encoder-app.html">Encoder app</a>
</li>
</ul>
</div>
</div>
</nav>
<!--------------------------------------- END - Do not include when exporting page - Internal navigation------------------------------------------>
<div class="container">
<div class="row">
<div class="col py-5 text-center">
<h2>Sensor Battery Calculator</h2>
<p class="lead">This tool can be used to estimate the power consumption and battery life for our OpenCollar sensors. Please be aware that this is a model and can only be used as guidance for
finding the most optimal settings and deployment strategies. In doubt, please consult Smart Parks directly.</p>
</div>
<form id="inputForm">
<h2>Sensor type</h2>
<div class="form-group">
<div class="col">
<label for="sensorType">What sensor type are you using?</label>
<select class="form-select" id="sensorType">
<option disabled selected value="null">please select a sensor</option>
</select>
</div>
</div>
<div id="showOnSensorType1" hidden>
<h4 class="pt-3">Sensor information</h4>
<div class="form-group">
<div class="col pt-2">
<label for="loraType">What is the selected Lora type?</label>
<select class="form-select" id="loraType">
<option>SF7</option>
<option>SF8</option>
<option>SF9</option>
<option selected value="SF10">SF10 (default)</option>
<option>SF11</option>
<option>SF12</option>
</select>
</div>
</div>
<div class="form-group col row">
<div class="col-12 pt-3">
<label for="portStatus">P_STATUS (12) - Status message interval in minutes.</label>
<label for="portStatusRange"></label>
</div>
<div class="col-6 col-md-2">
<input type="number" class="form-control" id="portStatus" placeholder="30" value="30">
</div>
<div class="col-6 col-md-2 order-md-last">
<button type="button" class="btn btn-warning w-100" id="resetPortStatus">Reset</button>
</div>
<div class="col-12 col-md-8">
<input type="range" class="form-control-range" min="0" max="720" value="30" step="1" id="portStatusRange" style="width: 100%">
</div>
</div>
<div class="form-group col row">
<div class="col-12 pt-3">
<label for="portGPS">P_GPS (1) - GPS message interval in minutes.</label>
<label for="portGPSRange"></label>
</div>
<div class="col-6 col-md-2">
<input type="number" class="form-control" id="portGPS" placeholder="30" value="30">
</div>
<div class="col-6 col-md-2 order-md-last">
<button type="button" class="btn btn-warning w-100" id="resetPortGPS">Reset</button>
</div>
<div class="col-12 col-md-8">
<input type="range" class="form-control-range" min="0" max="1440" value="30" step="1" id="portGPSRange" style="width: 100%">
</div>
</div>
<div class="form-group">
<div class="col pt-3">
<label for="GPSFixTimeSector">GPS Fix Time - What time does it take to get a gps fix? Use an adjusted time based on the GPS message interval or set a fixed time.</label>
<select class="form-select" id="GPSFixTimeSector">
<option selected value="ADJUSTED">ADJUSTED (default)</option>
<option>FIXED</option>
</select>
</div>
<div class="col row pt-1" id="GPSFixFixedTimeField" hidden>
<div class="col-12 pt-3">
<label for="GPSFixFixedTime">If the GPS fix time is fixed, give the fixed value here.</label>
<label for="GPSFixFixedTimeRange"></label>
</div>
<div class="col-6 col-md-2">
<input type="number" class="form-control" id="GPSFixFixedTime" placeholder="30" value="30">
</div>
<div class="col-6 col-md-2 order-md-last">
<button type="button" class="btn btn-warning w-100" id="resetGPSFixFixedTime">Reset</button>
</div>
<div class="col-12 col-md-8">
<input type="range" class="form-control-range w-100" min="1" max="200" value="30" step="1" id="GPSFixFixedTimeRange">
</div>
</div>
</div>
</div>
</form>
<div id="showOnSensorType2" hidden>
<h2 class="pt-3">Calculation</h2>
<h4>Input</h4>
<div class="form-group col">
<div class="row">
<div class="col-6">
<label for="batteryMAH">Total battery mAh</label>
<input type="number" class="form-control" id="batteryMAH" readonly>
</div>
<div class="col-6">
<label for="batteryV">Battery Voltage</label>
<input type="number" class="form-control" id="batteryV" readonly>
</div>
</div>
</div>
<h4>Output / Calculated</h4>
<div class="form-group col">
<div class="col">
<label for="consumptionPH">Power consumption per hour in mAh</label>
<input type="number" class="form-control" id="consumptionPH" readonly>
</div>
<h5 class="pt-3">Theoretical max battery life</h5>
<div class="row">
<div class="col-6 col-md-3">
<label for="tMaxLifeHours">in hours</label>
<input type="number" class="form-control" id="tMaxLifeHours" readonly>
</div>
<div class="col-6 col-md-3">
<label for="tMaxLifeDays">in days</label>
<input type="number" class="form-control" id="tMaxLifeDays" readonly>
</div>
<div class="col-6 col-md-3">
<label for="tMaxLifeMonths">in months</label>
<input type="number" class="form-control" id="tMaxLifeMonths" readonly>
</div>
<div class="col-6 col-md-3">
<label for="tMaxLifeYears">in years</label>
<input type="number" class="form-control" id="tMaxLifeYears" readonly>
</div>
</div>
<h5 class="pt-3">Predicted battery life</h5>
<div class="row">
<div class="col-6 col-md-3">
<label for="pLifeHours">in hours</label>
<input type="number" class="form-control" id="pLifeHours" readonly>
</div>
<div class="col-6 col-md-3">
<label for="pLifeDays">in days</label>
<input type="number" class="form-control" id="pLifeDays" readonly>
</div>
<div class="col-6 col-md-3">
<label for="pLifeMonths">in months</label>
<input type="number" class="form-control" id="pLifeMonths" readonly>
</div>
<div class="col-6 col-md-3">
<label for="pLifeYears">in years</label>
<input type="number" class="form-control" id="pLifeYears" readonly>
</div>
</div>
</div>
<div class="col-12 py-4">
<div class="alert alert-danger" role="alert">
Caution: Real battery consumption may vary
</div>
</div>
</div>
</div>
</div>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/shared.js"></script>
<script src="/js/calculator.js"></script>
</body>
</html>