-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
203 lines (190 loc) · 8.88 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
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>SmartEnergyMonitor</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-startup-image" href="assets/images/startup.png">
<!-- Apple launcher icon -->
<link rel="apple-touch-icon" href="assets/images/launcher-icon.png" />
<link rel="icon" href="assets/images/launcher-icon.png">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" href="js/jqm/jquery.mobile-1.1.0-rc.1.min.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/jqm/jquery-1.7.1.min.js"></script>
<script>
jQuery(document).bind("mobileinit", function() {
jQuery.mobile.defaultPageTransition = null;
});
</script>
<script src="js/jqm/jquery.mobile-1.1.0-rc.1.min.js"></script>
<script src="js/jquery.json-2.3.min.js"></script>
<script src="js/jstorage.min.js"></script>
<script src="js/jqm.page.params.js"></script>
<script src="js/highcharts/highcharts.js"></script>
<script src="js/sem.js"></script>
<script src="js/main.js"></script>
<script src="/webinos.js"></script>
</head>
<body>
<!-- Home Page -->
<div data-role="page" id="home">
<div data-role="header" style="text-align: center;">
<img src="assets/images/logo.png">
</div>
<div data-role="content" >
<center>
<div id="menu_home">
<span>
<a href="#sensors" style="padding-right: 20px;"><img src="assets/images/sensor-icon.png" width="128"/></a>
</span>
<span>
<a href="#actuators"><img src="assets/images/actuator-icon.png" width="128"/></a>
</span>
<span>
<a href="#settings" style="padding-left: 20px;"><img src="assets/images/settings-icon.png" width="128"/></a>
</span>
</div>
</center>
</div>
</div>
<!-- End Home Page -->
<!-- Sensors Page -->
<div data-role="page" id="sensors" data-title="Sensors">
<div data-role="header">
<a data-role="button" data-rel="back" data-icon="back">Back</a>
<h1>Sensors</h1>
<a href="#home" data-role="button" data-icon="home">Home</a>
</div>
<div data-role="content" >
<center>
<div class="refresh_div">
<button id="refresh_sensors">Refresh</button>
</div>
</center>
<ul data-role="listview" data-inset="true" data-filter="true" id="sensors-list"></ul>
<div id="sensors_waiting" class="waiting_style">
<center><img src="assets/waiting.gif"/></center>
</div>
</div>
</div>
<!-- End Sensors Page -->
<!-- Actuators Page -->
<div data-role="page" id="actuators">
<div data-role="header">
<a data-role="button" data-rel="back" data-icon="back">Back</a>
<h1>Actuators</h1>
<a href="#home" data-role="button" data-icon="home">Home</a>
</div>
<div data-role="content" >
<center>
<div class="refresh_div">
<button id="refresh_actuators">Refresh</button>
</div>
</center>
<ul data-role="listview" data-inset="true" data-filter="true" id="actuators-list"></ul>
<div id="actuators_waiting" class="waiting_style">
<center><img src="assets/waiting.gif"/></center>
</div>
</div>
</div>
<!-- End Actuators Page -->
<!-- Rule Page -->
<div data-role="page" id="settings">
<div data-role="header">
<a data-role="button" data-rel="back" data-icon="back">Back</a>
<h1>Settings</h1>
<a href="#home" data-role="button" data-icon="home">Home</a>
</div>
<div data-role="content">
<center>
<div class="refresh_div">
<button id="refresh_rules">Refresh</button>
</div>
</center>
<fieldset>
<div>
<center>
<table id="add_rule_table"></table>
</center>
</div>
<hr>
<div>
<center>
<table id="rules_table">
<thead>
<tr class="header_tr"><td id="sensor_td" class="odd_td">Sensor</td>
<td id="operator_td" class="even_td">Operator</td>
<td id="threshold_td" class="odd_td">Threshold</td>
<td id="actuator_td" class="even_td">Actuator</td>
<td id="action_td" class="odd_td">Action</td>
<td id="delete_td" class="even_td"></td></tr>
</thead>
<tbody>
</tbody>
</table>
</center>
</div>
</fieldset>
</div>
</div>
<!-- End Rule Page -->
<!-- Sensor Page -->
<div data-role="page" id="sensor">
<div data-role="header">
<a data-role="button" data-rel="back" data-icon="back">Back</a>
<h1>Sensor</h1>
<a href="#home" data-role="button" data-icon="home">Home</a>
</div>
<div data-role="content" >
<div class="ui-body ui-body-a"><span id="sensor-name"></span>: <span id="sensor-value"></span> <span id="sensor-unit"></span></div>
<br>
<div id="sensor-chart" style="height: 300px; width: 90%; margin: 0 auto;"></div>
<div id="configuration_div">
<center>
<table id="configuration_table" border=0>
<tr>
<td class="param_td">Mode</td>
<td class="param_td">
<select id="cfg_mode">
<option value="">Choose mode</option>
<option value="fixedinterval">Fixed Interval</option>
<option value="valuechange">Value Change</option>
</select>
</td>
<td class="button_td" rowspan="4"><input type="button" id="cfg_startstop_but" value="Start"></td>
</tr>
<tr><td>Rate</td><td><input type="text" id="cfg_rate" class="cfg_element"></td></tr>
<tr><td>Timeout</td><td><input type="text" id="cfg_timeout" class="cfg_element"></td></tr>
<tr><td colspan="2"><input type="button" id="cfg_but" value="Configure"></td></tr>
</table>
</center>
</div>
</div>
</div>
<!-- End Sensor Page -->
<!-- Actuator Page -->
<div data-role="page" id="actuator">
<div data-role="header">
<a data-role="button" data-rel="back" data-icon="back">Back</a>
<h1>Actuator</h1>
<a href="#home" data-role="button" data-icon="home">Home</a>
</div>
<div data-role="content" >
<div class="ui-body ui-body-a"><span id="actuator-name"></span> - <span id="actuator-descr"></span></div>
<br>
<fieldset>
<p>
<!--<label for="actuator_value_field">Actuator Value:</label>-->
<p><label id="actuator_value_label">New value for actuator</label></p>
<div data-role="fieldcontain" id="actuator_value_field">
</div>
</p>
</fieldset>
<!--<p><button id="actuator_value_btn">Submit</button></p>-->
</div>
</div>
<!-- End Actuator Page -->
</body>
</html>