1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-11 11:17:49 +01:00
Commit Graph

12251 Commits

Author SHA1 Message Date
Martin.JM
cc16906d20 Huawei: Fix for sample provider 2024-10-26 20:29:33 +00:00
Arjan Schrijver
d4033dbccb Colmi R0x: Fix HR database timestamps 2024-10-26 22:08:36 +02:00
José Rebelo
ba82de99d3 Garmin: Upload workout fit files 2024-10-26 21:03:58 +01:00
José Rebelo
8b4f1aa1d7 Fix light navbar buttons on light themes for SDK27+
SDK 21 to 27 still needs some work, but we need to review all of this
for the edge-to-edge enforced by Android 15 anyway.
2024-10-26 18:03:32 +01:00
Patrick Rudolph
42b7153162 huawei: Decode TruSleep data in test new functionality
Download TruSleep data and extract ACC and PPG packets.
For now the data is only extracted and provided to an analysis
function that does nothing as printing the data as the TruSleep
algorithm is unknown.

With this patch it's possible to do sleep analysis using open source
algorithms, however it's not clear which one to use and how similar
the results would be. A possible use case would be Sleep as Android.

The extracted data contains of Accelerometer data (ACC) and
photoplethysmogram (PPG) data.

ACC packets:
- about every 60 seconds
- contain a timestamp
- contain the activity on one accelerometer axis
  0x00: no activity
  0xff: high activity (like walking)

PPG packets:
- contain a timestamp
- contain raw PPG samples, each with a 10msec based timestamp

This commit allows more developers and researchers to look into sleep
analysis as they gain access to the raw sleep data optained from the watch.

For issue #3860.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
2024-10-26 16:02:14 +00:00
Martin.JM
ce7b0db5b1 Huawei Sample Provider: Provide a sample every minute
Fixes #4068.
2024-10-26 15:58:12 +00:00
José Rebelo
bbadb2b1ef Garmin: Fix crash on timezones without DST 2024-10-26 16:53:30 +01:00
dependency-bot
8cf6c457ac Update dependency androidx.activity:activity to v1.9.3 2024-10-26 12:04:59 +01:00
dependency-bot
99db21adac Update dependency androidx.fragment:fragment to v1.8.4 2024-10-26 11:04:23 +00:00
José Rebelo
c628ce2c97 Garmin: Fix all-day events
As per the CalendarContract, the begin timestamp corresponds to the UTC
midnight-boundary of the start of the day.

- Remove the redundant logic to truncate the date to the start of day
- Remove the workaround for negative timezones (confirmed not workin
  with some EDT users)
- Ensure birthdays also respect the UTC boundary
- Offset the garmin timestamps by the UTC offset, ensuring they match
  midnight on the user's timezome (fixes all-day events offset by 1 day)
