1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-08 15:35:24 +02:00
Commit Graph

3028 Commits

Author SHA1 Message Date
vanous
50defa1eb6 Add broadcast sender/receiver to ConfigureAlarms/HuamiSupport
This is to prevent discrepancies if user edits alarms in Gadgetbridge
and also on the device at the same time.
2019-12-29 11:07:42 +01:00
Daniel Dakhno
4c11a886fe renamed InformationRequest to ConfigurationRequest to comply with old implementation 2019-12-28 02:31:09 +01:00
dakhnod
462ee0e30b added battery data fetching 2019-12-28 02:12:48 +01:00
Andreas Shimokawa
ca324b4d41 prepare release 2019-12-28 00:33:03 +01:00
Andreas Shimokawa
b1ada7a25c Amazfit Cor: whitelist firmware 1.2.7.32 2019-12-27 23:54:53 +01:00
Andreas Shimokawa
3bf72f957a Huami: get alarms at connect and save changes to database, react to on-device changes immediatly when device is connected 2019-12-27 22:19:17 +01:00
Daniel Dakhno
a24067a299 WIP: added encrypted setting request 2019-12-27 18:53:21 +01:00
Andreas Shimokawa
f958f3a54d Amazfit Bip: Whitelist BipOS 0.5.1 (non-latin) 2019-12-27 14:42:00 +01:00
Andreas Shimokawa
9983a0f18e Mi Band 3: Whitelist FW 2.4.0.32 2019-12-27 10:35:42 +01:00
Andreas Shimokawa
6548802abc fix regression from latest commit where Mi Band 3 could not longer connect 2019-12-26 23:26:08 +01:00
Andreas Shimokawa
45c40825f3 Mi Band 4: Support MTU that gets reported from the Band
In my case that boosts the MTU from 23 to 247, firmware updates and watchface
istallations are extremely fast. This also affects notifications, weather etc.
2019-12-26 23:05:13 +01:00
Andreas Shimokawa
f0e8440e67 Try to fix race condition when re-connecting
(Count down latch only if services have been discovered)
2019-12-26 00:18:36 +01:00
Andreas Shimokawa
21eada4caa Allow to set alarms to unused when long tapping
This helps clearing up a cluttered alarms list on devices like the Mi Band 4

Difference between disabling and setting to usused:
Unsused alarms cant be enabled from the Band, disabled can.

Closes #1747
2019-12-24 01:27:57 +01:00
Andreas Shimokawa
6e4240e61c compile fix: typo 2019-12-24 00:07:31 +01:00
Andreas Shimokawa
6f91e6053e cleanup autoconnectintervalreceiver when unregistering 2019-12-22 12:47:43 +01:00
Andreas Shimokawa
09632afb78 Huami: Fix stuck in connecting for most cases
This happened when sending a notification while doing authentication.
The reason the notification came though is the "auto connect" code that is
supposed to connect when a message arrives, so that it does not get lost.

This code and DeviceSupport::useAutoConnect() is probably totally useless by now
and could be removed in favor of the "waiting for reconnect" state.

The bug could have been solved by setting the device busy during authentication
in Huami code, but I did it by...

Note to self:
"Block everything except a disconnect request in DeviceCommunicationService
if the device is not yet initialzed but connected, assuming it is somewhere in
the middle doing something important"
2019-12-20 07:58:26 +01:00
License Bot
c04e368631 Update license headers 2019-12-15 22:10:19 +01:00
License Bot
171f283ca8 Update license headers 2019-12-15 22:09:02 +01:00
dakhnod
a256decfd0 initial commit 2019-12-15 14:58:19 +01:00
Andreas Shimokawa
8c6022b988 fix stupid typo 2019-12-15 00:11:21 +01:00
Andreas Shimokawa
5ee3c3db03 Bangle.js: use a more watch-like icon (we need new icons) 2019-12-15 00:05:55 +01:00
Andreas Shimokawa
72ffbca2ff Make "reserve alarm for calender" per-device and only allow for Mi Band 1/2
This avoids a lot of bugs and confision regarding alarms
2019-12-14 23:48:02 +01:00
Andreas Shimokawa
c89a651573 Bangle.js: minor cleanups in coordinator 2019-12-14 12:16:23 +01:00
Andreas Shimokawa
a024055e69 Bangle.js: Code cleanup and minor bug fixes
- remove unused imports
- use java style array declaration
- use arraycopy instad of looping byte-by-byte
- fix wrong LOG output usage (positional argument instead of concat operator used)
- fix bad string comparision (must use equals() instead of ==)
2019-12-14 12:01:52 +01:00
dakhnod
fea4694cec fixed crc length bug 2019-12-14 09:49:15 +01:00
Andreas Shimokawa
b78239e7be Fossil Q: Remove tasker code and dependency 2019-12-11 22:14:20 +01:00
Gordon Williams
9856536243 ask before bonding 2019-12-09 14:31:08 +00:00
Gordon Williams
77658c702f remove debug filtering 2019-12-09 10:26:30 +00:00
Gordon Williams
fb70da856a Merge branch 'master' of github.com:gfwilliams/Gadgetbridge 2019-12-09 10:13:02 +00:00
Andreas Shimokawa
8c20ae89a8 Replace CRC32C implementation of unknown source with Apache's implementation 2019-12-08 11:52:48 +01:00
Andreas Shimokawa
b9d3ec6df3 Make disabling new BLE scanning an option in preference
It was disabled in master, but not in the Fossil Q branch, now both is possible

