Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not connect to the browser #8

Open
sanja181 opened this issue Jul 30, 2020 · 3 comments
Open

Does not connect to the browser #8

sanja181 opened this issue Jul 30, 2020 · 3 comments
Labels
question Further information is requested

Comments

@sanja181
Copy link

Hey, thank u for this great Work.

I have a problem. the MIBAND does not connect to the browser. The field for connecting does not appear.

The following is output.

...This browser doesn't support bluetooth web API

I have already selected and allowed all authorizations for Chrome.

The server runs over NodeJs

@ojoanalogo
Copy link
Owner

Hello, may I ask which Chrome version are you using?

To get this information, go to chrome://settings/help and copy the Version field.

@ojoanalogo ojoanalogo added the question Further information is requested label Jul 30, 2020
@sanja181
Copy link
Author

sanja181 commented Aug 2, 2020

Version 84.0.4147.105 (Offizieller Build) (64-Bit)

That is my Version ....

@ojoanalogo
Copy link
Owner

ojoanalogo commented Aug 2, 2020

Version 84.0.4147.105 (Offizieller Build) (64-Bit)

That is my Version ....

Hello @sanja181, to be able to collect data from your MiBand 2 follow these steps:

  1. Make sure your Laptop has Bluetooth enabled
  2. Go to chrome://flags and lookup for the #enable-experimental-web-platform-features preference and enable it (available in macOS, Linux and Windows 10+)
  3. Restart your browser
  4. Open the MiBand official app and unpair the device, if you are not sure how to do this please refer to the next link: How to 5. Unpair Xiaomi MiBand 2 (this has to be done to get the smart band visible in Bluetooth devices)
  5. Run the project with npm run dev and press the "Start" button
  6. Your MiBand should appear on the device list.

Please be aware that this code only works with a MiBand 2, I tried to use it with a newer MiBand (version 4) and while I was able to link it to the browser, no data was available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants