-
Notifications
You must be signed in to change notification settings - Fork 1
/
ctrlh-dashboard.html
355 lines (346 loc) · 19.6 KB
/
ctrlh-dashboard.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDX Hackerspace Dashboard</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="Portland's Hackerspace. Check out our website calendar for our weekly open house and all other events open to the public.">
<meta name="robots" content="noindex">
<script src="https://kit.fontawesome.com/0556c42d44.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css" integrity="sha384-degZUV6f5Qw/AGD0Kq6kEC7j8V6h+IWPfm+AJ+2q3gaTFa9U4fu/9u3Egh7xOYE4" crossorigin="anonymous">
<style>
@import url("https://stackpath.bootstrapcdn.com/bootswatch/4.5.0/flatly/bootstrap.min.css") (prefers-color-scheme: light);
@import url("https://stackpath.bootstrapcdn.com/bootswatch/4.5.0/darkly/bootstrap.min.css") (prefers-color-scheme: dark);
html {
font-size: 16px;
}
.hr-green {
color: green !important;
}
time,
#last_updated {
font-size: small;
font-style: italic;
}
body {
padding-top: 65px;
}
.progress-bar { color: black; }
.ekko-lightbox-nav-overlay { color: white !important; }
</style>
</head>
<body>
<div class="container-fluid">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand activity-bar" href="#">PDX Hackerspace</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<select class='custom-select nav-link-item' onChange='window.location.href=this.value'>
<option value='#cameras'>Cameras</option>
<option value='#video'>Video</option>
<option value='#3d-printers'>3D Printers</option>
<option value='#laser-cutter-access'>Laser Cutter</option>
<option value='#rooms'>Rooms</option>
<option value='#facilities'>Facilities</option>
<option value='#access'>Access</option>
<option value='#weather'>Weather</option>
<option value='#aqi'>AQI</option>
<option value='#printer'>Printer</option>
<option value='#servers'>Servers</option>
<option value='#devices'>Devices</option>
</select>
</li>
<li class="nav-item">
<select id='temperature-units' class='custom-select nav-link-item'>
<option value='F'>F</option>
<option value='C'>C</option>
<option value='K'>K</option>
</select>
</li>
</ul>
</div>
<span class='navbar-text' id='page_last_updated'>
Last updated: <time class='timeago'></time>
</span>
</div>
</nav>
</div>
<div class="container-fluid">
<div class='row'>
<div class='col' data-homebus-uuid='f1a6410c-744c-4d79-9f94-143383bd49aa'>
<h2>Solar Clock</h2>
Sunrise: <span class='org-homebus-experimental-solar-clock sunrise' data-transform='transform_hours'></span>AM Sunset: <span class='org-homebus-experimental-solar-clock sunset' data-transform='transform_hours'></span>PM
</div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col'>
<h2>NWS Alerts</h2>
</div>
</div>
<div class='row'>
<div id='alerts' class='col'></div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col'>
<h2 id='cameras'>Camera Stills</h2>
</div>
</div>
<div class='row'>
<div class='col-sm-3 load-image-html' data-homebus-uuid='fe44e08a-8593-43f9-ad2f-f83d554845bf' data-name='Russet EF' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='37f5febc-d5da-4ebf-82c2-333bafa89e3a' data-name='Gate' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='3d348fd9-3530-4ce9-a243-d0ee472a5ee4' data-name='Russet WF' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='1e6924f0-ebfa-44ba-ab74-3021a66214e3' data-name='North Fence' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='a2868584-095d-4b4a-a217-cf1d3aec3287' data-name='Yard' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='65d8b9ec-ba74-447a-894b-3eabe49ce55c' data-name='Interstate SF1' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='6ea7f0b1-3cfd-4de3-8a82-5512fe015ae7' data-name='Interstate SF2' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='4abb9da1-404e-4896-8fd6-f2a37d60cb4c' data-name='Unit 2 Entry' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='06a71006-79d8-40e6-b218-18e66108ac66' data-name='Interstate NF1' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='ca2e44df-c23e-4dae-b09f-1e67c377dd45' data-name='Interstate NF2' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='4ddbba62-a17d-4cde-80d4-c12b5a43a108' data-name='Section 2E' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='29926a69-653a-43a1-aa3f-32cd0d31f1f1' data-name='E. Lab' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='2a4d6433-9e94-4c8e-9d1c-595aeeb942c7' data-name='C. Lab' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='c343627b-cadf-4fe5-89d2-d94b4008d6e7' data-name='Kitchen' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='a9c7b3f2-2cda-4b3e-934f-d58469cc1351' data-name='Shop' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='7525a321-9fa8-4736-a887-acf113bec465' data-name='Shop back' data-gallery-name='security-cams'></div>
<div class='col-sm-3 load-image-html' data-homebus-uuid='' data-name='Garden' data-gallery-name='security-cams'></div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col'>
<h2 id='video'>Live video feeds</h2>
</div>
</div>
<div class='row'>
<div class='col-sm-3'>
<h2>Unit 3</h2>
<iframe src='https://video.nest.com/embedded/live/WdeSzuB41b?autoplay=1'></iframe>
</div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col'>
<h2 id='3d-printers'>3D Printers</h2>
</div>
</div>
<div class='row'>
<div class='col-sm-4'>
<div class='load-image-html' data-homebus-uuid='c0603a32-7817-4922-b661-2a6be57b6bd0' data-name='Dremel' data-gallery-name='3d-printers'></div>
<div class='load-3dprinter-html' data-homebus-uuid='7bfff065-f2e8-406d-b8d1-734a84c4c222'></div>
</div>
<!-- dremel -->
<div class='col-sm-4'>
<div class='load-image-html' data-homebus-uuid='aa40ff68-9dd6-4f92-85fe-ff2704457c0a' data-name='Prusa-1' data-gallery-name='3d-printers'></div>
<div class='load-3dprinter-html' data-homebus-uuid='54a613a5-a3d3-4187-a1de-3210f6a8b956'></div>
</div>
<div class='col-sm-4'>
<div class='load-image-html' data-homebus-uuid='ad89d239-f65d-4aa2-9c17-434c022e93a7' data-name='Prusa-2' data-gallery-name='3d-printers'></div>
<div class='load-3dprinter-html' data-homebus-uuid='c608349d-e87f-4a0f-b4ff-645fda50f4a2'></div>
</div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col-sm-4'>
<div class='load-image-html' data-homebus-uuid='' data-name='CNC Cam'></div>
<div class='load-load-load-3dprinter-html' data-homebus-uuid=''></div>
</div>
<div class='col-sm-4'>
<div class='cam' data-homebus-uuid='' data-name='Laser Cutter Cam'></div>
<div id='laser-cutter-access'>
<div>
<h3>Laser Cutter Access</h3>
<ul data-homebus-uuid='fb405501-aa7d-43be-8f33-310654eb2162' class='list-group list-group-flush'>
</ul>
</div>
</div>
</div>
<div class='col-sm-4'>
<div id='access-log'>
<div id ='fe7568b3-4550-480f-8014-11ce707ea7c6'>
<h3>Access Log</h3>
<ul class='list-group list-group-flush org-pdxhackerspace-experimental-access history' data-transform='xtransform_access_list' data-homebus-uuid='fe7568b3-4550-480f-8014-11ce707ea7c6'></ul>
</ul>
</div>
</div>
</div>
<!-- col -->
</div>
<!-- row -->
<hr class='hr'/>
<div class='row'>
<div class='col col-md-8'>
<h2 id='rooms'>Rooms</h2>
<table class='table table-striped'>
<tr>
<th></th>
<th>Room</th>
<th><i class="fas fa-lightbulb"></i></th>
<th>Temp</th>
<th>Hum</th>
<th>PM1/2.5/10</th>
<th>VOC</th>
<th>Lux</th>
<th>IR</th>
<th>CO2</th>
</tr>
<tr data-homebus-uuid='84d2aaba-89a7-4d46-a6c2-bddea8a000fe' data-co2-uuid='67ce0378-50db-4500-9bd6-fb482c41b40e' class='load-room-html' data-name='Laser Lab'></tr>
<tr data-homebus-uuid='12374f71-a1ac-4d8d-bcd5-6a7faaa0d625' data-co2-uuid='5de6b47f-c9b6-4fbe-9a47-032b30770523' class='load-room-html' data-name='Unit 2' data-door-uuid=''></tr>
<tr data-homebus-uuid='c4d41c48-94c5-4049-a9b3-3aef8119bcc6' data-co2-uuid='f38bf61d-9202-4b54-8347-8323b1a5fdcd' class='load-room-html' data-name='Electronics Lab'></tr>
<tr data-homebus-uuid='5e385b13-36cf-437e-b94a-c408f7b19434' data-co2-uuid='5e385b13-36cf-437e-b94a-c408f7b19434' class='load-room-html' data-name='Unit 3' data-door-uuid=''></tr>
<tr data-homebus-uuid='b86a2c2c-9947-4171-9c63-dc33a829703d' data-co2-uuid='fad9e14e-9ec4-4b99-b0b3-2d451c9b0c66' class='load-room-html' data-name='Craft Lab' data-door-uuid='' data-light-uuid=''></tr>
<tr data-homebus-uuid='6c334409-77eb-44e0-be11-a27d2bbcb91a' data-co2-uuid='cae8e54f-fe3e-46a6-9391-4bfad7bf4e09' class='load-room-html' data-name='Wood Shop'></tr>
</table>
</div>
<!-- col -->
</div>
<div class='row'>
<div class='col col-md-4'>
<h2 id='facilities'>Facilities</h2>
<table class='table table-striped'>
<tr data-homebus-uuid='9e353e3c-2244-4ff4-be54-af05817cb2e3'>
<td rowspan="2">
Network
</td>
<td>rx:
<span class='org-homebus-experimental-network-bandwidth rx_bps' data-transform='transform_thousands'></span>bps
</td>
<td>tx:
<span class='org-homebus-experimental-network-bandwidth tx_bps' data-transform='transform_thousands'></span>bps
</td>
</tr>
<tr data-homebus-uuid='9e353e3c-2244-4ff4-be54-af05817cb2e3'>
<td>active hosts</td>
<td class='org-homebus-experimental-network-active-hosts arp_table_length'></td>
</tr>
<tr>
<td>
<a href='http://192.168.15.99/'>^H Sign</a>
</td>
<td></td>
<td></td>
</tr>
<tr>
<th></th>
<th>color</th>
<th>animation</th>
<th>speed</th>
<th>bright</th>
</tr>
<tr class='load-led-html' data-homebus-uuid='' data-name='Vendo LEDs'></tr>
<tr class='load-led-html' data-homebus-uuid='' data-name='Door LED strip'></tr>
<tr class='load-led-html' data-homebus-uuid='' data-name='Garden LEDs'></tr>
<tr class='load-led-html' data-homebus-uuid='' data-name='Chef hat'></tr>
<tr class='load-projector-html' data-homebus-uuid='' data-name='Unit 2 projector'></tr>
<tr class='load-projector-html' data-homebus-uuid='' data-name='Unit 3 projector'></tr>
<tr data-homebus-uuid=''>
<td>Vendo</td>
<td><span class='org-homebus-experimental-air-sensor temperature' data-transform='transform_temperature'></span>°C</td>
<td><span class='org-homebus-experimental-air-sensor humidity'></span>%</td>
</tr>
</table>
</div>
<!-- col -->
</div>
<hr class='hr'/>
<div id='weather' class='row'>
<div data-homebus-uuid='6f85c377-bddf-48d4-b7b6-45ea5119f7ac' class='col load-weather-html' data-name='OpenWeather Map'></div>
<div data-homebus-uuid='ed2febdc-1159-4381-86b5-14d4da98b6e9' class='col load-weather-html' data-name='^H Weather Station'></div>
<div data-homebus-uuid='5cb1b1e1-f5a8-4468-a91d-1ab0c928dc15' class='col load-aqi-html'></div>
</div>
<div class='row'>
<div class='col' data-homebus-uuid=''>
<h2 class='org-homebus-experimental-printer system model'>Brother Printer</h2>
<p class='org-homebus-experimental-printer status message'></p>
<p>
<span class='org-homebus-experimental-printer status total_page_count'></span>
pages printed
</p>
</div>
<!-- col -->
</div>
<!-- row -->
<hr class='hr'/>
<div class='row'>
<div class='col'>
<h2 id='servers'>Servers</h2>
</div>
</div>
<!-- row -->
<div class='row'>
<div class='col-sm-4 load-server-html' data-homebus-uuid='a593377d-85f7-4fa2-b1f8-1e909852efaa' data-name='zuul'></div>
<div class='col-sm-4 load-server-html' data-homebus-uuid='a21cfd4c-ba1c-4121-8bde-e24f59f48a7b' data-name='weather'></div>
<div class='col-sm-4 load-server-html' data-homebus-uuid='3a9b8261-a65f-476c-aaa3-5fd9ea95b7b6' data-name='wiki.pdxhackerspace.org'></div>
</div>
<!-- row -->
<div class='row'>
<div class='col-sm-4 load-server-html' data-homebus-uuid='88b79276-5d79-440f-af07-b62f0eba6fc8' data-name='prusa-1'></div>
<div class='col-sm-4 load-server-html' data-homebus-uuid='f4932893-a88c-4f30-aafe-5b9e21ee39b6' data-name='prusa-2'></div>
</div>
<!-- row -->
<hr class='hr'>
<div class='row'>
<div class='col'>
<h2 id='devices'>Devices</h2>
</div>
</div>
<div class='row'>
<div class='col-md-4 load-device-html' data-homebus-uuid='12374f71-a1ac-4d8d-bcd5-6a7faaa0d625'></div>
<div class='col-md-4 load-device-html' data-homebus-uuid='c4d41c48-94c5-4049-a9b3-3aef8119bcc6'></div>
<div class='col-md-4 load-device-html' data-homebus-uuid='b86a2c2c-9947-4171-9c63-dc33a829703d'></div>
</div>
<div class='row'>
<div class='col-md-4 load-device-html' data-homebus-uuid='6c334409-77eb-44e0-be11-a27d2bbcb91a'></div>
<div class='col-md-4 load-device-html' data-homebus-uuid='84d2aaba-89a7-4d46-a6c2-bddea8a000fe'></div><!-- laser lab -->
<div class='col-md-4 load-device-html' data-homebus-uuid=''></div><!-- vending machine LEDs -->
</div>
<div class='row'>
<div class='col-md-4 load-device-html' data-homebus-uuid='fad9e14e-9ec4-4b99-b0b3-2d451c9b0c66'></div><!-- craft lab CO2 -->
<div class='col-md-4 load-device-html' data-homebus-uuid='f38bf61d-9202-4b54-8347-8323b1a5fdcd'></div><!-- electronics lab CO2 -->
<div class='col-md-4 load-device-html' data-homebus-uuid='83809089-d250-4c8f-9a63-12b05622d92c'></div><!-- unit 2 back CO2 -->
</div>
<div class='row'>
<div class='col-md-4 load-device-html' data-homebus-uuid='5de6b47f-c9b6-4fbe-9a47-032b30770523'></div><!-- unit 2 entrance Co2 -->
<div class='col-md-4 load-device-html' data-homebus-uuid='5e385b13-36cf-437e-b94a-c408f7b19434'></div><!-- unit 3 back CO2 -->
<div class='col-md-4 load-device-html' data-homebus-uuid='cae8e54f-fe3e-46a6-9391-4bfad7bf4e09'></div><!-- woodshop CO2 -->
</div>
<div class='row'>
<div class='col-md-4 load-device-html' data-homebus-uuid='67ce0378-50db-4500-9bd6-fb482c41b40e'></div>
<!-- garden LEDs --><!-- chef hat --><!-- electronics lab door LED strip -->
</div>
<hr class='hr'/>
<div class='row d-none'>
<div class='col'>
<h2>Log</h2>
<table id='log' class='table table-striped'>
</table>
</div>
</div>
<hr class='hr'/>
<div class='row'>
<div class='col'>
<i>Want to hack this?</i>
Source is at
<a href='https://github.com/romkey/ctrlh-dashboard'>https://github.com/romkey/ctrlh-dashboard</a>
</div>
</div>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.1.0/paho-mqtt.min.js' type='text/javascript'></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/1.6.7/jquery.timeago.min.js' integrity='sha384-bIExnxLHdrb4/5cUciUyC490hqkTPFw6V1eUbG0gpKQ67B3dsT6KOdXvl5RycCM6' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js' integrity='sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q' crossorigin='anonymous'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js' integrity='sha384-bqIl0+8hxcMpOFf8O3ffwAy5qTUbFPyuNFytX/omkD4RDPMOBtt/uV6Lqlw7sljM' crossorigin='anonymous'></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
<script src='https://ctrlh.romkey.com/credentials.js?i=23'></script>
<script src='dashboard.js?i=23'></script>
</body>
</html>