-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
136 lines (116 loc) · 4.55 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
<!DOCTYPE html>
<html>
<head>
<script src="js/ymnnjq.js"></script>
<script src="js/eventtarget.js"></script>
<script src="js/monitor.js"></script>
<script src="js/app.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
#debug, #monitorInformation {
font-size: smaller;
}
#debug p {
margin: 0;
}
.right {
float: right;
}
.hidden {
display: none;
}
#configuration {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding-left: 8px;
padding-top: 0.5em;
padding-bottom: 0.5em;
background: #aaa;
}
button#connect {
/*margin-left: 1em;*/
}
button#clear {
margin-right: 1em;
}
#content {
margin-top: 3em;
}
img {
float: left;
width: 64px;
}
#content h1 {
padding-top: 12px;
}
</style>
</head>
<body>
<div id="configuration">
<button id="connect">Connect</button>
<button id="toggle_messages">Toggle message types</button>
<span id="monitorInformation"></span>
<div class="right">
<button id="toggle_instructions">?</button>
<button id="clear">Clear dump</button>
</div>
<div id="messages" class="hidden">
<input type="checkbox" value="multiplexed-information"> multiplexed-information
<br />
<input type="checkbox" value="general-status"> general-status
<input type="checkbox" value="additional-status"> additional-status
<input type="checkbox" value="additional-status2"> additional-status2
<br />
<input type="checkbox" value="stroke-data"> stroke-data
<input type="checkbox" value="additional-stroke-data"> additional-stroke-data
<br />
<input type="checkbox" value="split-interval-data"> split-interval-data
<input type="checkbox" value="additional-split-interval-data"> additional-split-interval-data
<br />
<!-- XXX characteristic not listed in services? -->
<input type="checkbox" value="force-curve-data"> force-curve-data
<input type="checkbox" value="workout-end"> workout-end
</div>
</div>
<div id="content">
<div id="unsupported" class="hidden">
<p><strong>Your browser does not support Web Bluetooth!</strong></p>
<p>This application only runs on Chrome on the desktop.</p>
</div>
<div id="instructions" class="hidden">
<img src="ergarcade-64x64.png" alt="pm5-dump" />
<h1>pm5-dump</h1>
<p>
Collect all information provided by a <a
href="https://www.concept2.com">Concept2</a> Performance
Monitor model 5 (PM5) over the Bluetooth interface and dump as
json below.
</p>
<h2>Requirements</h2>
<ul>
<li>A <a href="https://www.concept2.com">Concept2</a> ergometer - RowErg,
SkiErg or BikeErg;</li>
<li>A <a href="https://www.concept2.com/indoor-rowers/performance-monitors">PM5</a>
performance monitor;</li>
<li>Computer with Bluetooth enabled;</li>
<li>Lastest version of <a href="https://google.com/chrome">Chrome</a></li>
</ul>
<h2>Usage</h2>
<ul>
<li>Enable Bluetooth on computer.</li>
<li>Click the <strong>Connect</strong> button.</li>
<li>Pair the PM5 with Chrome, as requested.</li>
<li>Choose message type(s) to capture.</li>
<li>Wait until the connection is setup; information will start
appearing shortly.</li>
<li>Click the <strong>Disconnect</strong> button when done.</li>
</ul>
<hr />
</div>
<div id="debug">
</div>
</div><!-- content -->
</body>
</html>