8000 GitHub - sedurCode/hrm: Web-Bluetooth Demo: Heart Rate Service
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sedurCode/hrm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Bluetooth Demo: Heart Rate Service

This simple demo uses the Web-Bluetooth library to connect to a device broadcasting a Heart Rate Service characteristic and reads the heart rate.

Live Demo https://xmlking.github.io/hrm/public/

Requirements

Web-Bluetooth is behind an experimental flag in Chrome 45+. Go to chrome://flags/#enable-web-bluetooth to enable the flag. Restart Chrome and you should be good to go.

Experiment with web-bluetooth on the following devices.

  • Linux
  • ChromeOS
  • Android
  • Mac

Any Bluetooth Low Energy Heart Rate Monitor advertising the Heart Rate Service. We used the Polar H7.

Installation

First, fork this repo and then setup and run:

Setup

$ cd hrm
$ openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
# Note that you may get error like: c.context.setKey(options.key);
# in this case you need to remove the pass:
$ openssl rsa -in key.pem -out newkey.pem && mv newkey.pem key.pem
# install 
$ npm install

Run

$ node server.js
$ open https://localhost:3000

About

Web-Bluetooth Demo: Heart Rate Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.7%
  • HTML 26.7%
  • CSS 14.6%
0