1 Star 2 Fork 0

853 / vrchat-osc-miband-hrm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

小米手环/Amazfit 心跳连接至 VRChat OSC

image minasaki

这是什么?

这是一个允许你使用手环通过电脑蓝牙发送心率到 VRChat OSC。

支持的设备?

理论可支持小米手环 4/5/6

操作前提?

  1. 电脑需要蓝牙 4.0 或更高
  2. 拿到小米手环的 Auth key:安装改版 小米运动 APP 或 使用 huami-token 或 通过 ROOT 读取 sqlite 拿取
  3. 打开小米运动,选择要用的手环,打开蓝牙广播和运动心率广播

方法1:安装改版 小米运动 APP

  1. 下载 改版 小米运动 APP 该 APP 出自 https://freemyband.com/
  2. 卸载原版小米运动 APP 并安装改版 小米运动 APP 并登录
  3. 登录后打开你的手机存储目录,找到 freemyband 文件夹,里面有你绑定过的手环 MAC 地址和 Auth key。
  4. 记下 Auth key,然后卸载改版 小米运动 APP 并装回原版 小米运动 APP。

方法2:使用 huami-token

  1. 累了,自己机翻那里面的文档吧,咕了

方法3:通过 ROOT 读取 sqlite

  1. /data/data/com.xiaomi.hm.health/databases/origin_db_[手环编码]复制到电脑上
  2. 拿 SqliteStudio 或 DBeaver 读取 DEVICE 下的 AUTHKEY,也就是select AUTHKEY from DEVICE

操作方法?

  1. server.bat
  2. run.bat
  3. http://127.0.0.1:8088/ 页面下输入你手环的 Auth key,点击连接,选你的小米手环。
  4. 走 VRChat 去.jpg

发送的值?

Heartrate,类型为浮点(Float),范围为 -1(0bpm) 到 1(255bpm)的数据发送到 VRChat OSC。

Heartrate2,类型为浮点(Float),范围为 0(0bpm) 到 1(255bpm)的数据发送到 VRChat OSC,但是该值不适合用于显示心跳值。

Heartrate3,类型为整型(int),范围为 0(0bpm) 到 255(255bpm)的数据发送到 VRChat OSC。

示例 Avatar

Vard 制作了该 Avatar,你可以使用他的 Avatar 来测试:Example_Avatar.unitypackage (该 Avatar 使用了 RED_SIM 的 Simple counter shader 来显示数字)

该 Avatar 使用的值为Heartrate,类型为浮点(Float),范围为 -1(0bpm) 到 1(255bpm)。

参考了以下代码:

Mi Band/Amazfit OSC heart rate monitor for VRChat Mi Band Heartrate

MIT License Copyright (c) 2022 Vard, Sonic853 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用手环通过电脑蓝牙发送心率到 VRChat OSC 展开 收起
JavaScript 等 4 种语言
MIT
取消

发行版 (5)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/Sonic853/vrchat-osc-miband-hrm.git
git@gitee.com:Sonic853/vrchat-osc-miband-hrm.git
Sonic853
vrchat-osc-miband-hrm
vrchat-osc-miband-hrm
master

搜索帮助