This also reverts ca9761c336
which disabled classic BT scanning
2019-12-07 22:38:30 +01:00
License Bot
1dc8c26e2a Update license headers 2019-12-06 22:51:43 +01:00
Gordon Williams
b5a5f020a0 Add notification responses 2019-12-04 17:23:34 +00:00
Gordon Williams
3c16b246a7 Bangle.js: Tidy up data transmit and add data receive 2019-12-04 16:42:28 +00:00
dakhnod
b1b4100852 extracted some string resources 2019-12-04 00:59:43 +01:00
dakhnod
f4a0f0ce8f Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-12-04 00:48:26 +01:00
dakhnod
d5cd59ae6b improved sorting performance 2019-12-04 00:46:02 +01:00
dakhnod
8e27556cd4 removed printStackTrace 2019-12-04 00:36:42 +01:00
dakhnod
21358fece4 removed Toast#makeText in favour of GB#toast 2019-12-04 00:25:08 +01:00
dakhnod
d355b509d4 added comment 2019-12-04 00:22:19 +01:00
dakhnod
3bbc7a9046 fixed string comparison 2019-12-04 00:19:48 +01:00
dakhnod
f3dc0225ec fixed string switch 2019-12-04 00:18:12 +01:00
dakhnod
4462c52ebb fixed null comparison 2019-12-04 00:09:38 +01:00
Gordon Williams
43bce3ed80 safe init 2019-11-29 17:07:11 +00:00
Gordon Williams
103e3568c6 Adding notification handling 2019-11-29 17:01:57 +00:00
Gordon Williams
d978d3ff94 first compile with Bangle.js - very basic 2019-11-28 18:02:47 +00:00
Daniel Dakhno
02ee886934 Merge branch 'fossil-q-hybrid' of github.com:dakhnod/Gadgetbridge into q-hybrid-hr 2019-11-26 02:12:11 +01:00
Daniel Dakhno
e6ac9d91a5 added some fun and useless requests 2019-11-26 02:10:03 +01:00
Andreas Shimokawa
7a6e98c401 add migration for per-device button actions 2019-11-24 18:40:44 +01:00
dakhnod
2bba2c449f fixed some syncing issues (hopefully) 2019-11-24 00:44:14 +01:00
Andreas Shimokawa
68a9bcc167 Mi Band 4: Whitelist FW 1.0.7.14 2019-11-23 22:50:34 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
dakhnod
e1aa88d22a added some logging 2019-11-21 23:22:55 +01:00
dakhnod
d344bfa6da Merge branch 'fossil-q-hybrid' of github.com:dakhnod/Gadgetbridge into q-hybrid-hr 2019-11-21 22:37:52 +01:00
dakhnod
e0905703af moved getModelName to superclass 2019-11-21 22:17:42 +01:00
dakhnod
afc177078a modified logging 2019-11-21 22:12:10 +01:00
dakhnod
ecc8ae9175 added Hybrid HR base support 2019-11-21 21:00:35 +01:00
Daniel Dakhno
463e3d120d added long to GenericConfigurationItem 2019-11-21 14:37:19 +01:00
Andreas Shimokawa
e5f5a671bd Amazfit Bip: Make vibration after button action work 2019-11-21 13:24:06 +01:00
Daniel Dakhno
a56d180531 added second timezone button function 2019-11-20 18:59:13 +01:00
Andreas Shimokawa
c2db30274f Make reconnect logic more device agnostic and remove pebble reconnect logic 2019-11-20 10:53:25 +01:00
Daniel Dakhno
a7c10bed42 added alarm settings 2019-11-20 00:56:09 +01:00
Daniel Dakhno
c037888623 added half-way-alarms and multi button 2019-11-19 23:42:06 +01:00
Andreas Shimokawa
c7053747cd Add active reconnection
Closes #1724
Closes #1632
Closes #1452
Closes #1271
Closes #564

