This is the client/companion app, for Stream HR Monitor package. Built for Tizen OS. Supports Wearable 2.4.
Simple server side app for showing your heart rate in a stream made by utilizing WebSockets. Requires Tizen OS smart watch companion app available here and source code here. The server app is written in JavaScript and runs on NodeJS. I know, there would've been better suited technologies for this, but JavaScript is what I know and you gotta take the wins you can.
I've used nexe and UPX to build the release versions available here.
The Stream HR Monitor Watch App communicates to the server side app (this one) via WebSockets. It uses the IP and port set in the app settings to setup WebSocket connection to transmit the heart rate. If you have paired your watch to your app to a smartphone, the smartphone must be in the same local area network as this application. If you haven't paired your smartwatch to a smartphone, the watch must be in the same local area network as this application. The diagram shows how the communication flows if you have paired the watch to a phone which is in a network with the PC.
The Watch connects to this application via WebSocket. When the connection is made, the app starts keeping only the current heart rate in memory. When a web page (for example) is shown on OBS or web browser, it tries to connect to WebSocket server at 127.0.0.1:3001 which is server by Stream HR Monitor.
- Install the companion app into the watch
- Get the latest release of this app from here
- Make sure that your watch is paired to your phone, and that the phone is in same WLAN as your PC.
- Start Stream HR Monitor Server. It will prompt you to set the ports. Defaults are good, if you don't know what you are doing.
- Start the companion app
- Go check your LOCAL IP and put it on the companion app settings. If you don't know how to find your local IP, refer to these articles. Microsoft and Lifehacker
- Set the web page you downloaded from the releases as a source to the streaming software of your choice. For example OBS. Refer to their manuals if you don't know how to do it.
- You should see "WEB PAGE CONNECTED" message in the black box that is the Stream HR Monitor Server
- Click "START" from the Watch App. You should see "WATCH CONNECTED" in the same black box
- Your heart rate should appear in the web page now.
MIT