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

Usage with Gadgetbridge? #4

Open
hpmueller1971 opened this issue May 18, 2023 · 2 comments
Open

Usage with Gadgetbridge? #4

hpmueller1971 opened this issue May 18, 2023 · 2 comments

Comments

@hpmueller1971
Copy link

Hi,

the Bangles.js flavor of Gadgetbridge supports APIs for Intents and even full network access as well as limited app-management for the Mi Band 7 (all Gadgetbridge flavors). Is it feasible to make ha-zepp work with Gadgetbridge...?

/hp

@ga2mer
Copy link
Owner

ga2mer commented May 18, 2023

Judging by the Gadgetbridge code, it can't be done at the moment

Maybe there will be support for intents in the future, but most likely this will require a separate application on the phone to set up the integration and communication with the mi band

@joserebelo
Copy link

Judging by the Gadgetbridge code, it can't be done at the moment

Yes, but I've been looking into this :)

We should not need a separate application - Gadgetbridge already communicates with the band, we just need to add support for the app-side <-> band protocol, and the settings page on the phone.

I have a very WIP branch on Gadgetbridge that manages to:

  • Bootstrap a webview with the app-side from ha-zepp
  • Handle requests from the watch and forward them to the app-side

But it is still an early work in progress - I am having issues with the fetch requests, the app-side always gets a null body somehow.

In the future, it should even be possible to trigger Intents and other things from the app-side javascript code, through custom integrations with Gadgetbridge.

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

No branches or pull requests

3 participants