-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (48 loc) · 2.06 KB
/
Copy pathindex.html
File metadata and controls
55 lines (48 loc) · 2.06 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PM5 HID Monitor</title>
<script src="js/pm5hid.js"></script>
<script src="js/pm5hid-fields.js"></script>
<script src="js/app.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>PM5 HID Monitor</h1>
<div id="controls">
<button id="connect">Connect</button>
<button id="toggle-instructions" class="secondary">Show instructions</button>
<span id="monitor-information"></span>
</div>
</header>
<main>
<div id="instruction-text" class="hidden">
<p>
This application connects to a
<a target="_blank" href="https://www.concept2.com/indoor-rowers/performance-monitors">Concept2
PM5</a> monitor over USB and displays live workout data using the
<a target="_blank" href="https://developer.chrome.com/docs/capabilities/hid">Web HID API</a>.
</p>
<h2>Requirements</h2>
<ul>
<li>Chrome or Edge — Web HID is not supported in Firefox or Safari</li>
<li>PM5 connected via USB</li>
</ul>
<h2>Usage</h2>
<ul>
<li>Connect the PM5 to your computer via USB.</li>
<li>Click <strong>Connect</strong> and select the PM5 from the browser's device picker.</li>
<li>Set up a workout on the PM5. Start rowing, skiing, or biking. Watch the numbers change.</li>
<li>Click any field to highlight it.</li>
</ul>
<p>
<a target="_blank" href="https://github.com/ergarcade/pm5-hid">Source on GitHub</a>.
</p>
</div>
<div id="notifications"></div>
</main>
</body>
</html>