-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalibration.html
More file actions
134 lines (115 loc) · 3.61 KB
/
calibration.html
File metadata and controls
134 lines (115 loc) · 3.61 KB
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
<!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.0">
<link rel="shortcut icon" href="images/logo-white.svg" type="image/svg">
<title>Calibration | EnvOS</title>
<link rel="stylesheet" href="css/service_pages.css">
</head>
<body>
<div class="content">
<h1 style="margin-bottom: 0em;">Calibration menu</h1>
<span id="id" class="mono">id</span> /
<span id="version" class="mono">version</span>
<br/><br/>
<div class="block">
<h3>Values</h3>
<table class="table table-values">
<tbody id="values">
<tr>
<th>Sensor</th>
<th>Type</th>
<th>Last value</th>
<th>Avg value</th>
</tr>
</tbody>
</table>
</div>
<div class="block hide" id="box_mics">
<h3>MICS</h3>
<div style="margin-bottom: 0.5em;"><b>Automatic MICS calibration calculation</b></div>
<table class="table">
<tr>
<td style="font-size: small;">Ref NH3 (ppm)</td>
<td style="font-size: small;">Ref CO (ppm)</td>
<td style="font-size: small;">Ref NO2 (ppm)</td>
</tr>
<tr>
<td>
<input class="text-box" type="number" id="ref_nh3" maxlength="5" value="0.050"/>
</td>
<td>
<input class="text-box" type="number" id="ref_co" maxlength="5" value="0.300"/>
</td>
<td>
<input class="text-box" type="number" id="ref_no2" maxlength="5" value="0.020"/>
</td>
</tr>
</table><br/>
<button id="calculate_mics">Calculate</button><br/>
<hr>
<table class="table">
<tr>
<td>A0 (NH3)</td>
<td><input class="text-box" type="number" name="mics_a0" id="mics_a0" maxlength="5" placeholder="a0" /></td>
</tr>
<tr>
<td>A1 (CO)</td>
<td><input class="text-box" type="number" name="mics_a1" id="mics_a1" maxlength="5" placeholder="a1" /></td>
</tr>
<tr>
<td>A2 (NO2)</td>
<td><input class="text-box" type="number" name="mics_a2" id="mics_a2" maxlength="5" placeholder="a2" /></td>
</tr>
</table><br/>
<button id="apply_mics">Apply</button> <span>...</span><br/>
</div>
<div class="block hide" id="box_coef">
<h3>Coefficient</h3>
<table class="table">
<tr>
<td>
<select name="sensor" id="sensor">
<!-- -->
</select>
</td>
<td><input type="text" name="type" id="type" placeholder="type"></td>
<td><input type="text" name="unit" id="unit" placeholder="unit"></td>
</tr>
<tr>
<td>
<select name="coef_type" id="coef_type">
<option>lin</option>
<option>pow</option>
<option>exp</option>
<option>log</option>
</select>
</td>
<td><input type="number" name="a" id="a" placeholder="a" value="1"></td></td>
<td><input type="number" name="b" id="b" placeholder="b"></td></td>
</tr>
</table>
<span id="coef_formula" class="mono">formula</span><br/><br/>
<button style="margin-bottom: 0.5em;" id="apply_coef">Apply</button>
<button id="remove_coef">Remove</button> <span>...</span><br/>
</div>
<div class="block">
<h3>Current coefficients</h3>
<table class="table-f">
<tbody id="current_coefs">
<!-- -->
</tbody>
</table>
</div>
<div class="block hide">
<h3>Current settings</h3>
<textarea class="settings-text" id="settings_json" readonly></textarea>
</div>
<div class="mono" style="width: 100%; text-align: center;">C++ для богів, JS для лохів!</div><br/>
</div>
<script type="module" src="js/utils.js"></script>
<script type="module" src="js/calibration.js"></script>
</body>
</html>