forked from MichaelEFlip/ReachView
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
497 lines (483 loc) · 25.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
<!-- ReachView code is placed under the GPL license.
Written by Egor Fedorov ([email protected])
Copyright (c) 2015, Emlid Limited
All rights reserved.
If you are interested in using ReachView code as a part of a
closed source project, please contact Emlid Limited ([email protected]).
This file is part of ReachView.
ReachView is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ReachView is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ReachView. If not, see <http://www.gnu.org/licenses/>. -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title>ReachViewApp</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="cache-control" content="no-store" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='jquery.mobile-1.4.5.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
<script type="text/javascript" src="{{ url_for('static', filename='jquery-1.11.2.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='jquery.mobile-1.4.5.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='d3.v3.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='socket.io.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='configs.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='graph.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='handlers.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}" charset="utf-8"></script>
<link rel="shortcut icon" href="static/images/favicon.png">
</head>
<body>
<!-- Status page here:-->
<div data-role="page" id="status_page">
<div data-role="header">
<div data-role="navbar" id="navbar1">
<ul>
<li>
<a href="#" class="tab ui-btn-active ui-state-persist status_page">Status</a>
</li>
<li>
<a href="#config_page" class="tab">Config</a>
</li>
<li class="nav_log_container">
<a href="#logs_page" class="tab logs_page">Logs</a>
<a href="#settings" data-icon="gear" class="settings" data-iconpos="notext"></a>
</li>
</ul>
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a" id="mode_block">
<div class="ui-bar">
<b>Mode: </b><span id="mode_value"></span>
</div>
</div>
<div class="ui-block-b" id="status_block">
<div class="ui-bar">
<b>Status: </b><span id="status_value"></span>
</div>
</div>
</div>
<div class="ui-grid-b">
<div class="ui-block-a" id="lat_block">
<div class="ui-bar">
<b>Lat: </b><span id="lat_value"></span>
</div>
</div>
<div class="ui-block-b" id="lon_block">
<div class="ui-bar">
<b>Lon: </b><span id="lon_value"></span>
</div>
</div>
<div class="ui-block-c" id="height_block">
<div class="ui-bar">
<b>H: </b><span id="height_value"></span>
</div>
</div>
</div>
<div data-role="popup" id="popupDisconnected" data-overlay-theme="a" data-dismissible="false">
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Lost connection with Reach. Please check your network, then try refreshing the page.</p>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<div id="bar-chart"></div>
<div data-role="footer" class="warning_footer">
<h1>
<span></span>
</h1>
</div>
</div>
<!-- Config page here:-->
<div data-role="page" id="config_page">
<div class="loader"><img src="static/images/ajax-loader.gif" alt=""></div>
<div data-role="header">
<div data-role="navbar" id="navbar2">
<ul>
<li>
<a href="#status_page" class="tab status_page">Status</a>
</li>
<li>
<a href="#" class="tab ui-btn-active ui-state-persist">Config</a>
</li>
<li class="nav_log_container">
<a href="#logs_page" class="tab logs_page">Logs</a>
<a href="#settings" class="settings" data-icon="gear" data-iconpos="notext"></a>
</li>
</ul>
</div>
</div>
<div data-role="popup" id="popupDisconnected" data-overlay-theme="a" data-dismissible="false">
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Lost connection with Reach. Please check your network, then try refreshing the page.</p>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<div data-role="main" class="ui-content">
<form id="config_form">
<div class="ui-field-contain">
<div class="ui-body ui-field-contain" data-role="controlgroup" data-type="horizontal">
<input type="radio" name="radio_base_rover" id="radio_base" value="base">
<label for="radio_base">Base</label>
<input type="radio" name="radio_base_rover" id="radio_rover" value="rover">
<label for="radio_rover">Rover</label>
</div>
<div class="ui-field-contain" id="control_buttons">
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="start_button">Start</a>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="stop_button">Stop</a>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline save_configs_button" id="save_button">Save</a>
<!-- Extra buttons are hidden in this div -->
<div class="hidden_buttons">
<ul>
<li>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="hide_buttons_button">⋮</a>
<ul class="hidden_list">
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline save_configs_button" id="save_as_button">Save As...</a></li>
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="delete_config_button">Delete сonfig...</a></li>
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="reset_config_button">Reset to default</a></li>
</ul>
</li>
</ul>
</div>
<!-- end of extra buttons div -->
<!-- Popup for config delete -->
<div data-role="popup" id="popupDelete" data-theme="a" class="ui-corner-all">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div>
<label for="un" class="ui-hidden-accessible">Config title:</label>
<select name="config_delete" id="config_delete_hidden" class='available_configs'>
<option value="">...</option>
</select>
<button type="submit" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-btn-icon-left ui-icon-check" id="config-delete-submit">Delete config</button>
</div>
</div>
<!-- end of popup -->
<!-- Popup for config save as -->
<div data-role="popup" id="popupLogin" data-theme="a" class="ui-corner-all">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div>
<label for="un" class="ui-hidden-accessible">Config title:</label>
<select name="config_select" id="config_select_hidden" class='available_configs'>
<option value="">...</option>
</select>
<input type="text" name="config-title" id="un" value="" placeholder="Enter new title" data-theme="a">
<span class='conf_tail'>.conf</span>
<span class="space_alert">Config title can contain only latin symbols, numbers and "_", "-".</span>
<button type="submit" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-btn-icon-left ui-icon-check" id="config-title-submit">Save</button>
</div>
</div>
<!-- end of popup -->
<!-- Popup for config save -->
<div data-role="popup" id="popupSave">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Save config</h1>
</div>
<div data-role="main" class="ui-content">
<p>Do you want to load current config after save?</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-transition="flow" id="config-save-load-submit">Yes</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" id="config-save-submit">No</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- Popup for input change -->
<div data-role="popup" id="popupDialog">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Changing this input will make onboard receiver inaccessible to RTKLIB.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="acceptChange">OK</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" id="denyChange">Cancel</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for empty required inputs -->
<div data-role="popup" id="popupEmpty">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>You've left some required fields empty.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="close_empty_warning">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for empty base position-->
<div data-role="popup" id="popupPos">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>All base coordinates must be entered to achieve float or fixed solution</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="acceptChange">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for occupied bluetooth port-->
<div data-role="popup" id="popupOccupiedBluetooth">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>This address and port are reserved for bluetooth connection, please choose something else.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for repeated bluetooth -->
<div data-role="popup" id="popupRepeatedBluetooth">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>You've already chosen bluetooth as one of I/O options.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for high update rate -->
<div data-role="popup" id="popupHighUpdateRate">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Dynamics model field can't be "ON" while update rate is higher than 5Hz.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="close_empty_warning">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
</div>
<div class="ui-body ui-field-contain" data-role="controlgroup" data-type="horizontal">
<select name="config_select" id="config_select" class='available_configs'>
<option value="">...</option>
</select>
</div>
<div class="ui-field-contain" id="config_buttons"></div>
<div id="config_form_column_space"></div>
</div>
</form>
</div>
<div data-role="footer" class="warning_footer">
<h1>
<span></span>
</h1>
</div>
</div>
<!-- Logs page here:-->
<div data-role="page" id="logs_page">
<div data-role="header">
<div data-role="navbar" id="navbar3">
<ul>
<li>
<a href="#status_page" class="tab status_page">Status</a>
</li>
<li>
<a href="#config_page" class="tab">Config</a>
</li>
<li class="nav_log_container">
<a href="#logs_page" class="tab ui-btn-active ui-state-persist logs_page">Logs</a>
<a href="#settings" class="settings" data-icon="gear" data-iconpos="notext"></a>
</li>
</ul>
</div>
</div>
<div data-role="popup" id="popupDisconnected" data-overlay-theme="a" data-dismissible="false">
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Lost connection with Reach. Please check your network, then try refreshing the page.</p>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<div data-role="main" class="ui-content">
<div id="ui-bar-space" class="ui-bar ui-bar-a ui-corner-all image_version_container">
<div class="progress-bar">
<input type="range" id="progress-bar" min="0" max="100" data-highlight="true" data-mini="true" disabled="disabled" />
</div>
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all empty_logs">
<p>Fetching available logs...</p>
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all no_logs">
<p>There are currently no logs available</p>
</div>
<ul data-role="listview" data-inset="true" id="logs_list" data-split-theme="a">
</ul>
<!-- Popup for single log delete -->
<div data-role="popup" id="popupSingleLogDelete">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Confirm removal</h1>
</div>
<div data-role="main" class="ui-content">
<p>Delete <span class="current_delete_log_title"></span> log as of <span class="current_delete_log_date"></span>?</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a delete-single-log" data-transition="flow">Yes</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow">No</a>
<input type="hidden" id="delete_log_title">
<input type="hidden" id="delete_log_index">
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- Popup for day log delete -->
<div data-role="popup" id="popupLogDelete">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Confirm removal</h1>
</div>
<div data-role="main" class="ui-content">
<p>Do you really want to delete these logs?</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a delete-day-log" data-transition="flow">Yes</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow">No</a>
<input type="hidden" id="delete_index">
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- Popup for input change -->
</div>
<div data-role="footer" class="warning_footer">
<h1>
<span></span>
</h1>
</div>
</div>
<!-- Settings page here:-->
<div data-role="page" id="settings">
<div data-role="header">
<div data-role="navbar" id="navbar3">
<ul>
<li>
<a href="#status_page" class="tab status_page">Status</a>
</li>
<li>
<a href="#config_page" class="tab">Config</a>
</li>
<li class="nav_log_container">
<a href="#logs_page" class="tab logs_page">Logs</a>
<a href="#settings" class="tab ui-btn-active ui-state-persist settings" data-icon="gear" data-iconpos="notext"></a>
</li>
</ul>
</div>
</div>
<div data-role="popup" id="popupDisconnected" data-overlay-theme="a" data-dismissible="false">
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Lost connection with Reach. Please check your network, then try refreshing the page.</p>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<div data-role="main" class="ui-content">
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all network_container">
<p>Network: {{ system_status.network_status.ssid }}</p>
<p>IP: {{ system_status.network_status.ip_address }}</p>
<a href="http://reach.local:5000" class="ui-btn ui-corner-all ui-btn-inline" target="_blank" id="wifi_link">Wi-Fi setup</a>
<a href="" class="ui-btn ui-corner-all ui-btn-inline" target="_blank" id="turn_off_wifi">Turn off Wi-Fi</a>
<p id="off_wi-fi_warning"></p>
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all bluetooth_container">
<p>Bluetooth</p>
<!-- <div id="device_list"></div> -->
<ul data-role="listview" data-inset="true" id="paired_device_list" data-split-theme="a">
</ul>
<ul data-role="listview" data-inset="true" id="device_list" data-split-theme="a">
</ul>
<a href="" class="ui-btn ui-corner-all ui-btn-inline" target="_blank" id="bluetooth_scan">Scan</a> <img src="static/images/update_loader.gif">
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all rinex_version_container">
<p>RINEX version:</p>
<div>
<select name="select-native-1" id="rinex_version" class="config_form_field">
<option value="2.10">2.10</option>
<option value="2.11">2.11</option>
<option value="2.12">2.12</option>
<option value="3.00">3.00</option>
<option value="3.02">3.01</option>
<option value="3.02">3.02</option>
</select>
</div>
</div>
<div class="ui-field-contain" id="update_buttons">
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all update_buttons_container">
<p>ReachView version: {{ system_status.app_version }}</p>
<p class="update_warning">During update ReachView will go inactive for about a minute. Wait for the LED to start blinking again, then refresh the page.</p>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="update_button">Update</a><span class='connect'></span>
<div class="load_update">
<img src="static/images/update_loader.gif">
<p>120</p>
</div>
</div>
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all image_version_container">
<p>Reach image version: {{ system_status.image_version }}</p>
</div>
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all reboot_button_container">
<a href="" class="ui-btn ui-corner-all ui-btn-inline" target="_blank" id="reboot">Reboot</a>
<p id="reboot_warning"></p>
</div>
</div>
<div data-role="footer" class="warning_footer">
<h1>
<span></span>
</h1>
</div>
</div>
</body>
</html>