(Probably more)
2019-11-19 14:40:20 +01:00
Andreas Shimokawa
18d78bf05d Amazfit Bip: Correct BipOS version 2019-11-18 21:53:03 +01:00
Daniel Dakhno
30e098db93 added "show last notification" button function 2019-11-17 20:54:49 +01:00
Daniel Dakhno
03e8925d9e fixed unknown button setting exception 2019-11-17 15:56:44 +01:00
Daniel Dakhno
ca18e1fe34 added button index hint 2019-11-17 05:03:23 +01:00
Daniel Dakhno
e04cd474dc user can now assign a few more functions to buttons 2019-11-17 04:55:12 +01:00
Daniel Dakhno
7f5c432b82 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-11-17 01:13:00 +01:00
Daniel Dakhno
2cbc47defa made buttons work with fossils api 2019-11-17 01:10:02 +01:00
Andreas Shimokawa
d60ceffb81 Amazfit Bip: Whitelist BipOS 0.5 firmware/res (non-latin) 2019-11-16 21:47:14 +01:00
Daniel Dakhno
1bdaa55937 code cleanup and crc handling 2019-11-16 03:02:29 +01:00
Daniel Dakhno
56d5b95181 adjusted some MTU specific file handling 2019-11-16 02:14:45 +01:00
Daniel Dakhno
5cab9fa9da fixed notification count sync 2019-11-15 01:17:22 +01:00
Andreas Shimokawa
25bb16b0c3 Make button action setting per-device, enable for amazfip bip
TODO:
- preference migration
- support vibration on bip
2019-11-14 12:33:36 +01:00
Daniel Dakhno
63b4ffe555 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-fossil-api 2019-11-14 04:58:32 +01:00
Daniel Dakhno
34c9652962 fixed duplicate vibration settings 2019-11-14 04:57:27 +01:00
Daniel Dakhno
161236f3a2 fixed file upload bug 2019-11-14 04:56:34 +01:00
Daniel Dakhno
64b407da92 added mtu transactions 2019-11-14 04:53:19 +01:00
vanous
53ce25a30c Add Set Activity Fetch Time to debug to set lastSyncTimeMillis 2019-11-04 21:59:29 +01:00
vanous
c1d024876d Add forward/backward buttons to charts 2019-11-04 20:42:59 +01:00
dakhnod
016ae8be13 still don't know what is goind on with uploading files... 2019-11-04 02:47:38 +01:00
Daniel Dakhno
1318b58ad2 changed request handling 2019-11-03 20:46:51 +01:00
Andreas Shimokawa
2b0656c9c0 Amazfit GTS: Enable flashing firmware (untested) 2019-10-31 15:30:05 +01:00
Andreas Shimokawa
a3cd99a4a3 Huami: move notification code from AmazfitBipSupport to HuamiSupport
probably fix notifications on GTS
2019-10-31 14:28:24 +01:00
Daniel Dakhno
fc9016e98e refactored requests 2019-10-31 02:46:33 +01:00
Daniel Dakhno
e955330268 added exception notifications 2019-10-31 01:58:06 +01:00
Daniel Dakhno
00b66d45e7 fixed file upload issue (i hope at least) 2019-10-31 01:57:55 +01:00
Daniel Dakhno
66c677bcf9 added request 2019-10-31 01:57:23 +01:00
Daniel Dakhno
22aa823d35 improved bonding process and fixed some lint errors 2019-10-30 17:37:58 +01:00
Daniel Dakhno
d690dff5ca fixed nah nah. 2019-10-30 16:43:29 +01:00
Daniel Dakhno
c09683de3d implemented nah. 2019-10-30 16:42:44 +01:00
Daniel Dakhno
77fdce3cf2 adjusted FileUploadRequest 2019-10-30 16:28:59 +01:00
Daniel Dakhno
25a67b2ebb updated some requests, still dunno why some files time out... 2019-10-30 02:50:00 +01:00
Manuel Ruß
0159657bd5 - AmazfitGTS Run basic functionalities (read data, ...) 2019-10-29 22:44:03 +01:00
Andreas Shimokawa
42312bba60 Amazfit GTR: remove menu item settings, since we do not know how to do this yet 2019-10-28 15:41:55 +01:00
Daniel Dakhno
06d7568249 added some requests and logic 2019-10-28 12:35:22 +01:00
dakhnod
37d7df2d31 added some requests 2019-10-27 23:24:02 +01:00
dakhnod
7d5810fdf0 added some new api code 2019-10-27 23:21:21 +01:00