José Rebelo
db4349bfc9
Huami: Display fetch operation description
2023-07-22 20:27:20 +01:00
José Rebelo
525f1567c1
Huami: Prevent activity data fetch if there is no data to fetch
...
More information in #3201
Fixes #3196
2023-07-12 23:21:56 +01:00
José Rebelo
ccfc112e2b
Huami: Persist workout raw details even if gpx has no points
2023-07-12 23:18:31 +01:00
José Rebelo
fad7fa395b
Zepp OS: Show watchfaces in app management
2023-06-15 22:04:01 +01:00
José Rebelo
853470a2bd
Revert "Zepp OS: Unify support class and fw handling"
...
This reverts commit d59e8c3f62
.
We need to refactor the Huami classes too, otherwise this needs a lot of
hacks to work properly.
2023-06-15 21:39:22 +01:00
José Rebelo
d59e8c3f62
Zepp OS: Unify support class and fw handling
2023-06-15 20:50:15 +01:00
José Rebelo
74dac3f5cd
Huami 2021: Handle chunked ACKs
2023-06-14 15:45:49 +00:00
Damien Gaignon
be575af314
Add BTBR service
2023-06-13 12:06:13 +00:00
José Rebelo
9e09fe15bf
Huami: Fix stress sample timestamp increment
2023-06-12 08:58:10 +01:00
José Rebelo
594a611065
Zepp OS: Fix update operations on Zepp OS 2.1+
2023-06-08 13:36:53 +01:00
José Rebelo
ed3ce6fa9d
Huami: Fix stress timestamp off by 1 minute
2023-06-02 23:31:47 +01:00
José Rebelo
7e15462593
Huami: Migrate activity fetching to repeated fetch operation
2023-05-29 20:11:42 +01:00
José Rebelo
e55a35eced
Huami: Persist sleep respiratory rate data
2023-05-27 19:03:43 +01:00
José Rebelo
a1e07b5d1b
Huami: Persist PAI samples
2023-05-27 19:02:01 +01:00
José Rebelo
24f78655c2
Huami: Persist heart rate max, resting and manual samples
2023-05-27 18:59:12 +01:00
José Rebelo
9d966c8179
Huami: Add max HR fetch operation (no db persistence)
2023-05-23 22:35:24 +01:00
José Rebelo
c79a833bbf
Huami: Add PAI fetch operation (no db persistence)
2023-05-23 22:25:58 +01:00
José Rebelo
733e5dd290
Huami: Map UTC offset in HR and respiratory rate fetch operations
2023-05-23 00:05:03 +01:00
José Rebelo
3f87bfadd4
Huami: Add queued fetch operations
2023-05-22 22:15:35 +00:00
José Rebelo
23e9a3deb1
Huami: Persist stress and SpO2 data
2023-05-22 22:15:35 +00:00
José Rebelo
3a5d5dfbb0
Huami: Add sleep respiratory rate fetch operation (no db persistence)
2023-05-21 21:14:29 +01:00
José Rebelo
f68e4c865b
Huami: Add stress, SpO2, heart rate fetch operations (no db persistence)
...
Introduce a reusable abstract logic for repeated fetch operations.
Add fetch operations for the following:
- Stress (manual and automatic)
- SpO2 (normal and sleep)
- Heart rate (manual and resting)
2023-05-17 21:56:54 +01:00
José Rebelo
94c7b43ad4
Zepp OS: Map known watchfaces to human-readable names
2023-04-26 09:51:14 +01:00
Oleg Vasilev
007f070125
huami: implement repeated activity fetching
...
Currently, huami only attempts to fetch activities once.
Since sports activity fetching creates an Operation twice per every fetch, we
need to pass around fetchCount variable to keep track of how many fetches has
occured.
Tested on my Amazfit GTR 4.
Signed-off-by: Oleg Vasilev <me@svin.in>
2023-03-11 15:02:00 +00:00
José Rebelo
cd59511aad
Zepp OS: Refactor config, fix health on GTR 3 and GTS 3
...
The config refactor in addf7ff6a
broke health settings on GTR3 and GTS3
- GTS 3 and GTR 3 health configs use protocol v1. The only difference
seems to be that the steps goal is a SHORT instead of an INT.
- It needs a refactoring from the ground up to better handle different
versions, but this is enough to get the GTR 3 and GTS 3 working.
2022-10-29 14:17:40 +01:00
José Rebelo
bc2d5aa16d
Zepp OS: Change default fetch operation time unit resolution to minutes
...
Reverts the default behavior introduced by 1335f0bd8
since it was
causing issues on the GTR 3, but keeps it optional as a developer
option.
2022-10-27 23:51:02 +01:00
José Rebelo
1335f0bd86
Zepp OS: Fix fetching workouts shorter than 1 minute
...
Since GB would always round down the time precision to the minute,
workouts shorter than 1 minute would be fetched over and over again.
2022-10-16 22:08:13 +01:00
José Rebelo
a717fd1db2
Huami: Do not crash when failing to parse activity summary
2022-10-16 21:33:47 +01:00
José Rebelo
d1ae6cf225
Zepp OS: Implement workout fetching
2022-10-02 16:07:21 +02:00
José Rebelo
7f4bd16914
Zepp OS: Implement activity and sleep fetching
2022-10-02 16:07:21 +02:00
Andreas Shimokawa
6732bab481
Dirty port tinyECDH to Java, remove ndk dependencies
...
This has some advantages:
- Less stuff to download for building Gadgetbridge (CI Speedups)
- Shorter build time (no need to build shared library for all supported architectures)
- Easier debugging
- etc :P
What I did:
- remove all curves except B163 to make porting easier
- port to java with brain switched off
- fix the "java has no unsigned" bugs
- add some helpers to convert int[] to byte[] and back because java has no casts
The result is ugly, no one would write such crappy code from scratch, but I tried to
keep it as close to the C code as possible to prevent bugs. Since I did not know what
2022-09-27 10:51:14 +02:00
José Rebelo
cadcfb787a
Zepp OS: Improve firmware upgrades
2022-09-26 00:33:49 +02:00
José Rebelo
f915ab5ebd
Mi Band 7: Enable app support
2022-09-08 18:20:28 +02:00
José Rebelo
37554e8f8a
Mi Band 7: Fix and enable firmware upgrades
2022-09-05 22:14:09 +01:00
José Rebelo
ba565df088
Xiaomi Smart Band 7: Initial support
2022-08-19 23:13:27 +02:00
Andreas Shimokawa
08eb58e63b
Mi Band 6: set time on connect
2022-03-31 11:07:13 +02:00
Your Name
c62a418961
Add climbing activity & Add seperate res for hiking and climbing
2021-12-28 22:37:35 +01:00
Sebastian Krey
2bf4f14b98
New Amazfit GTS 2 Mini activity Outdoor Trekking/Hiking ( #2528 )
...
New Huami Amazfit GTS 2 Mini activity for Outdoor Trekking/Hiking.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2528
Co-authored-by: Sebastian Krey <skrey@noreply.codeberg.org>
Co-committed-by: Sebastian Krey <skrey@noreply.codeberg.org>
2021-12-28 13:46:17 +01:00
Andreas Shimokawa
e1b04f6a5c
Huami: support old version of new chunked protocol used on Amazfit Bip U at least
...
This is used for setting world clock and setting canned messages for call rejection.
This PR implements setting the canned messages, but unfortunately the feature is somehow not "unlocked"
2021-12-23 18:06:58 +01:00
Andreas Shimokawa
eb8284f079
Mi Band 6: Fix watchface installation
2021-09-02 13:26:35 +02:00
Andreas Shimokawa
117cd57463
Mi Band 6: Support sending encrypted packets on new firmware
2021-09-02 11:21:05 +02:00
Andreas Shimokawa
44fcd454a0
Mi Band 6: Make new auth protocol a setting for now
2021-08-26 10:59:53 +02:00
Andreas Shimokawa
2c06e5d39c
Mi Band 6 auth: add test, fix crypto
2021-08-26 10:59:53 +02:00
Andreas Shimokawa
d352624629
Mi Band 6 auth: first full but nonworking version
2021-08-26 10:59:53 +02:00
Andreas Shimokawa
1c6f055bef
Mi Band 6 auth: Working jni call to generate keys
2021-08-26 10:59:53 +02:00
Andreas Shimokawa
9bd8424f83
Mi Band 6 auth: first experiments
2021-08-26 10:59:53 +02:00
Andreas Shimokawa
8d21ae1177
Amazfit GTS2/GTR2: Fix installing watchfaces
...
Needs some more testing, but looks promising
2021-05-16 14:29:47 +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
License Bot
1b5402dcb4
update license headers
2021-01-10 23:38:13 +01:00
Andreas Shimokawa
0e88adbaf7
Mi/Amazfit Band 5: Support flashing watchfaces
2020-11-20 22:03:23 +01:00