Skip to content

Commit

Permalink
mi band 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Vard committed Feb 26, 2022
1 parent b70ae70 commit b21caa7
Show file tree
Hide file tree
Showing 9 changed files with 11,285 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ let vrchatOSC = new osc.UDPPort({
});

vrchatOSC.open();
open('html/index.html');

open('https://vard.space/vrc-osc-hrm/');
console.log("Waiting for connection from browser...");

server.on('connection', ws => {
console.log("Connected. Waiting for data...");
ws.on('message', function message(data) {
Expand Down
12 changes: 8 additions & 4 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<label for="auth-key"
>Auth key
<a
target="_blank"
href="https://github.com/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing"
>what is this?</a
>
target="_blank"
href="https://github.com/vard88508/vrc-osc-miband-hrm"
>GitHub Page</a
>
</label>
</div>
<div class="form-group">
Expand All @@ -33,6 +33,10 @@
<div class="form-group">
<button id="connect-button">Connect</button>
</div>
<a
href="https://vard.space/vrc-osc-hrm2/"
>Use this link for modern devices (like Mi Band 6)</a
>
</div>
<div class="hr d-none">
<h1 id="heartrate">
Expand Down
2 changes: 2 additions & 0 deletions html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ button:hover {
color: #6262ff;
display: inline-block;
float: right;
font-size: 18px;
font-style: bold;
}

.form-group {
Expand Down
785 changes: 785 additions & 0 deletions html2/aes.js

Large diffs are not rendered by default.

7,991 changes: 7,991 additions & 0 deletions html2/bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit b21caa7

Please sign in to comment.