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

[Feature request] Improve interfacing of alarms between Gadgetbridge and Bangle.js #2795

Open
thyttan opened this issue Jun 3, 2023 · 2 comments
Labels

Comments

@thyttan
Copy link
Collaborator

thyttan commented Jun 3, 2023

Sync alarms from the scheduler library on the bangle so they show up in the device alarms for the bangle device in Gadgetbridge. And vice versa?

How should creating and deleting alarms via Gadgetbridge and on the bangle impact each other? When connected and when disconnected?

BUG: Currently adding an alarm via gadgetbridge and selecting all 7 days of the week sets an alarm on the bangle, but only to be run once - not all days. fixed with #3178

This issue is duplicated on BangleApps repo on github and on Gadgetbridge repo on codeberg.

Also reference #2782 introducing setting alarms and timers via the Bangle.js App Loader. Given that pull request I don't think this issue is time sensitive, punintended.

I think this would be a a nice quality of life improvement though. After I have gotten some feedback on this I'll probably try to tweak this.

@thyttan
Copy link
Collaborator Author

thyttan commented Jun 3, 2023

How should creating and deleting alarms via Gadgetbridge and on the bangle impact each other? When connected and when disconnected?

An example from Huami devices:

  1. GB requests the current alarms state from the watch on connection
  2. Changes done in GB while the device is disconnected are lost when connecting to the watch because of (1)
  3. When an alarm is changed on the watch, a notification is sent to GB if connected to the watch, so the UI in GB gets updated

Would the bangle support 1 (requesting alarms from watch) and/or 3 (notify GB that changes to the alarms were performed on the watch?

Originally posted by @joserebelo in https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3152#issuecomment-928510

@gfwilliams
Copy link
Member

That sounds reasonably doable - it seems like we do something a bit similar for the calendar at the moment, so could use that way of doing things - I think we make the Bangle responsible for sending current timers on connect

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

No branches or pull requests

3 participants