-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
340 lines (334 loc) · 20.1 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<!-- (c) 2017 Jim Motyl - https://github.com/jxmot/ -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SensorNet</title>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<!-- CSS -->
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/cyborg/bootstrap.min.css">
<!-- Site-wide CSS -->
<link rel="stylesheet" href="./assets/css/site.css">
<!-- Project CSS -->
<!-- Featured Project - SensorNet -->
<!-- CSS specifically for this file -->
<!-- using C3 gauges -->
<link rel="stylesheet" href="assets/css/c3-0.4.18/c3.css">
<!-- HTML Styling -->
<link rel="stylesheet" href="assets/css/sensornet.css">
<!-- Styling for the gauges -->
<link rel="stylesheet" href="assets/css/multi-gauge.css"/>
<!-- Styling for the weather service data -->
<link rel="stylesheet" href="assets/css/wxsvc.css"/>
<link rel="stylesheet" href="assets/css/wxsvc-widget.css"/>
<!-- ^CSS specifically for this file -->
<!-- ^Featured Project - SensorNet -->
<!-- ^Project CSS -->
<!-- ^CSS -->
<!-- JS -->
<!-- jquery -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" crossorigin="anonymous"></script>
<!-- ^jquery -->
<!-- ^JS -->
</head>
<body id="pagetop" class="page-nocopy">
<!-- Featured Project - SensorNet -->
<div id="sensornet_project">
<div class="sensornet-outer">
<!-- SensorNet Gauge Panels -->
<div id="sensornet" class="row sensornet-inner">
<!-- gauge panel -->
<div id="panel" class="col-lg-2 col-lg-offset-2 col-md-3 col-sm-6 col-xs-12">
</div>
<!-- /gauge panel -->
<!-- gauge panel -->
<div id="panel" class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
</div>
<!-- /gauge panel -->
<!-- gauge panel -->
<div id="panel" class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
</div>
<!-- /gauge panel -->
<!-- gauge panel -->
<div id="panel" class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
</div>
<!-- /gauge panel -->
</div>
<!-- ^SensorNet Gauge Panels -->
<!-- SensorNet Local Weather -->
<div class="row sensornet-inner">
<!-- wx panel -->
<div class="col-lg-8 col-lg-offset-2 col-md-12 col-sm-12 col-xs-12">
<div id="wx-panel" class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title sensor-panel-title sensornet-overview-title collapsed" data-toggle="collapse" data-target="#wx-collapse">
<span class="fa sensornet-overview-collapse-icon"></span>
<span>Local Weather <i>(click here to open/close)</i></span>
</h3>
</div>
<div id="wx-collapse" class="panel-collapse collapse">
<div class="panel-body wxsvc-content">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<h4 id="wxsvc-loc" class="wxsvc-center">
<span id="wxsvc_plc"></span>
</h4>
<div class="wxsvc-center wxsvc-svc-credit">
Data & Icons provided by:
<span id="wxsvc_svc"></span>
</div>
</div>
<!-- wx location, data selection -->
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<div id="wxsvc-picker" class="wxsvc-center">
<h5>Choose a data source:</h5>
<div class="radio-inline">
<label class="use-pointer"><input class="use-pointer" type="radio" value="noaa-v3" name="wxsvc_opt" checked>NOAA</label>
</div>
<div class="radio-inline">
<label class="use-pointer"><input class="use-pointer" type="radio" value="owm-v25" name="wxsvc_opt">OpenWeatherMap</label>
</div>
</div>
</div>
<!-- /wx location, data selection -->
</div>
<br><br>
<!-- wx data -->
<div class="row">
<!-- Currently -->
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<h5 id="wxsvc-title_cond" class="wxsvc-center">
Conditions On <span id="wxsvc_gmt"></span>
</h5>
<!-- conditions -->
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h6 id="wxsvc-curr_1">
<img id="wxsvc_ico" class="icon hidden" src="" alt="">
<span id="wxsvc_desc" class="hidden"></span>
<span id="wxsvc_comma" class="hidden">,</span>
<span id="wxsvc_t"></span> °F with
<span id="wxsvc_h"></span> %RH
</h6>
</div>
</div>
<div id="wxsvc_tminmax" class="row hidden">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h6 id="wxsvc-curr_2a">
<span>High: <span id="wxsvc_tmax"></span> °F</span>
<br>
<span>Low: <span id="wxsvc_tmin"></span> °F</span>
</h6>
</div>
</div>
<div id="wxsvc_dewhix" class="row hidden">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h6 id="wxsvc-curr_2b">
The dew point is <span id="wxsvc_dew"></span> °F
<span id="wxsvc_hix_msg">and the heat index is <span id="wxsvc_hix"></span> °F</span>
</h6>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h6 id="wxsvc-wind">
Winds are <span id="wxsvc_ws"></span> MPH from the
<span id="wxsvc_wd"></span>
<span id="wxsvc_wg_msg" class="hidden">and gusting to <span id="wxsvc_wg"></span> MPH.</span>
</h6>
</div>
</div>
<div id="wxsvc_sun" class="row hidden">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h6 id="wxsvc-sun">
<span class="wxsvc-span-pad">On <span id="wxsvc_sundy"></span></span>
<br>
<span>Sunrise: <span id="wxsvc_sunup"></span></span>
<br>
<span>Sunset: <span id="wxsvc_sundn"></span></span>
</h6>
</div>
</div>
<!-- /conditions -->
</div>
<!-- /Currently -->
<!-- Forecast -->
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h5 id="wxsvc-title_fcast" class="wxsvc-center">
Forecast On <span id="wxfcast_gmt"></span>
</h5>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<!-- forecast widgets -->
<div id="forecast_widgets" class="wxsvc-widget-list hidden">
</div>
<!-- /forecast widgets -->
<!-- forecast table -->
<div id="forecast_table" class="table-responsive hidden">
</div>
<!-- /forecast table -->
</div>
</div>
</div>
<!-- /Forecast -->
</div>
<!-- /wx data -->
</div>
</div>
</div>
</div>
<!-- /wx panel -->
</div>
<!-- /SensorNet Local Weather -->
<!-- SensorNet Gauge Legend -->
<div class="row sensornet-inner">
<!-- legend panel -->
<div class="col-lg-8 col-lg-offset-2 col-md-12 col-sm-12 col-xs-12">
<div id="legend-panel" class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title sensor-panel-title sensornet-overview-title collapsed" data-toggle="collapse" data-target="#legend-collapse">
<span class="fa sensornet-overview-collapse-icon"></span>
<span>Gauge Legend <i>(click here to open/close)</i></span>
</h3>
</div>
<div id="legend-collapse" class="panel-collapse collapse">
<div class="panel-body">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<ul class="gauge_legend_list">
<li>
<h6>Temperature °F :</h6>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:blue;stroke-width:3;stroke:white"></rect>
</svg>
= 25 to 60
</li>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:#00BF00;stroke-width:3;stroke:white"></rect>
</svg>
= 60 to 90
</li>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:red;stroke-width:3;stroke:white"></rect>
</svg>
= 90 to 120
</li>
</li>
</ul>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<ul class="gauge_legend_list gauge_legend_humidity_list">
<li>
<h6>% Relative Humidity :</h6>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:#F97600;stroke-width:3;stroke:white"></rect>
</svg>
= 0 to 40
</li>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:#00BF00;stroke-width:3;stroke:white"></rect>
</svg>
= 40 to 70
</li>
<li class="gauge_legend_item">
<svg width="75" height="30">
<rect x="25" y="20" width="50" height="10" style="fill:red;stroke-width:3;stroke:white"></rect>
</svg>
= 70 to 100
</li>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /legend panel -->
</div>
<!-- /SensorNet Gauge Legend -->
<!-- SensorNet Data Purge Status -->
<div class="row sensornet-inner">
<!-- purge panel -->
<div class="col-lg-8 col-lg-offset-2 col-md-12 col-sm-12 col-xs-12">
<div id="purge-panel" class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title sensor-panel-title sensornet-overview-title collapsed" data-toggle="collapse" data-target="#purge-collapse">
<span class="fa sensornet-overview-collapse-icon"></span>
<span>Purge Status <i>(click here to open/close)</i></span>
</h3>
</div>
<div id="purge-collapse" class="panel-collapse collapse">
<div class="panel-body">
<div class="row">
<div class="col-lg-12 col-md-12">
<h6>Last Purge Event : </h6>
<p><span id="data"></span></p>
<p><span id="status"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /purge panel -->
</div>
<!-- /SensorNet Data Purge Status -->
<!-- SensorNet Sensor History Graph -->
<!-- ^SensorNet Sensor History Graph -->
</div>
</div>
<!-- ^Featured Project - SensorNet -->
<!-- Page Footer -->
<footer class="navbar navbar-default navbar-fixed-bottom">
<div class="container text-center">
<p class="navbar-text col-lg-12 col-md-12 col-sm-12 col-xs-12">
2017 ©
<a href="https://github.com/jxmot/client-dht-udp" target="_blank">
James Motyl
</a>
</p>
</div>
</footer>
<!-- ^Page Footer -->
<!-- Project JS -->
<!-- Featured Project - SensorNet -->
<!-- for sensor data via socket.io -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"></script>
<!-- using C3 gauges -->
<script type="text/javascript" src="assets/js/d3-3.5.6/d3.js"></script>
<script type="text/javascript" src="assets/js/c3-0.4.18/c3.js"></script>
<!-- control over console.log() behavior -->
<script type="text/javascript" src="assets/js/consolelog.js"></script>
<!-- miscellaneous utility functions -->
<script type="text/javascript" src="assets/js/utils.js"></script>
<!-- multi-gauge management -->
<script type="text/javascript" src="assets/js/c3gauge-cfg.js"></script>
<!-- for sensor data via socket.io -->
<script type="text/javascript" src="assets/js/_socketcfg.js"></script>
<script type="text/javascript" src="assets/js/appsockets.js"></script>
<!-- for purge status and other message/activity from the server -->
<script type="text/javascript" src="assets/js/purgestatus.js"></script>
<!-- for weather service data via socket.io -->
<script type="text/javascript" src="assets/js/wxsvc.js"></script>
<!-- using C3 gauges -->
<script type="text/javascript" src="assets/js/c3gauges.js"></script>
<!-- ^Featured Project - SensorNet -->
<!-- For navigation and collapsible contents -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- ^For navigation and collapsible contents -->
</body>
</html>