-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathindex.html
341 lines (312 loc) · 22.3 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
341
<!DOCTYPE html>
<html>
<head>
<!-- Origin Trial Token -->
<meta http-equiv="origin-trial"
content="AkK15PCT/JQzZOG2MuAyNPO4fR1U0rtIhLAogFay1cDTMLL2ulyBPKWiTiGdPa5FIzAHDC2yC+7mF/YBe+tI0g8AAABaeyJvcmlnaW4iOiAiaHR0cHM6Ly92ZW5zaS5naXRodWIuaW86NDQzIiwgImZlYXR1cmUiOiAiV2ViQmx1ZXRvb3RoIiwgImV4cGlyeSI6IDE0NzMyNjQ4NDV9"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hexiwear</title>
<script src="cordova.js"></script>
<link rel="stylesheet"
href="bower_components/angular-material/angular-material.min.css">
<link href="app/style.css" rel="stylesheet">
<link href="bower_components/angular-material-icons/angular-material-icons.css" rel="stylesheet">
<link href="app/css/font-awesome.min.css" rel="stylesheet">
<link href="bower_components/openSans/openSans.css" rel="stylesheet">
<link href="bower_components/roboto-condensed/css/roboto-condensed.css" rel="stylesheet">
<link href="bower_components/raleway/raleway.css" rel="stylesheet">
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-animate/angular-animate.min.js"></script>
<script src="bower_components/angular-aria/angular-aria.min.js"></script>
<script src="bower_components/angular-material/angular-material.min.js"></script>
<script src="bower_components/angular-material-icons/angular-material-icons.min.js"></script>
<script src="bower_components/blueapp.io/blueapp.io.min.js"></script>
<script src="app/app.js"></script>
<script src="app/services/hexiwear.js"></script>
</head>
<body ng-app="hexiwear" class="thing">
<div ng-controller="mainController as main" md-theme-watch="true">
<div ng-show="toast" id="toaster"></div>
<div class="md-toolbar-tools">
<h2><img src="./app/images/HW-logo.png" style="height: 33px;" /> HEXIWEAR APP</h2>
<h2 ng-hide="hexiwear.deviceInfoData.batteryData == undefined" style="padding-top: 7px; position: absolute; right: 90px">
{{ hexiwear.deviceInfoData.batteryData }} %
</h2>
<div layout="row" layout-align="left left" ng-hide="hexiwear.deviceInfoData.batteryData == undefined" style="position: absolute; right: 60px; top: 20px">
<div layout="row" layout-align="center center" style="margin-right: 0; padding-right: 0">
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData == undefined" icon="battery_unknown" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData>95" icon="battery_full" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=95 && hexiwear.deviceInfoData.batteryData>85" icon="battery_90" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=85 && hexiwear.deviceInfoData.batteryData>75" icon="battery_80" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=75 && hexiwear.deviceInfoData.batteryData>55" icon="battery_60" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=55 && hexiwear.deviceInfoData.batteryData>35" icon="battery_50" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=35 && hexiwear.deviceInfoData.batteryData>25" icon="battery_30" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=25 && hexiwear.deviceInfoData.batteryData>15" icon="battery_20" style="fill: white" size="30"></ng-md-icon>
<ng-md-icon ng-if="hexiwear.deviceInfoData.batteryData<=15" icon="battery_alert" style="fill: white" size="30"></ng-md-icon>
</div>
</div>
<md-button class="md-icon-button" aria-label="Back" ng-click="infoPopup()" style="position: absolute; right: 20px">
<ng-md-icon icon="info_outline" style="fill:white" size="30"></ng-md-icon>
</md-button>
</div>
<div flex="100" class="appMode" layout-align="center center" style="text-align: center; background-color: #505050; color:white; padding: 10px; height: 60px">
<div ng-if="hexiwear.deviceInfoData.modeData == 0 && hexiwear.paired == true">Application Mode: None</div>
<div ng-if="hexiwear.deviceInfoData.modeData == 2 && hexiwear.paired == true">Application Mode: Sensor Tag</div>
<div ng-if="hexiwear.deviceInfoData.modeData == 5 && hexiwear.paired == true">Application Mode: Heart Rate</div>
<div ng-if="hexiwear.deviceInfoData.modeData == 6 && hexiwear.paired == true">Application Mode: Pedometer</div>
<div ng-if="hexiwear.connected && hexiwear.paired == false">Devices not paired</div>
</div>
<div flex="100" flex-gt-xs="100" ng-show="hexiwear.connected">
<div class="white-box p-10 card1 expanded" flex="100">
<div class="card1-clip expanded" flex="100" layout="column">
<button class="accordion1 active show">
<div class="card1-collapsed-content slide">
<div layout="row" layout-align="start center" flex="100" layout-wrap>
<div class="circle-icon" layout="row" layout-align="center center">
<ng-md-icon icon="shuffle" style="fill: white" size="25"></ng-md-icon>
</div>
<h3 class="pl-10">Motion data</h3>
</div>
</div>
</button>
<div class="card1-expanded-content slide" layout="row" layout-align="start start" layout-wrap>
<div class="box" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/accColor.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Accelerometer</h3>
</div>
<div style="text-align: left;" layout="column" layout-align="center center">
<label>x: <label ng-show="hexiwear.motionData.acc.x == undefined" >---</label><label ng-show="hexiwear.motionData.acc.x != undefined" >{{hexiwear.motionData.acc.x}} g</label></label>
<label>y: <label ng-show="hexiwear.motionData.acc.y == undefined" >---</label><label ng-show="hexiwear.motionData.acc.y != undefined" >{{hexiwear.motionData.acc.y}} g</label></label>
<label>z: <label ng-show="hexiwear.motionData.acc.z == undefined" >---</label><label ng-show="hexiwear.motionData.acc.z != undefined" >{{hexiwear.motionData.acc.z}} g</label></label>
</div>
</div>
</div>
<div class="box" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/3D_Gyroscope-no_text.png" style="width:98px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Gyroscope</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<label>x: <label ng-show="hexiwear.motionData.gyro.x == undefined" >---</label><label ng-show="hexiwear.motionData.gyro.x != undefined" >{{hexiwear.motionData.gyro.x}} deg/s</label></label>
<label>y: <label ng-show="hexiwear.motionData.gyro.y == undefined" >---</label><label ng-show="hexiwear.motionData.gyro.y != undefined" >{{hexiwear.motionData.gyro.y}} deg/s</label></label>
<label>z: <label ng-show="hexiwear.motionData.gyro.z == undefined" >---</label><label ng-show="hexiwear.motionData.gyro.z != undefined" >{{hexiwear.motionData.gyro.z}} deg/s</label></label>
</div>
</div>
</div>
<div class="boxLast" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/magColor.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Magnetometer</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<label>x: <label ng-show="hexiwear.motionData.mag.x == undefined" >---</label><label ng-show="hexiwear.motionData.mag.x != undefined" >{{hexiwear.motionData.mag.x}} µT</label></label>
<label>y: <label ng-show="hexiwear.motionData.mag.y == undefined" >---</label><label ng-show="hexiwear.motionData.mag.y != undefined" >{{hexiwear.motionData.mag.y}} µT</label></label>
<label>z: <label ng-show="hexiwear.motionData.mag.z == undefined" >---</label><label ng-show="hexiwear.motionData.mag.z != undefined" >{{hexiwear.motionData.mag.z}} µT</label></label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="white-box p-10 card2 expanded" flex="100">
<div class="card2-clip expanded" flex="100" layout="column">
<button class="accordion2 active show">
<div class="card2-collapsed-content slide">
<div layout="row" layout-align="start center" flex="100" layout-wrap>
<div class="circle-icon-weather" layout="row" layout-align="center center">
<ng-md-icon icon="public" style="fill: white" size="28"></ng-md-icon>
</div>
<h3 class="pl-10">Weather data</h3>
</div>
</div>
</button>
<div class="card2-expanded-content slide" layout="row" layout-align="start start" layout-wrap>
<div class="box" layout="column" layout-xs="row" flex="25" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/light.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Ambient light</h3>
</div>
<div style="text-align: left;" layout="column" layout-align="center center">
<div flex="60" class="weatherData"><div ng-show="hexiwear.weatherData.ambient_light == undefined" >---</div><div ng-show="hexiwear.weatherData.ambient_light != undefined" >{{hexiwear.weatherData.ambient_light}} %</div></div>
</div>
</div>
</div>
<div class="box" layout="column" layout-xs="row" flex="25" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/temperature-icon.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Temperature</h3>
</div>
<div style="text-align: left;" layout="column" layout-align="center center">
<div flex="60" class="weatherData"><div ng-show="hexiwear.weatherData.temperature == undefined" >---</div><div ng-show="hexiwear.weatherData.temperature != undefined" >{{hexiwear.weatherData.temperature}} C</div></div>
</div>
</div>
</div>
<div class="box" layout="column" layout-xs="row" flex="25" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/hum2.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Humidity</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<div flex="60" class="weatherData"><div ng-show="hexiwear.weatherData.humidity == undefined" >---</div><div ng-show="hexiwear.weatherData.humidity != undefined" >{{hexiwear.weatherData.humidity}} %</div></div>
</div>
</div>
</div>
<div class="boxLast" layout="column" layout-xs="row" flex="25" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/press.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Pressure</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<div flex="60" class="weatherData"><div ng-show="hexiwear.weatherData.pressure == undefined" >---</div><div ng-show="hexiwear.weatherData.pressure != undefined" >{{hexiwear.weatherData.pressure}} kPa</div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="white-box p-10 card3 expanded" flex="100">
<div class="card3-clip expanded" flex="100" layout="column">
<button class="accordion3 active show">
<div class="card3-collapsed-content slide">
<div layout="row" layout-align="start center" flex="100" layout-wrap>
<div class="circle-icon-health" layout="row" layout-align="center center">
<ng-md-icon icon="directions_walk" style="fill: white" size="25"></ng-md-icon>
</div>
<h3 class="pl-10">Health data</h3>
</div>
</div>
</button>
<div class="card3-expanded-content slide" layout="row" layout-align="start start" layout-wrap>
<div class="box" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/heart.png" style="width:88px;height:68px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Heart rate</h3>
</div>
<div style="text-align: left;" layout="column" layout-align="center center">
<div flex="60" class="healthData"><div ng-show="hexiwear.healthData.heart_rate == undefined" >---</div><div ng-show="hexiwear.healthData.heart_rate != undefined" >{{hexiwear.healthData.heart_rate}} </div></div>
</div>
</div>
</div>
<div class="box" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/steps.png" style="width:98px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Steps</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<div flex="60" class="healthData"><div ng-show="hexiwear.healthData.steps == undefined" >---</div><div ng-show="hexiwear.healthData.steps != undefined" >{{hexiwear.healthData.steps}} </div></div>
</div>
</div>
</div>
<div class="boxLast" layout="column" layout-xs="row" flex="33" flex-xs="100">
<div flex="50">
<div style="height: 80px">
<img ng-src="./app/images/cal2.png" style="width:78px;height:78px; margin-top: 10px"/>
</div>
</div>
<div flex="50">
<div style="margin-top: 35px">
<h3>Calorie</h3>
</div>
<div style="text-align: left" layout="column" layout-align="center center">
<div flex="60" class="healthData"><div ng-show="hexiwear.healthData.calorie == undefined" >---</div><div ng-show="hexiwear.healthData.calorie != undefined" >{{hexiwear.healthData.calorie}} </div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<div class="white-box p-10 card4 expanded" flex="100">-->
<!--<div class="card4-clip expanded" flex="100" layout="column">-->
<!--<button class="accordion4 active show">-->
<!--<div class="card4-collapsed-content slide">-->
<!--<div layout="row" layout-align="start center" flex="100" layout-wrap>-->
<!--<div class="circle-icon-alert" layout="row" layout-align="center center">-->
<!--<ng-md-icon icon="import_export" style="fill: white" size="25"></ng-md-icon>-->
<!--</div>-->
<!--<h3 class="pl-10">Alert data</h3>-->
<!--</div>-->
<!--</div>-->
<!--</button>-->
<!--<div class="card4-expanded-content slide" flex="100" layout="row" layout-align="start start" layout-wrap>-->
<!--<div class="box" layout="column" layout-xs="row" flex="100" flex-xs="100">-->
<!--<div flex="50">-->
<!--<div style="height: 80px">-->
<!--<ng-md-icon icon="access_time" size="75" style="width:98px;height:78px; margin-top: 10px; fill: #4a4a4a"></ng-md-icon>-->
<!--</div>-->
<!--</div>-->
<!--<div flex="50">-->
<!--<div style="margin-top: 10px">-->
<!--<h3>Set Date/Time</h3>-->
<!--</div>-->
<!--<div style="text-align: left; margin-bottom: 20px" layout="column" layout-align="center center">-->
<!--<md-button class="md-raised" ng-click="sendNotifications()" style="width: 150px">Set current time</md-button>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--<!–<div class="boxLast" layout="column" layout-xs="row" flex="50" flex-xs="100">–>-->
<!--<!–<div flex="50">–>-->
<!--<!–<ng-md-icon icon="notifications_none" size="75" style="width:98px;height:78px; margin-top: 10px; margin-left: 25px; fill: #4a4a4a"></ng-md-icon>–>-->
<!--<!–</div>–>-->
<!--<!–<div flex="50">–>-->
<!--<!–<div style="margin-top: 10px">–>-->
<!--<!–<h3>Send notifications</h3>–>-->
<!--<!–</div>–>-->
<!--<!–<div style="text-align: left; margin-bottom: 20px" layout="column" layout-align="center center">–>-->
<!--<!–<md-button class="md-raised" ng-click="sendNotifications()" style="width: 150px">Send</md-button>–>-->
<!--<!–<!–<div flex="60" class="healthData"><div ng-show="hexiwear.heart_rate == undefined" >---</div><div ng-show="hexiwear.heart_rate != undefined" >{{hexiwear.heart_rate}} </div></div>–>–>-->
<!--<!–</div>–>-->
<!--<!–</div>–>-->
<!--<!–</div>–>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
</div>
</div>
</body>
</html>