Git Product home page Git Product logo

stream-hr-monitor-client's Introduction

Stream HR Monitor client

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.

App architecture

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.

Diagram

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.

How to use

  1. Install the companion app into the watch
  2. Get the latest release of this app from here
  3. Make sure that your watch is paired to your phone, and that the phone is in same WLAN as your PC.
  4. 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.
  5. Start the companion app
  6. 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
  7. 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.
  8. You should see "WEB PAGE CONNECTED" message in the black box that is the Stream HR Monitor Server
  9. Click "START" from the Watch App. You should see "WATCH CONNECTED" in the same black box
  10. Your heart rate should appear in the web page now.

Licence

MIT

stream-hr-monitor-client's People

Contributors

temeasd 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.