This is for use with Polar H10
pip install -r requirements.txtpython ./getDevice.py- Take note of the MAC ADDRESS of your heart rate monitor.
- Open
heart.py- Replace line 18
ADDRESSwith the mac address fromgetDevice.py - In
data_callbackyou can replace theparameterwith however your avi is using parameters. Usually it will be/avatar/parameter/{field}. - Choose your
upper_bound. I chose 180 bpm as my upper bound. Its divisible by 60 which works better for unity. You need to have floats that are less than 1 but greater than 0 to pass over to OSC. - To debug and make sure its running uncomment
line 88. - To Exit spam
ctrl + c. I don't know how to do a graceful exit and my shutdown method does not work. - Use
python ./heart.pyto run the OSC. To start you may have to run it a few times. Make sure you have your hr monitor on. If you don't see it ingetDevicesthen something is wrong with your bluetooth or the monitor. - Start VRChat, be opted into the OSC beta (if during the open beta) and turn on OSC in the quick menu.
- Replace line 18
This SHOULD work.