1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00
Commit Graph

1777 Commits

Author SHA1 Message Date
Andreas Shimokawa
94afcba363 Add text column to BaseActivityData for storing unstructured data to be displayed later
As a test first test, this currently only stores the average heart rate.
2020-08-07 23:12:29 +02:00
Andreas Shimokawa
9b8f4d329e Experiment with Pinetime-JF 2020-08-04 22:38:11 +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
a619fdb168 Huami: Prevent setting an MTU of < 23, which is either a special value or a parsing error of Gadgetbridge
This fixes a problem where writeToChunked algorithm results in out of bounds writes or an endless loop.

Closes #1936
2020-08-02 13:11:41 +02:00
Cristian Alfano
637a7d5d07 Adding support for Mi Band 5's new FW and res versions and new languages supported: italian, french and german. 2020-08-01 23:03:21 +02:00
115ek
58711ff2d2 TLW64: Add basic settings
* inactivity warnings
* activate display on lift
* timeformat
* TODO: screen timeout, find-my-device,...
2020-07-30 15:00:34 +02:00
115ek
81956143de TLW64: Revert "Switch to dynamic battery detection"
This reverts commit 8c7800534f78258b9f817ac3a524d985ed6aa84e.

* Battery Service doesn't notify so the charge gets only updated on initializeDevice()
2020-07-30 12:36:02 +02:00
115ek
7a2cb1ca68 TLW64: Fix fetching progress bar
* Fetching progress bar wasn't made invisible again
2020-07-30 12:36:02 +02:00
115ek
943728c35c TLW64: Support fetching activity data (steps + sleep) 2020-07-30 12:35:43 +02:00
115ek
95da81dfcf TLW64: Increase vibration amount on call state
* 5 vibrations are too less if someone calls 
* 30 vibrations last about 30 seconds (if call state doesn't change)
* duration parameter behaves strange: higher value means shorter vibration?! 
-> let's go back to default duration of 1
2020-07-30 12:15:12 +02:00
115ek
4f5e2d0730 TLW64: Beautify code 2020-07-30 12:15:12 +02:00
115ek
8a3174dabd TLW64: Support further device settings
* inactivity alarm
* others are unclear
2020-07-30 12:15:12 +02:00
115ek
5c40e71355 TLW64: Support alarms 2020-07-30 12:15:12 +02:00
115ek
098120ea56 TLW64: Switch to dynamic battery detection
* Battery Service 0x180F is supported so let's make use of it
2020-07-30 12:15:12 +02:00
115ek
92d2fbc997 TLW64: Support battery level and firmware version detection
* firmware is missing some characters compared to the value reported by the original app
* https://play.google.com/store/apps/details?id=com.yc.pedometer&hl=en_US
* need to investigate that
2020-07-30 12:15:12 +02:00
115ek
4cb481fba3 TLW64: Wiretap operation
* let's log some packets to make sure we send the right things
2020-07-30 12:15:12 +02:00
115ek
1e6146f4aa TLW64: Support factory reset 2020-07-30 12:15:12 +02:00
115ek
654019e2c0 TLW64: Support notifications 2020-07-30 12:15:12 +02:00
115ek
fc2a7c6f8d TLW64: Support setting userdata 2020-07-30 12:15:12 +02:00
115ek
56dc5211e7 TLW64: Support setting displaysettings
* 24h/12h clock
* metric/imperial units
2020-07-30 12:15:12 +02:00
115ek
0ed7c385fb TLW64: Support setting date 2020-07-30 12:15:12 +02:00
115ek
7c5a2d0e58 TLW64: Support find device 2020-07-30 12:15:12 +02:00
115ek
dfd2eb0e10 TLW64: Initial support 2020-07-30 12:15:12 +02:00
odavo32nof
d3a51a1078 Adding Mi Band 5 initial support (#1930)
Merge branch 'master' into master

Merge branch 'master' into master

Added available languages for Mi Band 5.

This one's for fixing the step counter but the daily count is always a little bit different compared to what's shown on the smartband.

Extending Mi Band 5 support! Every display item can be showed on the smartband now.

Cleanup

FW related test code

FW related test code

FW related test code

FW related test code

Adding Mi Band 5 test support

Co-authored-by: cristian <c.alfano@outlook.it>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1930
2020-07-28 18:16:56 +02:00
TaaviE
3ad1412a1d Delegated error handling properly to the function that creates FetchActivityOperation 2020-07-28 08:11:50 +02:00
TaaviE
bcac8e0d7f Minor changes and a fix to a NPE when mBtGatt is null 2020-07-28 08:10:39 +02:00
TaaviE
7ea7fadd60 Made Mi Band activity fetching not crash the application 2020-07-27 17:55:16 +03:00
Andreas Shimokawa
932b0f7f94 Amazgit GTR/GTR Lite: Try to fix broken activity data
Query versions as described in #1907
Also see #1924
2020-07-23 22:05:28 +02:00
Andreas Shimokawa
ef09e24482 Amazfit GTS: Fix broken activity data on Firmware 0.0.9.xx
Fixes #1924
2020-07-22 11:03:30 +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
7980d928a8 Add experimental support for TinyWeatherForecastGermany 2020-07-05 21:54:10 +02:00
Andreas Shimokawa
c437347236 Amazfit GTR/GTS: Fix connection for new firmware
This change does not do any harm on other Huami devices it seems
2020-07-05 17:07:43 +02:00
Andreas Shimokawa
3940387b1a Huami: set forecast limit to 6 days (current + 6 in future) 2020-06-29 19:41:56 +02:00
Andreas Shimokawa
b7a1f469ee Huami: limit forecast days to 3 days
Fixes problems with new weather notificaion on Mi Band 4 and others
Fixes #1910
2020-06-29 19:02:30 +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
Dmytro Bielik
496460502b Initial support for Amazfit T-Rex 2020-06-24 18:43:23 +03:00
Andreas Shimokawa
5d58a2f583 Work around music controls being disabled since last commit on Amazfit Cor (we do not get a music app started event before we haven't sent music information - weird) 2020-06-22 18:35:22 +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
55f9c8f519 Huami: Avoid cutting multibyte chars in half 2020-06-22 10:12:10 +02:00
Zhong Jianxin
c3a9cf858e Amazfit Bip S: Allow longer notification message 2020-06-16 13:41:26 +08:00
Andreas Shimokawa
26b7932153 Mi Band 4: Whitelist FW 1.0.9.58 2020-06-13 22:18:18 +02:00
Andreas Shimokawa
0229d24092 Mi Band 4 (possibly others): Fix detected RES version being always 69 for non-whitelisted res files
Fixes #1886
2020-06-12 23:24:26 +02: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