Dmitriy Bogdanov
6f79fc7afa
Hide timestamp from device notifications
2021-05-29 23:17:40 +02:00
Dmitriy Bogdanov
436e5b5c70
Add a separate "low battery" notification channel
2021-05-29 23:17:40 +02:00
Dmitriy Bogdanov
b719f626c5
Rename notification channels
2021-05-29 23:17:39 +02:00
Dmitriy Bogdanov
e28beaae48
Refactoring: localize notification handling in GB
...
* Handle all notifications via GB.
* Create all notification channels in one place.
* Lazily init notification channels.
* Re-create notification channels to update their localized names.
2021-05-29 23:17:39 +02:00
Arjan Schrijver
25324c61b9
Fossil Hybrid HR: Use GB app manager ( #2302 )
...
This PR replaces (just for the Fossil Hybrid HR) the current watchface configuration screen with the native Gadgetbridge app manager. Bonus feature: when multiple watchfaces are installed on the watch, they can be switched by tapping on them.
Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2302
Co-authored-by: Arjan Schrijver <arjan5@noreply.codeberg.org>
Co-committed-by: Arjan Schrijver <arjan5@noreply.codeberg.org>
2021-05-29 16:42:32 +02:00
TaaviE
6403e13c9b
SerializedName should be a bit more explicit and theoretically allows reflectionless deserialization
2021-05-29 15:26:05 +03:00
TaaviE
0b021d72ab
Made the firmware version extraction a bit more robust and added annotations to keep data classes after optimizations
2021-05-29 15:01:35 +03:00
Andreas Shimokawa
348f459e3f
Huami: Send "about you" preferences to device immediately when changing values
...
Closes #2297
2021-05-27 23:11:00 +02:00
Arjan Schrijver
9dac0a80c3
Fossil Hybrid HR: Add watch app and watchface support to install handler
2021-05-24 21:49:54 +02:00
Andreas Shimokawa
bba74cb5b4
Mi Band 6: Support unicode emoji being sent
2021-05-24 17:27:34 +02:00
Andreas Shimokawa
cbadb9c7ae
Mi Band 6: allow firmware update
...
Also whitelist FW 1.0.1.36 which I just flashed though Gadgetbridge
Tracking Issue: #2263
2021-05-24 16:51:09 +02:00
Andreas Shimokawa
090e0c7b33
Mi Band 6: support flashing watchfaces
...
Tracking Issue: #2263
2021-05-24 15:47:27 +02:00
Daniel Dakhno
f68582eb46
Fossil HR: fixed last notification widget
2021-05-22 23:32:36 +02:00
Arjan Schrijver
9f459b1da9
Fossil Hybrid HR: Move commute actions to device specific settings
2021-05-22 22:28:26 +02:00
Andreas Shimokawa
268bbd341f
Domyos T540C: update console when data changes
2021-05-18 19:15:04 +02:00
Andreas Shimokawa
f083e79f5d
update changelogs
2021-05-17 12:17:23 +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
65f006d70b
Amazfit GTS/GTR familiy: Allow flashing newer AGPS bundles
...
These are packed uuih files. POC code to generate them:
https://codeberg.org/Freeyourgadget/Gadgetbridge-tools
2021-05-15 22:47:38 +02:00
Andreas Shimokawa
083fdea225
Experimenting with the Domyos T540C treadmill
2021-05-11 14:30:25 +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
Arjan Schrijver
beb1597b75
Fossil Hybrid HR: Hide old settings on newer firmwares
2021-05-11 11:22:55 +02:00
Arjan Schrijver
be73e84829
Fossil Hybrid HR: Restructure settings menus for calibration, file management and physical buttons
2021-05-11 11:22:55 +02:00
jhey
58d3eaaa9f
WIP initial Miband 6 support ( #2277 )
...
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2277
Co-authored-by: jhey <jhey@noreply.codeberg.org>
Co-committed-by: jhey <jhey@noreply.codeberg.org>
2021-05-09 22:52:36 +02:00
Andreas Shimokawa
a1005ae479
Add "list wrist for background light" setting to Amazfit Neo settings
...
Closes #2285
2021-05-09 08:56:28 +02:00
TaaviE
e4d70ade2a
Improved PineTime/InfiniTime firmware DFU metadata parsing and checks
2021-05-03 00:12:51 +03:00
Andreas Shimokawa
97a8aebdb3
Fossil Hybrid HR: Fix crash and connection problem when using non-ascii in quick replies
2021-04-29 22:38:44 +02:00
Arjan Schrijver
2f37d4c839
Fossil Hybrid HR: Dismiss incoming call with a quick SMS reply ( #2264 )
...
Merge branch 'master' into fossil_hr_quick_replies
Fossil Hybrid HR: Allow between 1 and 16 quick replies to be configured
Fossil Hybrid HR: Dismiss incoming call with a quick SMS reply
Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2264
Co-Authored-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
Co-Committed-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
2021-04-27 12:51:14 +02:00
beardhatcode
32a6049207
huami: send windspeed in beaufort ( #2247 )
...
fixup! huamni: send windspeed in beaufort
BipS: send windspeed as km/h
huami: Always send sunrise and sunset
There is no need to look at send_sunrise_sunset, this is peble spesific
because it could be annoying on that platform (an extra line in the
timeline). On huami devices, the watchface desides what to show.
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
Mi5: set supportsSunriseSunsetWindHumidity to true
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
huamni: send windspeed in beaufort
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
Co-authored-by: Robbert Gurdeep Singh <git@beardhatcode.be>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2247
Co-Authored-By: beardhatcode <beardhatcode@noreply.codeberg.org>
Co-Committed-By: beardhatcode <beardhatcode@noreply.codeberg.org>
2021-04-21 17:12:20 +02:00
Robbert Gurdeep Singh
2d7bd6ae7b
clean: remove unused slots in calander for huami devices
...
If an event is deleted, it may still remain on the device without this
change
2021-04-21 16:38:36 +02:00
Arjan Schrijver
31d2563a18
Fossil Hybrid HR: Show correct notification icons ( #2251 )
...
Co-Authored-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
Co-Committed-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
2021-04-20 09:55:27 +02:00
Vianney le Clément de Saint-Marcq
12baabe3c7
Amazfit GTS2/GTR2: Send windspeed and sunrise/sunset
2021-04-07 17:59:30 +02:00
Vianney le Clément de Saint-Marcq
c1b7ce2308
Amazfit GTS2/GTR2: Fix menu items ( #2249 )
...
Amazfit GTS2/GTR2: Add missing menu items
Fixes #2193
Fixes #2230
Fixes #2242
Amazfit GTS2/GTR2: Fix setting menu items
At least on the GTR2e, including the "watchface" menu item causes the
configuration request to be ignored. Assuming the other GTS2 and GTR2
variants behave the same, this patch ensures the forceWatchface argument
is set to false when setting display items.
Additionally, we now use the correct resource ID for the default
settings.
Co-authored-by: Vianney le Clément de Saint-Marcq <code@quartic.eu>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2249
Co-Authored-By: Vianney le Clément de Saint-Marcq <vianney@noreply.codeberg.org>
Co-Committed-By: Vianney le Clément de Saint-Marcq <vianney@noreply.codeberg.org>
2021-04-07 17:58:24 +02:00
Andreas Shimokawa
b7e0e6e44d
InfiniTime: Implement find device by simulating a phone call
2021-04-05 17:40:47 +02:00
Andreas Shimokawa
787216f1bc
InfiniTime: support title for notifications on firmware 0.15
...
also drop support for firmware priror to 0.9
2021-04-05 13:05:24 +02:00
Andreas Shimokawa
bb1df11650
InfiniTime: Add support for battery info
2021-04-05 12:53:05 +02:00
Andreas Shimokawa
9aed3a6b25
Relax check for UIHH header, there seem to be some with 0x02 at position 4, dont know if this is a version or whatever
2021-04-03 18:59:07 +02:00
Andreas Shimokawa
7698b84826
Amazfit GTR2: probably finally fix firmware / watchface installaation
2021-04-03 18:30:20 +02:00
vanous
71cb53a440
adjust Steps Charts steps values offset to account for large phone screen sizes
2021-04-02 16:08:02 +02:00
vanous
e63b6986c6
make Activity Charts dates move as calendar months and to go to now if jumping past today
2021-04-02 16:07:36 +02:00
vanous
63fc6b7ab6
make Battery Info time span jump as calendar months and not as days
2021-04-02 16:06:21 +02:00
Andreas Shimokawa
417923aef1
Amazfit GTR2/GTS2: Prevent emoji transliteration. Seems to support emoji.
2021-04-01 19:23:59 +02:00
Andreas Shimokawa
db9a0c0a76
Try to fix flashing watchfaces on GTR2/GTS2
2021-04-01 16:50:08 +02:00
vanous
b65c10907f
allow fitness apps to send ongoing notification
2021-03-28 22:39:34 +02:00
vanous
9fc02ff09b
move transliteration to per device to DeviceCommunicationService, plus migration, fix #2237
2021-03-28 13:33:08 +02:00
Andreas Shimokawa
51c87f138d
Amazfit Neo: re-enable firmware flashing support and fix ft installation
2021-03-27 09:16:32 +01:00
Andreas Shimokawa
c410f0e4a7
Amazfit Neo: Implement firmware update but keep it disabled for now
...
Flashing to the latest firmware breaks Gadgetbridge compatibility
2021-03-24 23:49:52 +01:00
Andreas Shimokawa
9dc4dde5e7
Amazfit Neo: Support sound settings
2021-03-24 20:02:48 +01:00
Andreas Shimokawa
6f6db01bce
Fix list exception (regression from previous Neo commit)
2021-03-24 10:49:46 +01:00
Andreas Shimokawa
1c3398a319
Amazfit Neo: Fix notifications
2021-03-24 09:51:51 +01:00
Andreas Shimokawa
a234c1d527
Amazfit Neo: Fix setting menu items
...
- Fixes a bug with cycling through entries
- adds steps, distance, calories, battery
- removes world clock (does not seem to work)
2021-03-24 00:44:13 +01:00
cpfeiffer
e9766da89c
Fossil Hybrid HR: fix initialization on older firmwares
...
Avoid NPE when no applications are available
2021-03-21 19:27:32 +01:00
Robbert Gurdeep Singh
7c213f5807
Huami: show event title for events as reminder
...
The Mi app only has a reminder field and no description field, so
I'm assuming we can only send one string.
In bffb8e8f87
it was noticed that the
title was not displaying so I'm changing this for all Huami devices.
2021-03-14 22:21:58 +01:00
Robbert Gurdeep Singh
99aa59e7da
Add friendly reminder of number of bytes to javadoc
2021-03-14 22:21:58 +01:00
Andreas Shimokawa
91b27901e7
Fossil Hybrid HR: prevent hard crash when choosing a remote URL in FIle Mananger
2021-03-13 22:00:12 +01:00
Andreas Shimokawa
2d17f06d6d
Fossil Hybrid HR: Fix resolving file path from chosen file for many file managers
...
Tested with Lineage 17.1 file chooser.
2021-03-13 21:31:28 +01:00
Andreas Shimokawa
2e67321adb
Fossil Hybrid HR: do nothing in renderWidget() on firmware 1.0.2.20 or later
...
It seems that newer firmwares have watchfaces which are a special kind of apps
This means that a simply specifying the layout of widget does not longer work
(At least we do not know how)
This commit fixes bluetooth communication being completely stuck when
Gadgetbridge tries to render widgets (for example when switching force
white mode or when having the notification widget enabled in settings)
2021-03-12 22:22:28 +01:00
Andreas Shimokawa
ae40afb827
Revert "Fossil Hybrid HR: Do not try remove notifications from the watch in unauthenticated mode"
...
This reverts commit faf8ca55c1
.
2021-03-12 00:16:00 +01:00
Andreas Shimokawa
faf8ca55c1
Fossil Hybrid HR: Do not try remove notifications from the watch in unauthenticated mode
...
This does not seem to work and breaks all further communication with the watch.
2021-03-11 23:53:19 +01:00
Arjan Schrijver
2cbb42ba53
Fossil Hybrid HR: disable unsupported functions for newer firmwares
2021-03-11 17:19:31 +01:00
Andreas Shimokawa
54409fbe55
Pebble: Make use of new generic per-device autoremove notification setting
2021-03-08 15:05:33 +01:00
Andreas Shimokawa
ecc0f78848
Fossil Hybrid HR: move autoremove notifications settings to own xml for reusability
2021-03-08 14:58:54 +01:00
Arjan Schrijver
cff4b65fb8
Fossil Hybrid HR: Sync notification dismissals to watch ( #2219 )
...
Fossil Hybrid HR: Move check for autoremove_notifications pref to NotificationListener
Fossil Hybrid: Rename logger to LOG and replace printStackTrace calls
Keep and maintain list of notifications pushed to device
Fossil Hybrid HR: Make autoremove notifications toggleable in device settings
Fossil Hybrid HR: Sync notification dismissals to watch
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2219
Co-Authored-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
Co-Committed-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
2021-03-08 14:29:08 +01:00
Daniel Dakhno
b4a115d2c3
UM25: fixed bonding style
2021-03-08 12:29:21 +01:00
Daniel Dakhno
b7b45e199d
UM25: removed lambda expression
2021-03-08 12:29:21 +01:00
Daniel Dakhno
6b4cec5996
UM25: fixed formatting
2021-03-08 12:29:21 +01:00
Daniel Dakhno
0fecdf0e18
UM25: added base device support for UM25C voltage meter
2021-03-08 12:29:18 +01:00
Arjan Schrijver
627bf033c3
Fossil Hybrid HR: Fix up/back navigation and add titles
2021-03-08 12:08:57 +01:00
vanous
fdea7ed24d
Add header-title to Activity detail
2021-03-08 09:59:14 +01:00
vanous
01e99d2809
Add chart to each item in Activity list
2021-03-07 19:42:14 +01:00
Andreas Shimokawa
5746c9aa63
Also ignore com.google.android.dialer, not only com.android.dialer where appropriate
...
Should fix #2209
2021-03-05 19:27:32 +01:00
vanous
69d9695eac
Use Gb DBaccess for Battery level storing
2021-03-05 11:57:00 +01:00
vanous
6aeb297aa5
Battery info - use Gb DBAccess
2021-03-05 09:05:01 +01:00
Arjan Schrijver
0f5f036057
Fossil Hybrid HR: Make more strings translatable
2021-03-04 13:25:32 +01:00
Andreas Shimokawa
9179b2f51e
Wasp-OS: Fix crash on Android<8
...
Fixes #2216
2021-03-04 13:07:59 +01:00
vanous
e848a7cb71
Add Activity list dashboard summary calculations
...
Accessible via FAB in Activity list
Adds DebugActivity checkbox to show large date range
2021-03-03 19:03:02 +01:00
Andreas Shimokawa
1959f1c579
Sony SWR12: Fix broken support
...
The wasp-os commit was missing a break :/
2021-03-03 18:27:03 +01:00
vanous
47d211013c
Remove description label from Battery chart
2021-02-27 11:05:16 +01:00
vanous
5758c9e564
Adds ongoing activity snackbar + preference
2021-02-27 10:51:58 +01:00
vanous
b8f42b6bee
Separate some UI components into reusable widgets
2021-02-27 10:48:13 +01:00
vanous
a6de25918b
Make Battery chart to use AbstractGBFragment with a bg thread
2021-02-27 10:31:43 +01:00
Andreas Shimokawa
00e5f1caf2
InfiniTime: Implement call control and notification
2021-02-22 23:35:34 +01:00
Stephan Lachnit
0118469c9f
InfiniTime: fix music UUIDs for real
...
Fixup for b9647e26c3
Closes #2199
2021-02-21 14:32:13 +01:00
vanous
0a2920a5ec
Battery Info: add styled date range UI
2021-02-14 18:33:32 +01:00
Stephan Lachnit
b9647e26c3
InfiniTime: update music UUIDs ( #2200 )
...
Merge branch 'master' into p/infinitime-music-uuids
InfiniTime: update music UUIDs (Closes #2199 )
Updated UUIDs from ccbe2e8e1b
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2200
Co-Authored-By: Stephan Lachnit <stephanlachnit@protonmail.com>
Co-Committed-By: Stephan Lachnit <stephanlachnit@protonmail.com>
2021-02-14 00:47:44 +01:00
vanous
cde018399a
add time span and select date
2021-02-13 23:28:16 +01:00
vanous
99830f5a84
flip and scale GPX canvas
2021-02-13 18:10:42 +01:00
Andreas Shimokawa
79c73e378b
Amazfit Bip S Lite: Fix broken support (probably)
2021-02-11 15:01:02 +01:00
Andreas Shimokawa
b294fd97d5
Amazfit GTS2e: Really fix broken support (probably)
2021-02-11 12:56:00 +01:00
Andreas Shimokawa
54f96288d9
update changelog, bump version
2021-02-09 22:33:17 +01:00
Andreas Shimokawa
f23c51f3d3
Change Amazfit X key and fix GTS2e key (was the same as GTR2e)
2021-02-08 00:07:16 +01:00
Stefan Bora
5d4f70499d
Added support for Amazfit X
2021-02-07 23:59:26 +01:00
pommes
6fb483c3a6
Fix device name for Amazfit GTS 2e ( #2192 )
...
Fixes device name for Amazfit GTS 2e
Co-Authored-By: pommes <pommes@noreply.codeberg.org>
Co-Committed-By: pommes <pommes@noreply.codeberg.org>
2021-02-07 23:19:39 +01:00
Andreas Shimokawa
6d02e8c488
Amazfit GTS/GTR2 (all variants): Try to fix missing menu items
...
This was reported in #2189 for the GTS 2 Mini, but let's assume it is the same problem for all variants.
2021-02-07 16:23:45 +01:00
vanous
c167724415
disable battery info activity
2021-02-06 22:46:42 +01:00
Andreas Shimokawa
85130a15d8
Inital support for Amazfit GTS 2e
...
Also fix missing break in Zepp E block
2021-02-06 21:56:28 +01:00
Andreas Shimokawa
bf9b45f964
Charts: Also count steps for not worn samples
...
The Mi Band 5 also seems to display those steps
It could also be that the sample type is wrong in Gadgetbridge
2021-02-05 19:17:35 +01:00
Andreas Shimokawa
092d527158
Move Amazfit GTR 2e code in the Amazfit GTR 2 package, they are too similar
2021-02-04 23:15:16 +01:00
vanous
3e04778696
initial battery level collector and simple chart
2021-02-04 21:21:38 +01:00
Daniel Thompson
9e6c121dd9
wasp-os: Introduce a new device type
...
wasp-os is an open-source firmware, based on MicroPython, for smart
watches that are based on the nRF52 family of microcontrollers.
Currently this includes the hacker friendly PineTime from Pine64 as
well as the Colmi P8, which is a popular device with watch modders.
For GadgetBridge integration wasp-os is very similar to handling
Espruino/BangleJS: the watch will interact with the bridge by
providing REPL-over-BLE via the Nordic UART service.
wasp-os implements the same JSON-wrapped-in-GB()-function-call
protocol used for BangleJS buy the differences in capability
between the two firmwares lead us to introducing a different
device type... and also a different icon since the lead devices
for wasp-os are square!
I plan to keep as aligned as possible with the BangleJS device
type, however at present the major differences include:
1. Specify the bonding style (wasp-os currently does not support
bonding... so no need to ask).
2. Disable some of the not-yet-implemented features.
3. Reduce the minimum packet size to fix communication reliability
issues with the MicroPython NUS implementation.
4. Switch the date/time setting syntax from JavaScript to MicroPython.
2021-02-04 20:03:44 +01:00
Daniel Dakhno
1981998fc7
Fossil HR: splitted button config and menu config
2021-02-03 22:25:20 +01:00