Skip to content

A windows Heartrate Monitoring tool, For OBS Broadcasting. Based on Highcharts and HeartRateMonitor.

License

Notifications You must be signed in to change notification settings

soloopooo/HeartRate_Python_OBS

Repository files navigation

Web HeartMonitor on windows.

简体中文文档

Thanks to jlennox/Heartrate.

Running

  1. Install Python 3.10 at python.org if you don't have Python installed.
  2. Clone this repo or Download Zip.
  3. Open /HRMonitor/HeartRate.exe.
  4. Right click, Edit settings xml.
  5. Find <UDP> Things. Fill it with "127.0.0.1:8909", like this:
...
  <HeartRateFile />
  <UDP>127.0.0.1:8909</UDP>
</HeartRateSettingsProtocol>
  1. Run these following command for first time configuration:(Powershell recommended)
cd .\Python_Data_Monitor\
python -m venv .\3104venv\
.\3104venv\Scripts\activate
python -m pip install -r .\PyScripts\requirements.txt
  1. Run Start.bat.
  2. Open http://127.0.0.1:8919.

** Recommend using WebSocket than Js API. **

All Right.

How to make your own visualble html:

Write your html in Pyscripts/www.

Recommend to use websocket, which is ws://127.0.0.1/ws/hr_json.

If you use legacy api mode, The api is http://127.0.0.1:8919/api/hr_json.

You can add js files in Pyscripts/js.

These file will be automatically mounted while the server runs.

Open http://127.0.0.1:8919/{yourhtmlname}.html to see it.

How can I test the web if I don't have a compatible Heartrate device?

Easy.

Instead of running Heartrate.exe, just run test.bat.

It will send random data to UDP port, then run start.bat and open the url.

Gif:

5wec2-ge0kv

Asking for help

Maybe we can use websocket?

Finished...?

Open Source Software used in this software:

  1. HighCharts
  2. jlennox/Heartrate
  3. Reconnecting-websocket

About

A windows Heartrate Monitoring tool, For OBS Broadcasting. Based on Highcharts and HeartRateMonitor.

Resources

License

Stars

Watchers

Forks

Packages

No packages published