-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·162 lines (155 loc) · 7.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kitchen Monitoring System Mission Control</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="shortcut icon" type="image/x-icon" href="/images/WeatherStation_icon.svg" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="/images/WeatherStation_icon.svg" width="30" height="30" class="d-inline-block align-top" alt="Weather Station icon">
Kitchen Monitoring
</a>
</nav>
<div class="container">
<h1>Kitchen Monitoring System</h1>
<hr />
<form id="form-thresh" action="#">
<div class="form-row">
<div class="col">
<div class="form-group">
<label for="temp_threshold">Temprature threshold</label>
<input class="form-control form-control-sm" type="number" min="-5" max="50" name="temp_threshold" id="temp_threshold" placeholder="threshold in °C" />
</div>
</div>
<div class="col">
<div class="form-group">
<label for="humidity_threshold">Humidity threshold</label>
<input class="form-control form-control-sm" type="number" min="5" max="90" name="humidity_threshold" id="humidity_threshold" placeholder="threshold in %" />
</div>
</div>
<div class="col">
<div class="form-group">
<label for="light_threshold">Light Threshold</label>
<input class="form-control form-control-sm" type="number" min="0" max="1023" name="light_threshold" id="light_threshold" placeholder="between 0 and 1023" />
</div>
</div>
</div>
<div class="form-row">
<div class="col">
<div class="form-group">
<input class="btn btn-dark btn-sm btn-outline-success" type="submit" name="submit" value="Update" />
</div>
</div>
</div>
</form>
<hr />
<form id="main" action="#">
<div class="form-row">
<div class="col">
<div class="form-group">
<label for="start_date">Start Date</label>
<input class="form-control form-control-sm" type="date" name="start_date" id="start_date" />
</div>
</div>
<div class="col">
<div class="form-group">
<label for="start_time">Start Time</label>
<input class="form-control form-control-sm" type="time" step="1" name="start_time" id="start_time" />
</div>
</div>
<div class="col">
<div class="form-group">
<label for="end_date">End Date</label>
<input class="form-control form-control-sm" type="date" name="end_date" id="end_date" />
</div>
</div>
<div class="col">
<div class="form-group">
<label for="end_time">End Time</label>
<input class="form-control form-control-sm" type="time" step="1" name="end_time" id="end_time" />
</div>
</div>
</div>
<div class="form-row">
<div class="col">
<input class="btn btn-danger btn-sm" type="reset" value="Reset">
<input class="btn btn-primary btn-sm" type="submit" name="submit" value="Submit">
</div>
</div>
<hr />
<div class="form-row">
<div class="col">
Auto Refresh Data: <br />
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="autoRefresh" id="autorefresh-op-On" value="On">
<label class="form-check-label" for="autorefresh-op-On">On</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="autoRefresh" id="autorefresh-op-Off" value="Off" checked>
<label class="form-check-label" for="autorefresh-op-Off">Off</label>
</div>
</div>
</div>
</form>
<hr />
<h2>Basic Stats</h2>
<div class="table-responsive">
<table id="Stats_Table" class="table table-bordered table-dark" style="width: 50%;">
<thead>
<tr>
<th scope="col">Factor</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avg Temprature</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Max Temprature</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Min Temp</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Temprature Variance between the sensors</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Temprature Standard Deviation</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Avg Humidity</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Max Humidity</th>
<td>Current</td>
</tr>
<tr>
<th scope="row">Min Humidity</th>
<td>Current</td>
</tr>
</tbody>
</table>
</div>
<hr />
<canvas id="myTempChart"></canvas>
<canvas id="myHumidChart"></canvas>
<canvas id="myLightChart"></canvas>
</div>
</body>
<script src="script.js"></script>
</html>