2024-10-26 11:53:20 +01:00
Me7c7
a46e970f84 Huawei: more details for swim workout 2024-10-26 10:41:29 +00:00
Me7c7
3294e20242 Huawei: clear calendar on reconnect. 2024-10-26 11:50:05 +03:00
Me7c7
bc56213eba Huawei: improve texts for file uploads, music icon 2024-10-25 22:39:55 +00:00
Me7c7
3bb44d8050 Huawei: Use default value for channels. Parse sample rates. 2024-10-25 22:39:55 +00:00
Me7c7
d23c931f95 Huawei: device specific fixes. Watch 3 for example 2024-10-25 22:39:55 +00:00
Me7c7
48717aaf42 Huawei: Initial music upload support 2024-10-25 22:39:55 +00:00
dependency-bot
86cb08c0fb Update dependency org.mockito:mockito-core to v5.14.2 2024-10-25 22:38:03 +00:00
Me7c7
b18fb901e6 Huawei: send more user info. Fix issue with weight 2024-10-25 22:16:38 +00:00
Me7c7
e124ac4974 Huawei: fix Send thresholds packet 2024-10-25 22:16:38 +00:00
José Rebelo
22eebf9592 Garmin Fenix 7: Initial support 2024-10-25 18:18:41 +01:00
José Rebelo
9d741a7189 Update changelog 2024-10-24 22:45:05 +01:00
Me7c7
f0c4f0f04a Huawei: fix calendar events update 2024-10-24 18:18:12 +00:00
Arjan Schrijver
b2df6e58f0 Colmi R0x: Improve HR fetching accuracy
Hopefully fixes #4209
2024-10-23 21:35:48 +02:00
José Rebelo
e25757846f Add link to background service troubleshoot page 2024-10-22 22:18:17 +01:00
José Rebelo
69530de0c6 Set changelog version code when restoring zip backup 2024-10-19 21:00:53 +01:00
Me7c7
0e00d74913 Huawei: Fixed workout data parser 2024-10-17 15:36:58 +03:00
Me7c7
d2cf281b00 Huawei: fetch more workout summary from the watch 2024-10-17 10:06:31 +03:00
José Rebelo
9267b4fcf3 Mi Band 9: Fix strength training 2024-10-16 23:43:11 +01:00
José Rebelo
e6dc262a4d Xiaomi-protobuf: Fix some workout type recognition 2024-10-16 23:40:13 +01:00
José Rebelo
e436946bed Sleep charts: Fix empty cells for devices without awake sleep 2024-10-16 23:21:38 +01:00
José Rebelo
2abe7e5b2f Fix weekly and monthly sleep times for devices without awake sleep
The last sleep stage on these is not "awake sleep" and should be
included.
2024-10-16 23:07:41 +01:00
José Rebelo
a0d7c8b77b Huawei: Fix battery notifications 2024-10-16 22:54:40 +01:00
José Rebelo
f0cce348c4 Xiaomi-protobuf: Fix naps 2024-10-16 22:46:19 +01:00
Arjan Schrijver
2618d54f94 Fix crash in LiveActivityFragment that was introduced by 2398dd0fb 2024-10-16 22:18:56 +02:00
José Rebelo
f9f3e8849b Mi Band 9: Fix walk workout parsing 2024-10-16 19:38:15 +01:00
José Rebelo
8714c8461f Fix unit tests 2024-10-15 19:54:00 +01:00
Linos Giannopoulos
f3b4f0ed26 Add device support for the IKEA desk controller
All the required functionality is included:
- Move the desk up and down manually
- See the current height and speed
- Store three desk positions
- Move to any of those desk positions
2024-10-15 18:23:56 +00:00
Arjan Schrijver
25dc3f972b Colmi R0x: Add support for Colmi R10 2024-10-15 18:19:09 +02:00
Arjan Schrijver
2398dd0fbe Limit LiveActivityFragment to just the current device 2024-10-15 11:19:33 +02:00
René Vögeli
ace0aa3ea7 Colmi R0x: Fix big data packet handling 2024-10-14 21:20:26 +00:00
a0z
cb7053e609 Fix margins in body energy and steps fragment 2024-10-14 20:15:51 +00:00
José Rebelo
75024c8a40 Update changelog 2024-10-14 20:35:45 +01:00
Vitaliy Tomin
175f4bf60c huawei: Add new gadget Huawei Watch D2 2024-10-14 18:00:49 +00:00
José Rebelo
b595a1ad96 Huawei Watch Fit 3: Enable emoji 2024-10-13 22:20:02 +01:00
José Rebelo
10a7550232 Garmin: Map some health snapshot fields 2024-10-13 21:28:37 +01:00
José Rebelo
1f4987ab98 Huawei: Enable emoji for HarmonyOS watches 2024-10-13 19:01:14 +00:00
Me7c7
80967ce42b Huawei: fix pace update when more than one packets received 2024-10-13 19:01:03 +00:00
Me7c7
0e6a3e13cc Huawei: specify pace order 2024-10-13 19:01:03 +00:00
Me7c7
15f550d5a8 Huawei: Show pace summery before table. More summary. 2024-10-13 19:01:03 +00:00
Me7c7
af64ff3a79 Huawei: fix workouts pace 2024-10-13 19:01:03 +00:00