1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00
Commit Graph

11445 Commits

Author SHA1 Message Date
a0z
a11f6871cd Respiratory rate: fix strings, margins, missing data on chart 2024-12-01 13:06:25 +00:00
a0z
9ae56ae88c Respiratory rate: init 2024-12-01 13:06:25 +00:00
Me7c7
7edb1f5941 Huawei: Added selecting for more than one item for music management 2024-12-01 13:03:23 +00:00
AndrewP
16a8efb7ee More workout types and parser for rowing and for treadmill 2024-12-01 13:00:43 +00:00
AndrewP
b5edfd8c17 A few additions and changes for Xiaomi Workouts 2024-12-01 13:00:43 +00:00
Benjamin Swartley
4f30648886 Fossil/Skagen Gen. 6 Hybrids: Add SpO2 Support 2024-11-30 15:45:45 -05:00
gjaekel
b3f29d16b3 Add support for XIAOMI Smart Band 9 Pro (MiBand9Pro) (#4363)
Co-authored-by: gjaekel <gjaekel@noreply.codeberg.org>
Co-committed-by: gjaekel <gjaekel@noreply.codeberg.org>
2024-11-29 22:24:52 +00:00
Martin.JM
55014fd13a Huawei: Fix notifications for Huawei Band 3 pro 2024-11-29 13:37:54 +01:00
Jonathan Gobbo
287a759e28 Add support for Redmi Buds 5 Pro (#4343)
This PR introduces support for the Redmi Buds 5 Pro earbuds.

Working:

- Connection and authentication;
- Firmware version;
- Battery percentage;
- Switching between ANC/Transparency/OFF, their relative strength settings and Adaptive ANC toggle;
- Configuring all touch options;
- Ear detection play/pause, Auto call answer, Double connection, Adaptive sound settings toggles;
- Equalizer presets and custom curve;

Not working:

- Personalized ANC (code for toggle is present but commented-out, as the logic for ear calibration is missing);
- Spatial Audio
- Find my earbuds
- Firmware Update

Closes #3566

Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/4343
Co-authored-by: Jonathan Gobbo <jonathangobbo@outlook.it>
Co-committed-by: Jonathan Gobbo <jonathangobbo@outlook.it>
2024-11-28 18:16:17 +00:00
José Rebelo
9270bd9003 Oppo Enco Air2: Initial support 2024-11-27 22:43:42 +00:00
José Rebelo
93ed525a93 Garmin: Map missing realtime settings phone icon 2024-11-27 22:31:57 +00:00
Me7c7
f9d157ad51 Huawei: Allow more languages to be set on the watch 2024-11-27 19:20:19 +02:00
Me7c7
5a025d8d99 Huawei: Display maximum oxygen uptake if available 2024-11-26 21:54:02 +00:00
Me7c7
7b8f02ec29 Huawei: Collect and process more workout data: HRZones, RunPaceZones 2024-11-26 21:54:02 +00:00
Martin.JM
48a6e1aa95 Huawei: Fix for encrypted file downloads
Necessary for the Huawei Band 3 Pro GPS download.
2024-11-26 21:39:14 +00:00
Martin.JM
5e62bd3cc6 Huawei: Mark downloaded GPS file as complete only after parsing
Otherwise the icon does not show up in the workout list properly at
first.
2024-11-26 21:39:14 +00:00
Martin.JM
8746577c4e Huawei: Split off SyncState 2024-11-26 21:39:14 +00:00
Martin.JM
9970a37df3 Huawei: Use queue for downloading activity data
This also makes the sync button download both the activity and workout
data.
2024-11-26 21:39:14 +00:00
Martin.JM
3562eb69d0 Huawei: Add P2P to SyncState 2024-11-26 21:39:14 +00:00
Martin.JM
8bfbc07a45 Huawei: Cleanup of the HuaweiSupportProvider
Removes a lot of duplicate TODOs that mostly clutter the overview.

Also includes a couple of changes to please the linter.
2024-11-26 21:39:14 +00:00
José Rebelo
ee8eeaf16f Garmin: Improve logging if notification picture is not found 2024-11-26 21:28:08 +00:00
Me7c7
fab6a7bc7f Huawei: Fix encryption logic for files upload 2024-11-26 19:03:01 +02:00
José Rebelo
c687496cc5 Garmin: Send notification pictures 2024-11-25 18:16:11 +00:00
José Rebelo
ef3509446e Zepp OS: Remove notification picture paths on notification delete 2024-11-25 18:16:09 +00:00
Daniele Gobbetti
b70c2af117 Garmin: initial plumbing for notifications' images (blind implementation)
This commit adds the signaling of notifications with images to the watch.
According to https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3469 the watch should followup with a protobuf request "MediaRequest".
The protobuf is documented in https://gadgetbridge.org/internals/specifics/garmin-protocol/#mediarequest

As examples and only intended to help further developments, two new methods getNotificationAttachmentPath and getNotificationAttachmentBitmap are added to GarminSupport
2024-11-25 18:16:07 +00:00
José Rebelo
4cf076b3fa Fix edge case where chart tabs were reset to single value on debug build 2024-11-24 21:33:36 +00:00
Arjan Schrijver
6f8fbd9b3c Add buttons to DebugActivity for Welcome and Permissions 2024-11-24 21:14:23 +01:00
Arjan Schrijver
765e6950dc Add preference migration for existing users 2024-11-24 21:14:23 +01:00
Arjan Schrijver
fc4fea35cd Scroll Notification and Overlay permissions screens to GB automatically 2024-11-24 21:14:22 +01:00
Arjan Schrijver
77d0d545c8 Make strings translatable 2024-11-24 21:14:22 +01:00
Arjan Schrijver
11f38aff15 Remove option to start first run screens from preferences 2024-11-24 21:14:22 +01:00
Arjan Schrijver
79a846a907 Add theme selector to first screen 2024-11-24 21:14:22 +01:00
Arjan Schrijver
20d6c87dd8 Improve background location permission request flow 2024-11-24 21:14:22 +01:00
Arjan Schrijver
20eb4bc922 Fix permissions list left margin 2024-11-24 21:14:22 +01:00
Arjan Schrijver
5a3bc94f86 Hide Permissions title when action bar is visible 2024-11-24 21:14:22 +01:00
Arjan Schrijver
b3b665ab6c Actually improve requesting all permissions 2024-11-24 21:14:22 +01:00
Arjan Schrijver
2422e02e5d Improve requesting all permissions 2024-11-24 21:14:22 +01:00
Arjan Schrijver
a889f671d7 Improve permissions descriptions 2024-11-24 21:14:22 +01:00
Arjan Schrijver
4c86c275f8 Fix missing permission request buttons 2024-11-24 21:14:22 +01:00
Arjan Schrijver
13c8061507 Add back permission explanation dialogs 2024-11-24 21:14:22 +01:00
Arjan Schrijver
1d330b2788 Improve "works locally" wording 2024-11-24 21:14:22 +01:00
Arjan Schrijver
a2e6009623 Make strings translatable 2024-11-24 21:14:22 +01:00
Arjan Schrijver
83b532e16e Reorder intro screen and use correct app_name 2024-11-24 21:14:22 +01:00
Arjan Schrijver
32c92c3533 Add First Start screens with permissions screen 2024-11-24 21:14:22 +01:00
José Rebelo
c52fd53ebd Garmin: Persist sleep score 2024-11-24 19:44:18 +00:00
José Rebelo
5531ddc49a Restore sleep balance on weekly and monthly charts 2024-11-24 18:36:20 +00:00
AndrewP
b2b79c99cd Workouts Freestyle and OutdoorWalkingV2 for Xiaomi Smart Band 8 Active 2024-11-24 17:15:05 +00:00
José Rebelo
e54b7959a4 Calories: Cleanup and fix some inconsistencies 2024-11-24 16:55:25 +00:00
a0z
27c4cc95c9 Calories: remove total goal 2024-11-24 16:50:51 +00:00
José Rebelo
3ad2e827c2 Calories: Fix some crashes 2024-11-24 16:50:51 +00:00
José Rebelo
df138e9c79 Add DefaultRestingMetabolicRateProvider 2024-11-24 16:50:51 +00:00
a0z
37ea9bc571 Calories: fix loading lag, gap 2024-11-24 16:50:51 +00:00
a0z
622d37ed38 Calories: add fragment 2024-11-24 16:50:51 +00:00
José Rebelo
60ab38db57 Garmin: Resting metabolic rate 2024-11-24 16:50:51 +00:00
Martin.JM
78d6ad3a1f Huawei: Fix some linter warnings 2024-11-24 13:41:58 +01:00
Martin.JM
c5a5cd1649 Huawei: Send weather error if there is no data
This will hopefully reduce the number of requests from the watches if
there is no weather data available.
2024-11-24 13:41:53 +01:00
José Rebelo
4d5141c765 Zepp OS: Fix TGA id 2024-11-23 23:40:24 +00:00
José Rebelo
9174d95894 Zepp OS: Send notification pictures 2024-11-23 22:04:42 +00:00
Daniele Gobbetti
4aa145560a Add support for picture attachments in notifications
Also adds a local cache for pictures which is handled by the NotificationListener itself.

If the picture is hosted in a third party content provider it gets queried.
If the Bitmap is embedded in the notification, the local cache is used.

In any case the NotificationSpec just holds a String to the absolute file path
2024-11-23 21:15:47 +00:00
José Rebelo
7aa7de6463 Colmi R0x: Remove all background tasks on dispose
Somehow, the tasks were not being fully removed on dispose, which would
result in a crash. I am not able to reproduce the issue reliably, but
removing all the background tasks on dispose should fix the issue.
2024-11-21 22:52:04 +00:00
cdvrs
16aed1364b GBX-100: Fix notification title 2024-11-20 08:17:56 +00:00
Renato Aguiar
212289645f Add Garmin Instinct 2 2024-11-19 20:59:05 +00:00
José Rebelo
6b5c5ae0ac Garmin: Fix weather temperature conversion to celsius 2024-11-19 20:57:04 +00:00
José Rebelo
9d1a57b6c2 Fix crash in some chart pages (#4319) 2024-11-19 20:53:34 +00:00
MrYoranimo
b5bd4da9b1 Xiaomi SPPv2: Catch exception thrown in onPacketReceived
When a received packet causes an exception to be thrown while
getting handled in the service's onPacketReceived method, the
message will get stuck in the queue because it is never released.
Subsequently received messages get lined up after the first message
that causes an exception, and since that message is never removed,
those newer messages are never processed.

Catching the exception thrown from within the onPacketReceived method
allows the code flow to continue and therefore remove the troubling
message from the queue.
2024-11-18 23:25:28 +01:00
José Rebelo
1d2404a4e6 Garmin: Display AGPS age 2024-11-17 19:00:00 +00:00
Martin.JM
39e7bd8c62 Huawei: Add non-P2P HR zones configuration 2024-11-17 17:57:30 +00:00
José Rebelo
5f91715c89 Realme Buds T110: Initial support 2024-11-17 17:23:23 +00:00
José Rebelo
1618fda418 Log exceptions during DBAccess async tasks 2024-11-17 00:01:40 +00:00
José Rebelo
e453855e88 Do not suppress repeated notifications if timestamp is in the future (#4327) 2024-11-16 21:46:22 +00:00
Me7c7
dc1533b4ed Huawei: Initial music managment support 2024-11-16 20:41:23 +00:00
José Rebelo
1a3a7dec05 Prevent heart rate average from using invalid samples 2024-11-16 14:08:06 +00:00
José Rebelo
87bc2e6ed7 Fix imperial unit on steps charts 2024-11-15 23:16:40 +00:00
CaptKentish
9bd828814e Add water sports icons (#4322) 2024-11-15 22:09:44 +00:00
huyz
6aa7280967 Add some workout icons 2024-11-14 23:25:28 +00:00
José Rebelo
f16e2eeabb Test device: Add dummy activities 2024-11-14 23:22:18 +00:00
José Rebelo
9b6fce566d Mi Band 9: Fix outdoor cycling parsing 2024-11-12 23:32:11 +00:00
Andreas Shimokawa
de37e5b6fd bump version, add xml changelog 2024-11-11 23:29:47 +01:00
mvn23
31b8fd683d Add wear sensor toggle to Bowers and Wilkins P Series 2024-11-11 02:15:41 +01:00
José Rebelo
82f221752e Compute activity average speed 2024-11-10 22:50:58 +00:00
José Rebelo
810df3055c Garmin Forerunner 55/620: Initial support 2024-11-10 22:33:48 +00:00
José Rebelo
a72de07d2a Oppo Enco Air: Initial support 2024-11-10 22:18:41 +00:00
José Rebelo
7a0e43a4de GBDevice: Do not unset firmware from dynamic state
It is not clear why this was being done, but it is the source of issues
for multiple devices, since the ensureDeviceUpToDate function will
attempt to persist the null values, in non-nullable columns.
2024-11-10 22:16:14 +00:00
Me7c7
ce32ac7272 Huawei: Do not print exception if the ephemeris file does not exist 2024-11-09 20:04:55 +02:00
Martin.JM
2a865fe498 Huawei: Fix SmartAlarm for Huawei Watch GT
Linked to #4308.
2024-11-09 17:58:46 +00:00
Alik Aslanyan
f3185f1acb
Fix null elements for some mixed case words in Armenian (combinations with U and Vo) 2024-11-09 20:23:57 +04:00
mvn23
6bb93bef89 Add ANC and Passthrough options to Bowers and Wilkins P Series (#4297)
Co-authored-by: mvn23 <schopdiedwaas@gmail.com>
Co-committed-by: mvn23 <schopdiedwaas@gmail.com>
2024-11-09 15:29:44 +00:00
gjaekel
7c1d44fcd3 Add support for HUAWEI Band3Pro (#4296)
Co-authored-by: gjaekel <gjaekel@noreply.codeberg.org>
Co-committed-by: gjaekel <gjaekel@noreply.codeberg.org>
2024-11-09 15:20:48 +00:00
José Rebelo
a2323ce845 Withings: Fix crash on connection 2024-11-09 08:16:12 +00:00
Arjan Schrijver
5a0f1e46db Garmin Fenix 6S Pro: Initial support 2024-11-08 09:11:47 +01:00
Martin.JM
126102aa05 Add tests and a couple of fixes 2024-11-05 23:43:41 +00:00
Martin.JM
f0ffc0e165 Add high res HR to activity sleep chart fragment 2024-11-05 23:43:41 +00:00
Martin.JM
82e3a86350 Implement high res HR data
Specifically for:
- The HR fragment
- The sports activity graph

Also adds support for Huawei high res HR, and high res SpO2.
2024-11-05 23:43:41 +00:00
Me7c7
ae84678de8 Huawei: Sync dict data over P2P. Sync skin temperature. 2024-11-05 23:42:19 +00:00
huyz
68caf6a60f Huawei: map activity type 14 to hiking activity 2024-11-04 21:26:31 +08:00
mvn23
d53971c881 Add initial Bowers and Wilkins P series support. (#4288)
Co-authored-by: mvn23 <schopdiedwaas@gmail.com>
Co-committed-by: mvn23 <schopdiedwaas@gmail.com>
2024-11-01 21:06:34 +00:00
José Rebelo
46dd45cb4e Garmin Forerunner 235: Initial support 2024-10-31 23:47:20 +00:00
Me7c7
a7c19c8190 Huawei: calculate HR Zones for walking and running workouts. 2024-10-31 23:14:04 +00:00
Thomas Di Cristofaro
d038c589c1
Translated using Weblate (Italian)
Currently translated at 100.0% (3295 of 3295 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/it/
2024-10-31 14:40:21 +01:00
Fjuro
8df3dac11c
Translated using Weblate (Czech)
Currently translated at 100.0% (3295 of 3295 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/cs/
2024-10-31 14:18:19 +01:00