1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-17 02:44:04 +02:00
Commit Graph

2295 Commits

Author SHA1 Message Date
vanous
198040c935 add UUID to to GPX with opentracks namespace
ensure that GPX has trackpoints
improve GPX track name if null
2021-01-17 00:07:55 +01:00
Hasan Ammar
894102e45a Prevent unnecessary widget refresh on notification removal 2021-01-12 21:46:49 +01:00
License Bot
1b5402dcb4 update license headers 2021-01-10 23:38:13 +01:00
Andreas Shimokawa
5d8eb432fc fix missing import 2021-01-06 22:52:59 +01:00
Andreas Shimokawa
50ce99b838 Amazfit GTS2: Also use new protocol for calls like GTR2
This is an assumption
2021-01-06 22:15:22 +01:00
Andreas Shimokawa
c896e476f4 Amazfit GTR2: Try to fix incoming calls blindly 2021-01-06 16:29:11 +01:00
Andreas Shimokawa
a50cc8d42d InifiniTime: set device busy during firmware upgrade
Since this is the only busy task in use we just call gbDevice.unsetBusyTask()
upon completion/error
2021-01-06 15:12:41 +01:00
DanialHanif
2b8cd6013a Add Amazfit BIP U Pro support 2021-01-06 10:13:50 +01:00
Daniel Dakhno
df2300777d Fossil Hybrid: avoid unnessecary widget rendering 2020-12-24 14:35:22 +01:00
angelpup
4676c50afc Added Support for Amazfit Verge Lite
Co-Authored-By: angelpup <angelpup@noreply.codeberg.org>
Co-Committed-By: angelpup <angelpup@noreply.codeberg.org>
2020-12-20 22:39:51 +01:00
andyboeh
02b85f4c11 Casio GBX-100: Add step count data and more device settings
Co-Authored-By: andyboeh <andyboeh@noreply.codeberg.org>
Co-Committed-By: andyboeh <andyboeh@noreply.codeberg.org>
2020-12-20 00:22:35 +01:00
vanous
074bc885c8 send broadcast and vibration on button action only if enabled 2020-12-18 10:56:42 +01:00
Andreas Shimokawa
09bf9db799 Huami: Use blue icon instead of rainbow color icon for Signal (the rainbow icon was blue in early days) 2020-12-14 17:15:01 +01:00
Andreas Shimokawa
4fb79ac2b2 Huami: Add new option to disting to properly distinguish connected adverising and 3rd party hr exposure 2020-12-13 22:38:03 +01:00
TinfoilSubmarine
2f89de6250 Add Amazfit Bip U menu items and remove shortcuts (#2107)
fix a tab vs. space misalign

add missing menu items for Bip U (and possibly others)

remove shortcut config from Amazfit Bip U settings

add (most) menu items for Amazfit Bip U

Co-authored-by: AluminumTank <joel@beckmeyer.us>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2107
Co-Authored-By: TinfoilSubmarine <tinfoilsubmarine@noreply.codeberg.org>
Co-Committed-By: TinfoilSubmarine <tinfoilsubmarine@noreply.codeberg.org>
2020-12-05 16:22:09 +01:00
Gordon Williams
480ec40ff2 Fix realtime data, add suggestions from https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2106 2020-12-04 16:30:19 +00:00
Gordon Williams
c1195ba05d Support for HRM and steps activity recording in Bangle.js 2020-12-04 15:14:00 +00:00
Andreas Shimokawa
d0c5ffec28 Amazfit Bip S: Fix crash with notifictions with only a title (GitNex does this)
Probably affects other newer Huami devices
2020-12-02 17:07:40 +01:00
Andreas Shimokawa
aa6e2a291a Amazfit TRex: add missing menu items, remove non-existent 2020-12-01 18:56:37 +01:00
Andreas Shimokawa
85da3594fc Amazfit Bip U: Probably fix totally broken sleep/step data 2020-12-01 15:19:27 +01:00
Andreas Shimokawa
ffa46482fd Add missing code from last commit 2020-11-30 17:13:48 +01:00
Andreas Shimokawa
1bad73e20c Amazfit Bip U: Blindly add untested support
Based on Bip S, don't know what works and what not
2020-11-30 17:09:29 +01:00
Andreas Shimokawa
6042d285bb compile fix 2020-11-30 17:08:35 +01:00
Daniel Dakhno
55449c1d25 Fossil Hybrid: added fallback vibration to old Q's 2020-11-29 17:15:03 +01:00
Daniel Dakhno
996674836e Fossil Hybrid: added firmware upgrade to old Q's 2020-11-29 17:10:10 +01:00
Daniel Dakhno
7fe8a88ee7 Fossil Hybrid: keep widget values after widget reload 2020-11-26 21:12:56 +01:00
Andreas Böhler
b0a0a29bcb Casio GB-5600B/GB-6900B: Add configurable disconnect notification 2020-11-23 22:59:16 +01:00
Andreas Böhler
6f18a1dd73 A few fixes to the init sequence 2020-11-21 22:12:19 +01:00
Andreas Böhler
8fd0e1f13f Add support for synchronizing profile settings 2020-11-21 22:12:19 +01:00
Andreas Böhler
2ef9128cf8 Move BCD functions to its own Util class 2020-11-21 22:12:19 +01:00
Andreas Böhler
80df573ccf Improve initialization sequence 2020-11-21 22:12:19 +01:00
Andreas Böhler
9d710308fa Limit the number of temporarily stored notification IDs 2020-11-21 22:12:19 +01:00
Andreas Böhler
5edac523f0 Improve notification removal 2020-11-21 22:12:19 +01:00
Andreas Böhler
ae02c825b4 Fix reconnect and initialization 2020-11-21 22:12:19 +01:00
Andreas Böhler
92986724ee Fix watch init (only do the bare minimum) and add basic
notification support. Reconnect is WiP.
2020-11-21 22:12:19 +01:00
Andreas Böhler
b653789b66 Add preliminary support for Casio GBX-100: connecting and time synchronization. 2020-11-21 22:12:19 +01:00
Andreas Böhler
08ff70ac41 Refactor Casio support for multiple watches 2020-11-21 22:12:19 +01:00
Andreas Shimokawa
0e88adbaf7 Mi/Amazfit Band 5: Support flashing watchfaces 2020-11-20 22:03:23 +01:00
Andreas Shimokawa
bd0c645db5 Add support for Amazfit GTS2 (untested)
Also change icon for GTR2 to a round one
2020-11-15 16:25:47 +01:00
Andreas Shimokawa
cc7a7b7caf Fossil Hybrid HR: delete activity data after syncing
This partially reverts f6a7435b7e
2020-11-14 22:17:24 +01:00
Andreas Shimokawa
435808467b Amazfit GTR2: Make sure new firmware upgrade code gets used (shamelessly assume it uses this right from the start) 2020-11-14 22:04:09 +01:00
Andreas Shimokawa
5f85bba438 Amazfit GTR: Also fix firmware flashing for the chinese(?) variant 2020-11-12 18:06:52 +01:00
Andreas Shimokawa
66bb6f694e Amazfit GTR Lite: Prevent using new firmware flashing code (they have not upgraded the protocol yet) 2020-11-12 17:47:31 +01:00
Andreas Shimokawa
c3b8604338 Amazfit GTR: FIx firmware flashing on newer firmares 2020-11-12 17:29:25 +01:00
Daniel Dakhno
79939b7339 Fossil Hybrid: can now delete notifications from watch 2020-11-12 12:35:29 +01:00
Daniel Dakhno
02b9cedcb7 Fossil Hybrid: fixed async action flag 2020-11-12 12:13:10 +01:00
Daniel Dakhno
b40e33f086 Fossil Hybrid: added "decline call" notification flag 2020-11-12 12:11:54 +01:00
Daniel Dakhno
fc1e74d154 Fossil Hybrid: fix "delete notification" to not cancel calls 2020-11-12 03:51:57 +01:00
Daniel Dakhno
39ed94de87 Fossil Hybrid: added unauthenticated, limited mode 2020-11-12 03:49:52 +01:00
Andreas Shimokawa
f157a2ac78 Amazfit GTS: Try to fix firmware flashing not working in newer firmwares
Reported in #2075
2020-11-11 12:51:58 +01:00
Andreas Shimokawa
cd8ac94a93 Mi Band 5: Whitelist FW 1.0.2.24 2020-11-11 09:48:50 +01:00
Andreas Shimokawa
9d6f9f7d57 Huami: Unify menu id lookup tables and simplify code 2020-11-10 21:56:00 +01:00
Andreas Shimokawa
5b55898059 Mi/Amazfit Band 5: Add support for setting/sorting shortcuts 2020-11-10 11:33:37 +01:00
pangwalla
c4eb1c0879 Support for Amazfit GTR 2 (#2072)
Merge branch 'master' into master

fixed GTR2 getActivitySampleSize override

Support for Amazfit GTR 2

Co-authored-by: Pangwalla <pangwalla@protonmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2072
2020-11-09 20:53:02 +01:00
Andreas Shimokawa
f178c478c9 Amazfit Bip: Also make shortcuts sortable 2020-11-07 22:48:34 +01:00
Andreas Shimokawa
d20e6516c8 Humai: Implement menu sorting for remaining devices (except Mi Band 2) 2020-11-07 22:48:34 +01:00
Andreas Shimokawa
8cb2fb980a Ímplement sorting menu items for newer Huami devices
- Amazfit GTR/GTS
- Amazfit Bip S
- Mi Band 5/Amazfit Band 5
2020-11-07 22:48:34 +01:00
Daniel Dakhno
e8534e01f8 Fossil Hybrid: dynmically generate check byte 2020-10-31 12:40:20 +01:00
Daniel Dakhno
d8ade53cdf Fossil Hybrid: fixed missing class 2020-10-30 04:25:11 +01:00
Daniel Dakhno
12e67312c7 Fossil Hybrid: auto-detect iv incrementor 2020-10-30 04:19:21 +01:00
Daniel Dakhno
f6a7435b7e Fossil Hybrid: temporarely keep activity file after sync 2020-10-30 04:19:07 +01:00
Daniel Dakhno
6b1d2cab50 Fossil Hybrid: added device security version info 2020-10-30 03:38:10 +01:00
Daniel Dakhno
8e543d0b9c Fossil Hybrid: code cleanup 2020-10-29 02:49:44 +01:00
Daniel Dakhno
8a87bd9700 Fossil Hybrid: added verbose decryption logging 2020-10-29 02:48:28 +01:00
Daniel Dakhno
c1352a7c3c Fossil Hybrid: added app exec test code 2020-10-29 02:43:21 +01:00
Daniel Dakhno
0845d15ba2 Merge remote-tracking branch 'origin/master' 2020-10-29 02:43:01 +01:00
Daniel Dakhno
6850837a30 Fossil Hybrid: cleaned up handle handling 2020-10-29 02:42:52 +01:00
Daniel Dakhno
f11977597b Fossil Hybrid: use GB.toast() 2020-10-28 21:42:12 +01:00
Daniel Dakhno
d14687388b Fossil Hybrid: show warning on wrong key format 2020-10-28 21:42:12 +01:00
Andreas Shimokawa
1224cfeffc Amazfit Bip S: unify shortcuts code with display items code 2020-10-28 00:12:37 +01:00
Andreas Shimokawa
50f99a5b59 Amazfit Bip S Lite: add new device type for the lite variant
See #2055
2020-10-27 12:56:27 +01:00
Andreas Shimokawa
f61c06630a Fossil Hybrid HR: Only do a factory reset when really requested, not also on reboot. 2020-10-27 11:47:55 +01:00
Maxim Baz
e2a75d75d4 Add Wire messenger to the chat applications
This is a chat app that uses end-to-end encryption algorithm similar to Signal.
2020-10-26 23:29:58 +01:00
Daniel Dakhno
7dd50fc31a Fossil Hybrid: added factory reset option 2020-10-26 03:55:32 +01:00
Daniel Dakhno
89f9f69b0d Merge remote-tracking branch 'origin/master' 2020-10-26 02:51:47 +01:00
Daniel Dakhno
2535342ac4 Fossil Hybrid: refactored requests to use fileHandle enum 2020-10-26 02:50:30 +01:00
JF
9d6ac2b985 Improve notification support for InfiniTime (PineTime) :
- InfiniTime 0.9 now supports messages up to 100 chars (instead of max 18 previously)
 - Remove the hack that was implemented as a workaround to a bug in InfiniTime that would ignore the last character of the notification message (https://github.com/JF002/Pinetime/issues/109).

 These 2 features are enabled only if the firmware version is >= 0.9.
2020-10-24 00:19:45 +02:00
Daniel Dakhno
c85e30cb07 Fossil Hybrid: added hands calibration 2020-10-22 12:43:40 +02:00
Andreas Shimokawa
4131f19f8d Amazfit Band 5: Allow setting Sp=2
Also unify code to set display items on newer devices
2020-10-21 20:03:26 +02:00
Andreas Shimokawa
7c374181dc Amazfit Band 5: Try to blindly use Mi Band 5 support for now 2020-10-17 11:58:22 +02:00
Daniel Dakhno
7ce2688c29 Fossil Hybrid: removed unused variables 2020-10-17 04:00:25 +02:00
Daniel Dakhno
d3dc6c4c5f Fossil Hybrid: reformatted requests to avoid raw files 2020-10-17 03:58:04 +02:00
Daniel Dakhno
45df4cd35c Fossil Hybrid: refactored fileGetRequest 2020-10-17 03:40:12 +02:00
Daniel Dakhno
0c3c749149 Fossil Hybrid: use polled supported file versions 2020-10-17 03:30:53 +02:00
Daniel Dakhno
a8311cabe5 Fossil Hybrid: removed redundant code 2020-10-17 02:33:34 +02:00
Daniel Dakhno
3b2a16b6fc Fossil Hybrid: added manual file down/upload 2020-10-16 01:50:44 +02:00
Daniel Dakhno
57f6b225d8 Fossil Hybrid: removed unused request 2020-10-16 01:49:34 +02:00
Daniel Dakhno
f36c68b065 Fossil Hybrid: extracted file handles to enum 2020-10-16 01:48:40 +02:00
Daniel Dakhno
be2f8aaedc Fossil Hybrid: added translation handling 2020-10-15 22:42:39 +02:00
Daniel Dakhno
f1034f94b3 Fossil Hybrid: send response to app events 2020-10-14 02:00:43 +02:00
Daniel Dakhno
2b1fb0e342 Fossil Hybrid: fix for newer firmware 2020-10-13 05:00:27 +02:00
Daniel Dakhno
05a4c0ce68 Fossil HR: added long and double button presses 2020-10-13 03:06:05 +02:00
Andreas Shimokawa
0d49eaaf9e Pebble: move canned message to per-device settings (including migration)
This also cleans up some useless preferencehandlers that only change summary by
using app:useSimpleSummaryProvider="true" for EditText
2020-10-13 00:27:22 +02:00
Daniel Dakhno
36b38c2f11 Fossil Hybrid: set time on connect 2020-10-12 18:18:29 +02:00
Andreas Shimokawa
1156ec22a4 Mi Band 5: Whitelist FW 1.0.2.08 2020-10-12 14:05:12 +02:00
TaaviE
c41fda5072 Rearranged the code in PineTime support a bit 2020-10-11 19:16:31 +03:00
TaaviE
2cd783feca Updated progress string and context handling 2020-10-11 19:16:31 +03:00
TaaviE
c46e931221 Extracted new and already existing string resources 2020-10-11 19:16:31 +03:00
TaaviE
3b5f35f34a Added PineTime (InfiniTime) Nordic DFU support 2020-10-11 19:16:31 +03:00
TaaviE
2b889a2e4c Improved documentation in UpdateFirmwareOperation, it's not NotificationListener it's handleNotificatioNotif 2020-10-11 19:16:31 +03:00
TaaviE
e496aa8f7b Made Nut support available in discovery 2020-10-11 19:16:31 +03:00
TaaviE
01feaabffd Added support for Nut devices 2020-10-11 19:16:31 +03:00
opavlov
1fbfb1cae1 fixed copyright info 2020-10-11 17:27:30 +03:00
opavlov
1ba454a89b refactored settings to "per-device" according to wiki 2020-10-11 17:24:11 +03:00
opavlov
78ec2a4a14 fixed issue with sleep data(wrong order of reading bits). removed rest useless methods from band classes. 2020-10-11 17:24:11 +03:00
opavlov
06a12300a1 added support for sony swr12 2020-10-11 17:24:11 +03:00
TaaviE
48abd91e72 Reordered a few functions, constructor to be more sensible 2020-10-11 14:29:14 +03:00
TaaviE
d4f383f885 Added support for more music information with backwards compatibility 2020-10-11 14:23:20 +03:00
Yukai Li
d6bed776c5 Lefun: Use existing time format setting with handling for automatic format
Also fix "interface language" string name
2020-10-10 22:03:46 +02:00
Yukai Li
1242009b55 Lefun: Add comments 2020-10-10 22:03:46 +02:00
Yukai Li
6974a86b87 Lefun: Implement settings 2020-10-10 22:03:46 +02:00
Yukai Li
31078647b1 Lefun: Limit notification length further
In addition to the 255 pieces limit, the band also uses a byte for total message length, so cap that too to not run over previous message data.
2020-10-10 22:03:46 +02:00
Yukai Li
2c1167b1b3 Lefun: Use proper handler for firmware info 2020-10-10 22:03:46 +02:00
Yukai Li
a2090eeccb Lefun: Use proper handlers for find phone and battery level 2020-10-10 22:03:46 +02:00
Yukai Li
e220acb1b4 Lefun: Implement live step counting 2020-10-10 22:03:46 +02:00
Yukai Li
b225ab98a8 Lefun: Fix typo 2020-10-10 22:03:46 +02:00
Yukai Li
741fdbcbd2 Lefun: Tweak notifications for empty message handling 2020-10-10 22:03:46 +02:00
Yukai Li
c2375f95f4 Lefun: Implement notification support 2020-10-10 22:03:46 +02:00
Yukai Li
a1737c39fb Lefun: Add missing license headers 2020-10-10 22:03:46 +02:00
Yukai Li
0dd44ae2d6 Lefun: Implement limited find phone support 2020-10-10 22:03:46 +02:00
Yukai Li
b7abd328bb Lefun: Implement set alarm 2020-10-10 22:03:46 +02:00
Yukai Li
3d108d9d11 Lefun: Implement heart rate test 2020-10-10 22:03:46 +02:00
Yukai Li
d161415046 Lefun: Implement activity data sampling 2020-10-10 22:03:46 +02:00
Yukai Li
6c32a3a99d Lefun: Add operation status to requests 2020-10-10 22:03:46 +02:00
Yukai Li
1fc2356189 Lefun: Change queuing 2020-10-10 22:03:46 +02:00
Yukai Li
9fbfee945c Lefun: Allow keeping request in queue (for multirecord responses) 2020-10-10 22:03:46 +02:00
Yukai Li
61039f1749 Lefun: Add find device support, toast on error 2020-10-10 22:03:46 +02:00
Yukai Li
9454684974 Lefun: Add device support and initialization code 2020-10-10 22:03:46 +02:00
TaaviE
3c842bd441 Made the find phone activity start instantly when allowed 2020-10-06 22:00:42 +03:00
TaaviE
ad30c528e5 Fixed a bug caused by incorrect PendingIntent.getActivity usage 2020-10-06 20:35:26 +03:00
Daniel Dakhno
cf302a6ba0 Fossil: optimized time settings 2020-10-06 03:07:38 +02:00
Andreas Shimokawa
f4115fa617 Amazfit Bip S: Also send wind and humidity
Does not work with most weather sources, but it is better to send something to remove garbled characters
2020-09-30 18:47:19 +02:00
Andreas Shimokawa
1337644a14 Amazfit Bip S: Send sunrise and sunset on latest firmware if enabled
This still has to be enabled in Pebble settings..... :/
2020-09-30 18:16:25 +02:00
Andreas Shimokawa
5bdee2c130 Amazfit Bip S: Fix firmware flashing on DTH variant with firmware 4.1.5.55 2020-09-29 21:58:13 +02:00
Andreas Shimokawa
247366bf9d Amazfit Bip S: Implement new Firmware update mechanism introduced with Firmware 2.1.1.50
This is probably mandatory for other devices now also!
2020-09-28 12:05:09 +02:00
Gordon Williams
5c2ee15988 Remove hard-coded name list and use Java Reflection to get the correct field names - fixes issue where call state reporting was corrupted 2020-09-28 10:09:27 +01:00
Andreas Shimokawa
8087390336 Huami: recoginze GPS firmware 19439,3aa3392,135 and whitelist it for Bip S 2020-09-27 12:07:52 +02:00
Andreas Shimokawa
49e7cc4c9b InfiniTime: implement music control and info 2020-09-23 12:12:45 +02:00
Andreas Shimokawa
4da74e7375 Amazfit Bip S: Whitelist 2.1.1.46 2020-09-13 19:26:23 +02:00
Memiks
70a140f358 HPlus notficiation encoding weather improvments (#2012)
fix indent change

add only new functions from master branch

correct issue with reformated code

Merge branch 'master' into HPlus_improve_notifications

update code formatting with Android Studio
remove bad update of .gitignore

HPlusSupport rebuild indexation

remove unecessary change for pull request

Improve HPlus support
- update unicode support
- update notification function
- add first weather notification

Merge pull request 'update master from upstream repository' (#4) from Freeyourgadget/Gadgetbridge:master into master

Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/4

Merge pull request 'update master from upstream repository' (#2) from Freeyourgadget/Gadgetbridge:master into master

Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/2

use my own android sdk image

Sign apk

add signed apk

remove .drone.yml from git

add drone.io compilation

Merge pull request 'update master from upstream repository' (#1) from Freeyourgadget/Gadgetbridge:master into master

Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/1

Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: Memiks <contact@memiks.fr>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2012
2020-09-13 19:13:45 +02:00
Andreas Shimokawa
6c86381fa8 ZeTime: Fix weather forecast icons on older firmware versions
If we do not have a firmware version try use old icon mapping.
Previously weather was not working at all in that case.
2020-09-08 23:09:30 +02:00
Andreas Shimokawa
d5cdf21154 Amazfit Bip S: allow flashing gps almanac (only cep worked before) 2020-09-07 22:57:18 +02:00
Andreas Shimokawa
ce8021ec9b Huami: Add new activity types found in recent Bip S firmware 2020-09-07 21:40:20 +02:00
Andreas Shimokawa
faef4fd92f Amazfit Bip S: fix flashing some font files 2020-09-03 23:09:00 +02:00
Andreas Shimokawa
f2bfab0491 Huami: do not write elevation to GPX if we have a base altitude of -20000
( #2001 )
2020-09-03 23:01:59 +02:00
TaaviE
116b2572dd Avoided a NullPointerException when queue is null 2020-08-30 17:19:56 +02:00
frederic lesur LESUR Frederic
997504c01a Add first support of SG2 HPlus watch 2020-08-29 23:17:42 +02:00
TaaviE
6cd59fbd24 Refactored all pairing and bonding activities (#1989)
Fixed a few warnings

Refactored all bonding and bonding activities

Co-authored-by: TaaviE <taavi.eomae+github@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1989
2020-08-28 15:38:18 +02:00
Bot
40852d3641 Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
TaaviE
010785113b Fixed a few more warnings 2020-08-26 09:38:31 +02:00
TaaviE
7db3b68047 Fixed a bunch of warnings 2020-08-26 09:38:31 +02:00
Andreas Shimokawa
c990a4f6fc Pinetime JF: Fix setting the time 2020-08-23 17:27:32 +02:00
Andreas Shimokawa
52f15e331c Pinetime JF: display firmware and hardware revisions, work around missing byte in notifications 2020-08-23 17:18:53 +02:00
Andreas Shimokawa
164c73c955 WatchXPlus: Fix code setting units to imperial
Fixes #1955
2020-08-18 17:51:59 +02:00
Andreas Shimokawa
715fb67859 Do summary parsing on the fly if raw binary data is available 2020-08-18 10:39:44 +02:00
Gordon Williams
8599d2f8db Add wind speed to JSON produced for Bangle.js - fixes https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/1974 2020-08-17 11:06:16 +01:00
Andreas Shimokawa
2ca2636142 Huami: Recognize missing workout types from the Bip S (and other devices where those are supported) 2020-08-16 23:45:52 +02:00
Andreas Shimokawa
28a3ab1518 Huami: save raw summary data in new binary blob column for later interpretation 2020-08-16 22:50:59 +02:00
vanous
20faa23843 Add events forwarding for HUAMI Bip, MB3 (#1980)
Remove unneeded function call

Re-done to simplify

Add media actions

Rename function to make meaning clearer

Add events forwarding for HUAMI Bip, MB3

Co-authored-by: vanous <petr@linuks.cz>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1980
2020-08-16 22:07:55 +02:00
Andreas Shimokawa
e73c881aa9 Revert "swap +/- :)"
This reverts commit e027f3d526.
2020-08-14 22:54:39 +02:00
vanous
c21206fbe4 Swapping min/max elevation 2020-08-14 22:53:00 +02:00
Andreas Shimokawa
e208549d1d Decode a bit more for new acticity summaries (Bip S)
This also adds disabled code to create a binary dump for better analysis
2020-08-11 00:06:24 +02:00
vanous
e027f3d526 swap +/- :) 2020-08-10 18:27:30 +02:00
vanous
4a4362eec4 Use textViews. Remove groups from data. 2020-08-10 10:56:54 +02:00
Andreas Shimokawa
555eb34575 Start to support activity summary version 518
Incomplete, lot of missing stuff. no swimming, etc.
2020-08-10 00:19:13 +02:00
vanous
ec3334f037 move averageStride to Activity 2020-08-09 21:56:58 +02:00
vanous
bce85beb21 Use localized names and dates. Pass only needed data between activities.
Better display view. Cleaning up.
Add km/h and calculate speed to it.
Special casing calc not per key but per unit
solved min/maxPace, localized several missing labels.
totalStride is Total strides in m. Fix missing start_label
2020-08-09 21:56:31 +02:00
vanous
c3887ddb86 minimum working version 2020-08-09 21:56:25 +02:00
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
Andreas Shimokawa
4326419209 Amazfit Bip S: allow flashing watchfaces (untested, and probably wont work) 2020-06-08 16:36:54 +02:00
Zhong Jianxin
44a9ce0267 Amazfit Bip S: Music support 2020-06-08 16:16:33 +02:00
Zhong Jianxin
c0558c570c Huami: Check if musicSpec/stateSpec is null 2020-06-08 16:16:33 +02:00
Daniel Dakhno
7939607beb Fossil HR: added "last notification" widget 2020-06-04 22:40:23 +02:00
Zhong Jianxin
8d145917f5 Huami: Use equals to compare musicspec/statespec 2020-05-19 23:08:46 +08:00
Zhong Jianxin
fc39221782 Amazfit Bip S: Support setting shortcuts 2020-05-14 10:05:49 +08:00
Zhong Jianxin
0e888aba3a Amazfit Bip S: Fix setting display items 2020-05-14 10:05:39 +08:00
Zhong Jianxin
f06c9fb8e7 amazfit bip s: Fix incoming call notification 2020-05-13 23:24:03 +02:00
Andreas Shimokawa
e844f81056 Huami: If no menu items were ever configured with Gadgetbridge use our default and do not disable everything on connect
Fixes #1853
2020-05-12 22:42:19 +02:00
Andreas Shimokawa
3bf8fb5e9d Fossil Hybrid HR: use highest bit of step data also
Confirmed with 144 steps per minute while running, would not have worked with previous fix
2020-05-06 14:54:52 +02:00
Andreas Shimokawa
748a62c2bd Fossil Hybrid HR: Try to fix step count 2020-05-06 10:56:05 +02:00
Andreas Shimokawa
82611d7a0d ZeTime: Send up to 16 upcoming calendar events on connect if option is enabled
This disables Pebble style calendar synchronization, which did not work for the ZeTime
since we have no handle to delete or change events, we have to rewrite everything again.

Either events were piling up or deleted when a new event was added to a Calendar.

For now it just syncs up to 16 upcoming events at connect.
2020-05-06 01:43:16 +02:00
Andreas Shimokawa
b5f877d169 ZeTime: remove non-working languages and add missing ones
Czech is untested since it is only present on newer firmware which I do not have.
2020-05-05 19:38:26 +02:00
Andreas Shimokawa
3884e5dee9 ZeTime: fix minute value in calendar events
And a few cleanups
2020-05-05 18:27:46 +02:00
Andreas Shimokawa
7517bffe9c ZeTime: Fix calendar event time and date (still barely usable, since only one event is sent, plus sunrise and sunset) 2020-05-05 16:23:43 +02:00
Andreas Shimokawa
80fb05e44a ZeTime: Fix could not synchronize calendar on connect
Fixes #1188
2020-05-05 14:11:46 +02:00
Andreas Shimokawa
1be42a4d84 ZeTime: Try to fix weather conditions on newer firmwares 2020-05-05 13:30:28 +02:00
Andreas Shimokawa
fefcf2d2b9 ZeTime: Fix setting the watch language and make the setting accessible from the per-device configuration menu
This did not work at all before, it was supposed to take the language from
Gadgetbridge App settings or the phone's default settings, but nothing was ever
sent to the watch.
2020-05-05 00:34:59 +02:00
Andreas Shimokawa
ad1e519723 ZeTime: Basic support for rejecting incoming calls 2020-05-04 21:53:51 +02:00
Andreas Shimokawa
94358e79b0 Amazfit GTR/GTR Lite: enable setting menu items (untested) 2020-05-03 20:16:35 +02:00
Andreas Shimokawa
dbba6f04b1 Add support for Amazfit GTR Lite (untested and incomplete)
See #1694
2020-05-02 23:40:07 +02:00
Andreas Shimokawa
33a1dbd1cd Amazfit GTS: Fix setting menu items with low mtu 2020-04-29 14:44:58 +02:00
Daniel Dakhno
a4a2bed80c Merge remote-tracking branch 'origin/master' 2020-04-25 01:57:10 +02:00
Daniel Dakhno
7cf4e64682 Fossil HR: adjusted alarms to have title and message 2020-04-25 01:57:02 +02:00
mamutcho
0177bdd171 * WatchX(Plus) - Add sleep and activity analysis
* WatchX(Plus) - Improve data presentation in Activity charts
* WatchX(Plus) - Fix some bugs in LongSitReminder
* Remove/replace duplicate strings for inactivity reminder
2020-04-24 23:46:43 +03:00
Daniel Dakhno
ca5d177608 Fossil HR: fixed some widget issues 2020-04-24 01:49:42 +02:00
Andreas Shimokawa
da23026e8f Merge remote-tracking branch 'mamucho/master' 2020-04-23 23:31:55 +02:00
Daniel Dakhno
69b2962113 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2020-04-23 04:08:26 +02:00
Daniel Dakhno
e41cd06537 Fossil HR: new alarm file format 2020-04-23 04:08:03 +02:00
mamutcho
7dab1cb0f7 Move settings to per device (gear icon)
Add missing files
2020-04-23 00:01:57 +03:00
Andreas Shimokawa
a851bb5cf1 Amazfit GTS: support setting menu items 2020-04-22 17:10:49 +02:00
Daniel Dakhno
18eec6b863 Fossil HR: raw activity dateien optional speichern 2020-04-22 01:27:06 +02:00
mamutcho
61da55e0de Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
 Conflicts:
	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
2020-04-20 14:42:20 +03:00
Andreas Shimokawa
89a6981e01 Fossil Hybrid HR: Do not hardcode userId to -1
This in theory - if ever implemented - allows multi user support
At least since we have that column it should not be hardcoded.
2020-04-20 00:26:04 +02:00
dakhnod
11d1fd08bd Add Fossil HR Activity Tracking (#1846) 2020-04-20 00:11:45 +02:00
Andreas Shimokawa
12d5f1d88b Amazfit GTR/GTS: Fix flashing watchfaces and _maybe_ firmware/res update (still untested) 2020-04-14 23:09:03 +02:00
Andreas Shimokawa
9a31ef39f3 Fossil Hybrid HR: Fix circles disappearing when connecting in force-white mode
Also fix black background when deleting a custom background
2020-04-13 00:15:44 +02:00
Daniel Dakhno
19534cbae8 Fossil HR: added graphic settings handler 2020-04-12 03:57:13 +02:00
Andreas Shimokawa
c24814f9c2 Fossil Hybrid HR: Fix setging background image when using widgets with circles on newer firmwares 2020-04-12 02:53:12 +02:00
Andreas Shimokawa
f28feb7b28 Fossil Hybrid HR: Show progress bar during firmware update 2020-04-11 00:40:39 +02:00
Andreas Shimokawa
1e93a8c1cc Fossil Hybrid HR: Experimenal firmware update support
TODO:
- progress bar
- set device state to firmware update

There is currently absolutely no feedback during install, just wait and pray
2020-04-10 00:51:16 +02:00
Andreas Shimokawa
89017ac58f Huami: Disable air quality indicator on Huami devices instead of showing 0
Thanks @ponyzucker

Closes #1834
2020-04-08 12:02:47 +02:00
Andreas Shimokawa
fbc123e8d0 Fossil Hybrid HR: Make widget circles a bit smaller (was cut off because of line width)
Also enable anti-aliasing
2020-04-08 11:56:33 +02:00
Daniel Dakhno
c75362c5ea Fossil HR: minor optimizations 2020-04-08 03:28:41 +02:00
Daniel Dakhno
b34e74494d Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr-background-image 2020-04-08 03:26:30 +02:00
Daniel Dakhno
bbf60248c3 Fossil HR: added button to delete background 2020-04-08 03:20:39 +02:00
Daniel Dakhno
379fa746a3 Fossil HR: added Background image and basic editing 2020-04-08 03:08:35 +02:00
Daniel Dakhno
791601f4bd Fossil HR: centralized widget settings option for all widgets 2020-04-08 03:00:45 +02:00
Daniel Dakhno
4be50a332d Merge remote-tracking branch 'origin/master' 2020-04-08 02:18:38 +02:00
Daniel Dakhno
e0c09f259f Fossil HR: removed per-widget circle settings 2020-04-08 02:18:13 +02:00
Gordon Williams
91a3a2f2c5 Bangle.js: change encoded char set to match Espruino's 8 bit fonts 2020-04-07 12:49:44 +02:00
Daniel Dakhno
b2a6b4b03b Fossil HR: added option to disable widget circle 2020-04-04 02:19:30 +02:00
Daniel Dakhno
9c50c61267 Fossil HR: improved white background generation 2020-04-02 02:31:26 +02:00
Daniel Dakhno
a700f98bb7 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2020-04-02 00:57:25 +02:00
Daniel Dakhno
ac1b1b0a7a Fossil HR: added inidividual notification IDs 2020-04-02 00:53:53 +02:00
Gordon Williams
d18bfd63ae Bangle.js: Don't set time if the option is turned off in settings
Bangle.js: Use SimpleTimeZone to attempt to get DST as well as the TimeZone
Bangle.js: Ensure TimeZone changes are saved to settings so they persist
2020-04-01 11:33:05 +01:00
Andreas Shimokawa
1a57c4db68 Amazift Bip Lite: Allow relaxing firmware checks to allow flashing of the regular Bip firmware (for the brave)
Closes #1819
2020-03-27 11:01:33 +01:00
Andreas Shimokawa
f04c9aed29 Amazfit Bip S: Fix empty notifications
Was reported to work in  #1822
2020-03-26 23:27:35 +01:00
Andreas Shimokawa
c66e9450d3 Try to blindly enable Amazfit Bip S
This is an initial bringup it will most probably fail in some areas

Related: #1822
2020-03-23 11:02:22 +01:00
mamutcho
8ad33475aa Sync Gadgetbridge version to 0.43.0
Lenovo Watch X (Plus) - add cyrillic support /please disable transliteration in settings/
2020-03-23 11:27:41 +02:00
mamutcho
c4ca247524 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2020-03-22 19:42:08 +02:00
Andreas Shimokawa
ea606713d7 Huami: Igore all-day events when syncing calendar events 2020-03-20 17:21:20 +01:00
Andreas Shimokawa
101e2c6664 Fossil Hybrid HR: allow setting vibration strength
Also allow re-fetching of configuration again (it updates battery levels)
2020-03-20 17:14:00 +01:00
hackoder
35c7ea4049 Set max limit on notification body (Fossil Hybrid HR). (#1820)
Set max limit on notification body.
2020-03-15 09:44:47 +01:00
Andreas Shimokawa
159a937cab Fossil Hybrid HR: Support button configuration in per-device settings
Related: #1751
2020-03-15 00:23:06 +01:00
mamutcho
10bf452017 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
 Conflicts:
	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java
	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
	app/src/main/res/values-bg/strings.xml
2020-03-13 19:08:34 +02:00
Andreas Shimokawa
8761bf96a4 Fossil Hybrid HR: Fix DST
Previously hour was mistakenly devided by 60000

Related: #1751
2020-03-13 08:49:00 +01:00
Andreas Shimokawa
1ccb7ab785 Fossil: Allow swiching off the device specific "Q" notification icon 2020-03-12 13:48:25 +01:00
Pauli Salmenrinne
8cfdd62eb4 FIX: Fix find-my-phone for android 10 with notifications. 2020-03-12 09:26:22 +01:00
Andreas Shimokawa
8cf7e259aa Huami: Fix crash when calendar event desctription or title was null
Fixes #1813
2020-03-04 23:13:57 +01:00
Andreas Shimokawa
ddd70f93fc Fossil Hybrid HR: option to force white background
Currently needs reconnect and one change to the widget configuration to be effective.

This might improve visiblity of the hands when using a model with gray hands
2020-02-27 13:38:45 +01:00
cpfeiffer
4d8ddb96cf Merge branch 'master' into fossil-q-hr 2020-02-26 22:47:35 +01:00
cpfeiffer
18ebd766c7 Make the constant static final 2020-02-26 22:46:50 +01:00
cpfeiffer
eb8e37d3a6 Sanity check for alarms index to avoid AIOOBE 2020-02-26 22:25:03 +01:00
cpfeiffer
c766b1d1b7 Make exception notification only visible in debug builds 2020-02-26 21:35:09 +01:00
Andreas Shimokawa
fb996c3301 Merge branch 'master' into fossil-q-hr 2020-02-26 20:30:57 +01:00
Andreas Shimokawa
9a114f640b Huami: Make experimental calendar sync feature optional 2020-02-24 14:19:06 +01:00
Andreas Shimokawa
d3ab597e8a Merge branch 'master' into fossil-q-hr 2020-02-22 10:16:51 +01:00
Andreas Shimokawa
1b416e18b9 introduce GBApplication.isRunningPieOrLater() and fix indent of last commit 2020-02-22 10:12:33 +01:00
Andrzej Surowiec
01ab7bcb54 Fix answering/rejecting calls on Android 9 2020-02-22 09:50:05 +01:00
Andreas Shimokawa
bffb8e8f87 Huami: send upcoming calendar events as reminder
TODO: make this optional, fix title not being displayed, do it proberly like we do on pebble
2020-02-19 09:41:50 +01:00
Andreas Shimokawa
71b76c8e8f Huami: add unused and untested co to send upcoming calender events as notifications 2020-02-18 22:20:57 +01:00
Andreas Shimokawa
fe7c4d5290 Fossil Hybrid HR: Play around with the weather app 2020-02-18 00:31:43 +01:00
Andreas Shimokawa
a90e8de040 Fossil Hybrid HR: Display caller name instead of number, when known 2020-02-16 23:05:21 +01:00
Andreas Shimokawa
6a30c2fa6f Fossil Hybrid HR: send weather as soon as it comes in, map correct icons 2020-02-16 22:56:43 +01:00
Andreas Shimokawa
23cbc2e7f1 Fossil Hybrid HR: Fix weather (unit must be lower case) 2020-02-16 13:09:08 +01:00
Andreas Shimokawa
977e94b359 Fossil Hybrid HR: experimetn with weather, does not work yet
I could change the widget icon but it always shows -- for temperature..
2020-02-16 02:19:48 +01:00
Daniel Dakhno
c57d5d3659 added find my device support 2020-02-16 01:41:14 +01:00
Daniel Dakhno
f9a4c1ad35 added call notification support (doesnt work on all phones) 2020-02-16 01:17:45 +01:00
Daniel Dakhno
17ade7e591 adjusted find my phone 2020-02-14 23:51:59 +01:00
Daniel Dakhno
b41495c2b8 device should not connect with invalid key anymore 2020-02-11 00:20:11 +01:00
Andreas Shimokawa
15a090b35e Merge branch 'master' into fossil-q-hr 2020-02-05 10:59:26 +01:00
TaaviE
26e4f1eb3e Fixed a small misspell 2020-02-05 02:03:51 +02:00
Andreas Shimokawa
3226d61ecd Mi Band 4: Make high MTU support optional
Fixes #1766
2020-02-04 10:04:01 +01:00
TaaviE
ed8323ad2e Refactored the iTag support class 2020-02-02 06:29:04 +02:00
Daniel Dakhno
829a306c64 added logic for call notification (WIP) 2020-02-02 03:16:48 +01:00
TaaviE
18d83febaa Added iTag support 2020-01-31 09:16:37 +01:00
cpfeiffer
a90cf2bfc3 Use constants for BLE services 2020-01-29 21:53:18 +01:00
Andreas Shimokawa
3722a9b432 Fossil HR: In notifications display sender, and if not available, notification title (like other devices do too) 2020-01-29 20:43:40 +01:00
Andreas Shimokawa
9cd4ee0f29 Fossil HR: display sender instead of App Name
(in the long run we need more icons to distinguish)
2020-01-29 20:27:07 +01:00
Andreas Shimokawa
7d73ca3df2 Fossil HR: Implement next/previous track 2020-01-29 20:03:14 +01:00
cpfeiffer
7618ec39a2 Use try-with-resources for db access 2020-01-29 20:01:20 +01:00
cpfeiffer
f24dc0c1cb Cleanup file handling a bit 2020-01-29 20:01:20 +01:00
Andreas Shimokawa
0a4d8499fa Fossil HR: Implement Find Phone
There is still no acknowledgement, so if the watch gets a timeout it cant stop the phone from ringing anymore.

If you stop ringing from the watch during before the timeout hits, stopping works...
2020-01-29 19:44:54 +01:00
Andreas Shimokawa
23f4752296 Fossil HR: Merge StringUtils in generic class, fix terminateNull()
This fixes string truncation when using non ascii UTF-8 characters.
Also fixes the Debug screen for Fossil HR
2020-01-29 19:21:43 +01:00
cpfeiffer
5e8004756f A little cleanup 2020-01-29 19:11:24 +01:00
cpfeiffer
4293db5514 Cleanup toast/logging 2020-01-29 17:37:54 +01:00
Andreas Shimokawa
1c91c037a8 Merge branch 'master' into fossil-q-hr 2020-01-29 17:22:21 +01:00
Daniel Dakhno
db8de891e4 added music control (except skipping) 2020-01-27 12:38:20 +01:00
Dmitry Markin
b36fe52a65 Mi Band 2: properly stop a call notification when text notifications are disabled 2020-01-21 13:49:17 +03:00
Daniel Dakhno
132d97ee95 created UI to design custom widgets 2020-01-19 04:01:57 +01:00
Daniel Dakhno
4c86d227f1 removed proprietary background image 2020-01-18 12:08:02 +01:00
Daniel Dakhno
13d07751ae fixed crash on image not found 2020-01-18 12:06:36 +01:00
Daniel Dakhno
c0107676e6 Merge remote-tracking branch 'origin/fossil-q-hr' into fossil-q-hr 2020-01-16 13:51:50 +01:00
Daniel Dakhno
7d877c9486 hopefully fixed connection state bug 2020-01-16 13:51:36 +01:00
dakhnod
f7c21e9e62 eliminated duplicate mtu change effect 2020-01-15 01:25:58 +01:00
dakhnod
fd8800607c added widget alpha channel 2020-01-13 03:35:06 +01:00
Daniel Dakhno
e66c70ece8 Merge remote-tracking branch 'origin/fossil-q-hr' into fossil-q-hr 2020-01-13 00:40:17 +01:00
Daniel Dakhno
a4d4d6ed91 customized asset file handling 2020-01-13 00:40:06 +01:00
dakhnod
88cb704719 fixed notification filters 2020-01-12 23:48:13 +01:00
Dmitry Markin
10c9b07c69 Control alarm snooze mode on MiBand2 2020-01-12 12:02:04 +03:00
dakhnod
4a9bd67101 customized widgets 2020-01-11 09:26:03 +01:00
Daniel Dakhno
ea6e617d50 removed private key 2020-01-09 15:50:21 +01:00
Daniel Dakhno
ce880b69c9 added heart rate measurement base 2020-01-09 15:35:47 +01:00
Daniel Dakhno
30b6837012 added asset sub handle 2020-01-09 15:34:40 +01:00
Daniel Dakhno
cd28b4d21b fixed typo 2020-01-09 15:24:29 +01:00
Daniel Dakhno
5badedb466 Merge remote-tracking branch 'origin/fossil-q-hr' into fossil-q-hr 2020-01-09 14:45:36 +01:00
Daniel Dakhno
adf135ef10 fixed dangling request and bufferoverflow 2020-01-09 14:45:24 +01:00
License Bot
d6fa5d0dd5 Update license headers 2020-01-09 10:44:32 +01:00
Andreas Shimokawa
7c15ddb471 Amazfit Bip: Remove RES file limit (for BipOS) 2020-01-08 22:44:21 +01:00
vanous
7394b1cce3 Add-Buttons-Events-Config (#1761) 2020-01-08 19:58:31 +01:00
Andreas Shimokawa
378475aa3d Amazfit Bip: Bump res size limit for Bip OS 0.5.2 2020-01-08 00:10:32 +01:00
dakhnod
5cf7dba17b fixed asset handle 2020-01-07 21:44:24 +01:00
dakhnod
b04ff78e90 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2020-01-07 21:02:44 +01:00
dakhnod
1ebf79e54a changed json requests file handle 2020-01-07 03:27:22 +01:00
Daniel Dakhno
02fb7a0e43 changed file handle handling 2020-01-06 15:28:24 +01:00
Daniel Dakhno
337c54498c fixed import error 2020-01-06 15:08:54 +01:00
Daniel Dakhno
fb8b4b4ce6 fixed off-by-one error 2020-01-06 15:07:52 +01:00
Daniel Dakhno
197243bf7a fixed crash 2020-01-06 15:07:23 +01:00
Daniel Dakhno
9e37f13821 adjusted response handling 2020-01-05 15:09:30 +01:00
Andreas Shimokawa
1c82c4e8e1 Huami: make time format 12h/24h configurable (was automatic before)
Fixes #1736
2020-01-04 23:40:50 +01:00
dakhnod
98540fbdb6 added render property to widget intent 2020-01-04 00:24:29 +01:00
Daniel Dakhno
822759c238 Merge branch 'fossil-q-hr' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2020-01-03 18:04:30 +01:00
Daniel Dakhno
0cf1b5966f added custom widgets 2020-01-03 18:03:20 +01:00
cpfeiffer
00830218e7 Q HR: Allow specifying key during discovery 2020-01-03 12:24:34 +01:00
cpfeiffer
2d3f5384fd Unregister the receivers on dispose() 2020-01-03 12:23:57 +01:00
Daniel Dakhno
961c0aa97c added some widget example code (WIP) 2020-01-03 02:33:47 +01:00
Daniel Dakhno
d2ede421c1 added custom wuidget code (WIP) 2020-01-03 00:15:48 +01:00
dakhnod
1e2b0ce242 Merge remote-tracking branch 'origin/fossil-q-hr' into fossil-q-hr
# Conflicts:
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java
2020-01-02 02:08:46 +01:00
dakhnod
2242aa5ac9 added RLE encoding helper 2020-01-02 02:08:04 +01:00
dakhnod
9d34447b0d changed image and asset related classes 2020-01-02 02:07:53 +01:00
Da Pa
71a411bfef Add a JYouSupport base class as suggested by @ashimokawa
- has common code used by TeclastH30Support and Y5Support
2020-01-01 16:12:06 +02:00
Da Pa
35dbbd6a31 Merge branch 'master' into y5_patch_test
# Conflicts:
#	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/jyou/TeclastH30/TeclastH30Coordinator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/DeviceHelper.java
#	app/src/main/res/values/strings.xml
2020-01-01 06:55:54 +02:00
Daniel Dakhno
20cf15d91f added battery level warning 2019-12-31 15:51:52 +01:00
dakhnod
19d68c62c6 added music info (controls WIP) 2019-12-31 15:25:30 +01:00
dakhnod
8796e20676 added time set 2019-12-31 03:35:44 +01:00
dakhnod
0aaaabcc11 code cleanup 2019-12-31 03:35:11 +01:00
dakhnod
c4d63a80e1 added menu handling and error status 2019-12-31 03:14:20 +01:00
dakhnod
5ca4816b01 added menu handling 2019-12-31 03:13:31 +01:00
dakhnod
541561e247 added menu request 2019-12-31 03:13:13 +01:00
dakhnod
6f012c2109 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2019-12-30 21:46:41 +01:00
Daniel Dakhno
4ee2b006b7 added json button configuration 2019-12-30 20:23:20 +01:00
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
mamutcho
037c037032 Add option to force time sync. 2019-12-23 13:33:39 +02:00
mamutcho
57df6ec703 Auto time calibration 2019-12-23 11:29:09 +02:00
mamutcho
8cc5ed04cd Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-23 11:22:11 +02:00
Andreas Shimokawa
6f91e6053e cleanup autoconnectintervalreceiver when unregistering 2019-12-22 12:47:43 +01:00
mamutcho
e6049438e7 Code cleanup and bug fixes 2019-12-21 18:48:19 +02:00
mamutcho
cfa0b6bf21 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-20 18:01:04 +02:00