-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
165 lines (159 loc) · 8.56 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
<!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 Data History</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 -->
<!-- HTML Styling -->
<link rel="stylesheet" href="./assets/css/sensornet.css">
<!-- ^CSS specifically for this file -->
<link rel="stylesheet" href="./assets/css/histpicker.css">
<link rel="stylesheet" href="./assets/css/Zebra_Datepicker-1.9.16/bootstrap/zebra_datepicker.css">
<!-- ^Featured Project - SensorNet -->
<!-- ^Project CSS -->
<!-- ^CSS -->
<!-- JS -->
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
<!-- ^jquery -->
<!-- ^JS -->
</head>
<body id="pagetop" class="page-nocopy">
<div id="sensornet_project">
<div class="sensornet-outer">
<!-- SensorNet Sensor History -->
<div class="row sensornet-inner">
<!-- history panel -->
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div id="history-panel" class="panel panel-success">
<div class="panel-heading"><!-- -->
<h3 id="titlehist" class="panel-title sensor-panel-title sensornet-history-title">
<span>SensorNet History Chart</span>
</h3>
</div>
<div><!-- -->
<div class="panel-body chart-panel-body">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div id="chart"></div>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-lg-offset-1 col-md-3 col-md-offset-1 col-sm-3 col-sm-offset-1 col-xs-12">
<div class="text-right">
<h6>Choose sensors:</h6>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
<div>
<label class="use-pointer">
<input type="checkbox" value="" name="histsel_ctrl">
<span></span>
</label>
<br>
<label class="use-pointer">
<input type="checkbox" value="" name="histsel_ctrl">
<span></span>
</label>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
<div>
<label class="use-pointer">
<input type="checkbox" value="" name="histsel_ctrl">
<span></span>
</label>
<br>
<label class="use-pointer">
<input type="checkbox" value="" name="histsel_ctrl">
<span></span>
</label>
</div>
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-lg-2 col-lg-offset-1 col-md-2 col-md-offset-1 col-sm-2 col-sm-offset-1 col-xs-4">
<div>
<h6 class="text-center">Choose a day in the past:</h6>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-8">
<div id="histdiv">
<input id="histpicker" type="text" class="form-control">
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div>
<div class="text-right">
<h6>And then:</h6>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-3 col-xs-4">
<div>
<div class="text-center">
<button id="gethist" onmousedown="event.preventDefault()" type="button" class="btn btn-success">
Get the Data
</button>
<br><br>
<button id="resetchart" onmousedown="event.preventDefault()" type="button" class="btn-xs btn-danger">
RESET
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /history panel -->
</div>
<!-- /SensorNet Sensor History -->
</div>
</div>
<!-- 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-2020
<a href="https://github.com/jxmot/sensornet_chart" target="_blank">James Motyl</a>
</p>
</div>
</footer>
<!-- ^Page Footer -->
<!-- Project JS -->
<!-- Featured Project - SensorNet -->
<script src="./assets/js/apex-3.22.1/apexcharts.js"></script>
<!-- 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>
<!-- 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>
<!-- 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>
<script type="text/javascript" src="./assets/js/histchart-cfg.js"></script>
<script type="text/javascript" src="./assets/js/histchart.js"></script>
<script type="text/javascript" src="./assets/js/history.js"></script>
<!-- ^Featured Project - SensorNet -->
<!-- for datepicker -->
<script type="text/javascript" src="./assets/js/Zebra_Datepicker-1.9.16/zebra_datepicker.src.js"></script>
<!-- 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>