GithubHelp home page GithubHelp logo

isomkevin / bt-heart-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from megaconfidence/bt-heart-monitor

0.0 0.0 0.0 2.21 MB

A web client for bluetooth heart monitoring devices (Built with Web BlueTooth API)

Home Page: https://megaconfidence.github.io/bt-heart-monitor/

License: MIT License

JavaScript 48.22% CSS 27.50% HTML 24.28%

bt-heart-monitor's Introduction

bt-heart-monitor

A web client for Bluetooth heart monitoring devices, built with the Web Bluetooth API.

Screen Recording 2024-01-09 at 2 46 14 PM

Usage

Visit the project's live url with a supported browser. Then, connect a Bluetooth device with heart monitoring capabilities. If you don't have such a device, you can emulate one using your smartphone following the guide below.

Local Project Set Up

This project has zero dependencies and is really easy to set up. A static file server like Python's http.server (shown below) can be used to server the assets.

Run the commands to get up and running:

git clone https://github.com/megaconfidence/bt-heart-monitor.git
cd bt-heart-monitor/
python3 -m http.server 3000

Then visit http://localhost:3000/ in a supported browser.

Set Up A Heart Monitor Emulator

If you don't have a Bluetooth enabled device with heart monitoring capabilities (i.e a smartwatch or fitness tracker with a heart rate sensor), you can set up an emulator using a smartphone. This guide shows you how to do so.

  1. Install the nRF Connect app. It is available for Android and iOS

  2. Allow the required permissions such as device location and nearby devices

  3. From the app menu, go to Configure GATT server, click on the dropdown at the top of the app and select Sample configuration

  1. Using the app menu, head back to Devices, and then switch to the Advertiser tab
  2. Click on the plus button to create a new advertising packet. Give it a Display name (i.e a packet name that's only used in app)
  3. Then click on the Add Record dropdown, select Complete Local Name. This allows your device to be visible with its default Bluetooth name
  4. Click on Add Record again and select Service UUID. With the input, search and select Heart Rate
  5. Back in the config modal, under Options, check Connectable. You'll notice Scannable is auto checked as well
  1. Click on Ok
  2. Click on the switch beside the packet name to turn it ON. You may get a one-time popup to configure the advertisement duration. The defaults are okay, and you can check the Remember for this packet box
  1. Click Ok and you are good to go. You can always turn OFF the emulator by turning OFF the packet and disabling the GATT server from step 3

bt-heart-monitor's People

Contributors

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