1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-16 10:00:08 +02:00
Commit Graph

34 Commits

Author SHA1 Message Date
José Rebelo
7512147c34 Huami: Display native alarm notification 2022-07-05 19:57:13 +02:00
dakhnod
4a8523f790 multi-device-support (#2526)
this PR aims to add device for multiple connected devices at once.

A lot of stuff already works, some things need to be done:

- [x] change DeviceCommunicationService to hold multiple devices and supports
- [x] implement connect / disconnect logic
- [x] widgets, not really suited for multiple devices, so far
- [x] change the notification to show multiple devices
- [ ] change GBDeviceService#onFindDevice and similar API functions to target individual devices, not all connected.
- [x] move auto-reconnect setting to device settings
- [x] fix music event crash
- [x] work out behaviour when pressing "connect" from notification
- [ ] handle service crashes
- [ ] suit coordinator methods for multiple devices of same kind
- [x] change ACL_CONNECTED receiver to connect to devices that are not currently registered in DeviceCommunicationService
- [ ] adjust after-boot auto-connection logic
- [ ] fix hanging device support. Device says disconnected, GB says connected
- [x] firmware updater doesn't work

My attempt to make onFindDevice work was to change the arguments to ```EventHandler#onFindDevice(GBDevice device, boolean start)```.
The Problem is that this forces the device-specific implementations to also accept GBDevice as an argument.

Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: dakhnod <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-06-14 18:05:41 +02:00
Andreas Shimokawa
92ce748202 Amazfit Bip S: Whitelist 2.1.1.72 and 2.1.1.76 firmware 2021-09-15 10:06:48 +02:00
Andreas Shimokawa
5765407366 Amazfit Bip S: support flashing of new AGPS files with UIHH header
We do not know how to generate them yet.
But it was confirmed working with a file we reconstructed from a bluetooth hci dump
2021-05-11 12:10:40 +02:00
beardhatcode
32a6049207 huami: send windspeed in beaufort (#2247)
fixup! huamni: send windspeed in beaufort

BipS: send windspeed as km/h

huami: Always send sunrise and sunset

There is no need to look at send_sunrise_sunset, this is peble spesific
because it could be annoying on that platform (an extra line in the
timeline). On huami devices, the watchface desides what to show.

Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>

Mi5: set supportsSunriseSunsetWindHumidity to true

Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>

huamni: send windspeed in beaufort

Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>

Co-authored-by: Robbert Gurdeep Singh <git@beardhatcode.be>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2247
Co-Authored-By: beardhatcode <beardhatcode@noreply.codeberg.org>
Co-Committed-By: beardhatcode <beardhatcode@noreply.codeberg.org>
2021-04-21 17:12:20 +02:00
Andreas Shimokawa
a234c1d527 Amazfit Neo: Fix setting menu items
- Fixes a bug with cycling through entries
- adds steps, distance, calories, battery
- removes world clock (does not seem to work)
2021-03-24 00:44:13 +01:00
License Bot
1b5402dcb4 update license headers 2021-01-10 23:38:13 +01:00
Andreas Shimokawa
c896e476f4 Amazfit GTR2: Try to fix incoming calls blindly 2021-01-06 16:29:11 +01:00
Andreas Shimokawa
9d6f9f7d57 Huami: Unify menu id lookup tables and simplify code 2020-11-10 21:56:00 +01:00
Andreas Shimokawa
1224cfeffc Amazfit Bip S: unify shortcuts code with display items code 2020-10-28 00:12:37 +01:00
Andreas Shimokawa
50f99a5b59 Amazfit Bip S Lite: add new device type for the lite variant
See #2055
2020-10-27 12:56:27 +01:00
Andreas Shimokawa
4131f19f8d Amazfit Band 5: Allow setting Sp=2
Also unify code to set display items on newer devices
2020-10-21 20:03:26 +02:00
Andreas Shimokawa
f4115fa617 Amazfit Bip S: Also send wind and humidity
Does not work with most weather sources, but it is better to send something to remove garbled characters
2020-09-30 18:47:19 +02:00
Andreas Shimokawa
1337644a14 Amazfit Bip S: Send sunrise and sunset on latest firmware if enabled
This still has to be enabled in Pebble settings..... :/
2020-09-30 18:16:25 +02:00
Andreas Shimokawa
5bdee2c130 Amazfit Bip S: Fix firmware flashing on DTH variant with firmware 4.1.5.55 2020-09-29 21:58:13 +02:00
Andreas Shimokawa
247366bf9d Amazfit Bip S: Implement new Firmware update mechanism introduced with Firmware 2.1.1.50
This is probably mandatory for other devices now also!
2020-09-28 12:05:09 +02:00
Andreas Shimokawa
8087390336 Huami: recoginze GPS firmware 19439,3aa3392,135 and whitelist it for Bip S 2020-09-27 12:07:52 +02:00
Andreas Shimokawa
4da74e7375 Amazfit Bip S: Whitelist 2.1.1.46 2020-09-13 19:26:23 +02:00
Andreas Shimokawa
d5cdf21154 Amazfit Bip S: allow flashing gps almanac (only cep worked before) 2020-09-07 22:57:18 +02:00
Andreas Shimokawa
faef4fd92f Amazfit Bip S: fix flashing some font files 2020-09-03 23:09:00 +02:00
Andreas Shimokawa
66f2eb8479 Amazfit Bip S: whitelist firmware 2.1.1.26 and 2.1.1.36 2020-08-03 22:42:07 +02:00
Andreas Shimokawa
f460f6abd1 Amazfit Bip S: Change Unknown menu item to "World Clock"
Latest firmware has a world clock, setting the locations is not yet supported by Gadgetbridge
2020-07-21 17:13:23 +02:00
Andreas Shimokawa
425bf48df5 Amazfit Bip S: whitelist fw 2.1.1.16 2020-06-29 16:36:16 +02:00
Andreas Shimokawa
c1b6f5f4f5 Amazfit Bip S: fix installation of latest res (96) 2020-06-29 00:17:23 +02:00
Andreas Shimokawa
6b20f62e0f Huami: Use music control code from Bip S for all devices
needs testing and cleanup for all devices
2020-06-22 18:06:40 +02:00
Zhong Jianxin
c3a9cf858e Amazfit Bip S: Allow longer notification message 2020-06-16 13:41:26 +08:00
Andreas Shimokawa
8400568aed Amazfit Bip S: support flashing GPS firmware, whitelist tonlesap 2.1.1.08 firmware, res, gps, font 2020-06-12 16:58:02 +02:00
Andreas Shimokawa
1f8826329c Amazfit Bip S: For firmware update distinguish dth and tonlesap variants
This is done by comparing the firmware version (2 assumed for tonlesap, 4 for dth)

This could have been done properly by comparing the hardware revision, but there are so many hardware revisions during a huami device lifecycle, we could not catch up.
2020-06-12 16:14:35 +02:00
Andreas Shimokawa
99b7764709 Amazfit Bip S: Support flashing firmware and res 2020-06-11 19:24:45 +02:00
Andreas Shimokawa
25c749bab9 Amazfit Bip S: Support flashing fonts and setting high MTU 2020-06-11 13:29:41 +02:00
Andreas Shimokawa
8e08a9d660 Support flashing newer GPS ALM and support flashing GPS CEP on Bip S 2020-06-11 12:16:57 +02:00
Andreas Shimokawa
2f8634ce66 Shamelessly assume Bip S is using one of the newer fireware install code 2020-06-08 16:43:39 +02:00
Andreas Shimokawa
7d0243e61d move Bip S file 2020-06-08 16:38:03 +02:00
Andreas Shimokawa
4326419209 Amazfit Bip S: allow flashing watchfaces (untested, and probably wont work) 2020-06-08 16:36:54 +02:00