Coder Social home page Coder Social logo

resonite-ws-miband-hrm's Introduction

Resonite Websocket Miband HRM

This is a super rudimentary adapter to connect a ProtoFlux websocket client (or any websocket client really) to a heartbeat tracking wristband I quickly whipped together to help a user on Resonite.

It's based on https://vard88508.github.io/vrc-osc-miband-hrm/, which implements a browser interface that connects to the wristband via Bluetooth and then connects to the vrc-osc-hrm.exe via websocket, which forwards the messages as OSC to VRChat. This script basically replaces that executable, so the website talks directly to the relay script, which will forward all messages it receives to every connected websocket client.

How to use

  1. Install required package with pip (pip install websockets)
  2. Launch this script (python -m ./server.py)
  3. Open https://vard88508.github.io/vrc-osc-miband-hrm/html/ in your browser, it should automatically connect to the relay (on ws://localhost:3228)
  4. Connect your heartrate monitor (Follow instructions https://vard88508.github.io/vrc-osc-miband-hrm/#usage, just launch this script instead of the vrc-osc-hrm.exe)
  5. Connect a compatible websocket client (for example implemented in ProtoFlux for Resonite) to ws://localhost:3229

That's it! The websocket client should now receive every message sent by the heartbeat tracking wristband. If you filter out everything that's not an integer, you now have the BPM readings to do whatever you want with!

resonite-ws-miband-hrm's People

Contributors

jackthefoxotter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.