vanous
b24da9a409
Activity info into Device Card: use correct coordinator method
...
- use correct DeviceCoordinator method supportsActivityTracking()
- remove placeholders from xml
- clarify comments in DeviceCoordinator
- clean up some previously added unused imports
2021-11-18 16:06:56 +01:00
Arjan Schrijver
c15833f149
Fossil Hybrid HR: Add button for removing the watchface background image
2021-11-18 13:39:46 +01:00
Petr Vaněk
21ea7b6cc2
Add Activity info into Device Card. ( #2453 )
...
- this tries to address a common request to display user data up front
- i would make this via a fragment, but RecyclerView doesn't like Fragments
- (fragments would make it much easier to also add a charts like view,
like we use on the Activity list tab)
- i added configuration that allows to disable it partially or fully
Co-authored-by: Petr Vaněk <vanous@noreply.codeberg.org>
Co-committed-by: Petr Vaněk <vanous@noreply.codeberg.org>
2021-11-18 12:22:43 +01:00
Arjan Schrijver
1d9eb9f332
Fossil Hybrid HR: Move watchface settings to proper settings screen
2021-11-18 12:14:26 +01:00
José Rebelo
91c317fda2
Sort devices by alias, if available
2021-11-17 09:04:23 +01:00
José Rebelo
39ddb732f7
Sony WH-1000XM3: Fix ACK sequence number handling
2021-11-17 00:14:36 +00:00
José Rebelo
6db775a9df
Sony WH-1000XM3: Simplify protocol code
2021-11-17 00:07:18 +00:00
José Rebelo
d2fe8e5607
Sony WH-1000XM3: Fix payload size check
2021-11-16 21:03:10 +00:00
Damien Gaignon
ed47a0fcf7
Change CRC16 method
...
Be able to use a custom crc value for initialization.
Keeping compatibility with previous method.
2021-11-13 21:43:05 +01:00
Arjan Schrijver
d688f42735
Always allow custom text widget intents
2021-11-13 10:18:49 +01:00
Arjan Schrijver
1a5ebe2ee7
Support multiple 2nd-TZ and Custom widgets
2021-11-13 10:10:38 +01:00
Daniel Dakhno
cd183eb953
added custom widget apps to gadgetbridge
2021-11-13 10:10:38 +01:00
Daniel Dakhno
bc60b66abf
added capability to push config via intents
2021-11-13 10:10:38 +01:00
vanous
be5cde9405
Galaxy Buds: remove some debug, fine-tune icons. Edit changelog
2021-11-13 09:13:20 +01:00
vanous
fcb91fd544
Add support for Galaxy Buds Live
2021-11-12 18:01:50 +01:00
vanous
a490e9f555
Galaxy Buds: migrate ambient volume preference to SeekBar
...
- more unique detection of the original Buds series
- always bond
2021-11-07 11:05:33 +01:00
vanous
77cf6f8ba4
Perform battery config when new device is being paired
2021-11-07 10:32:29 +01:00
Mave95
aa7c7f785a
Add Nekogram X to Telegram notifications
2021-11-07 01:00:29 +01:00
José Rebelo
bf5eebd411
Sony WH-1000XM3: Initial Support
2021-11-06 23:43:31 +00:00
Daniele Gobbetti
b0f22815b0
Reset the battery icon if battery level is unknown
2021-11-05 18:33:33 +01:00
vanous
1f361ee844
Nothing Ear(1): add custom icons for batteries
2021-11-04 09:50:56 +01:00
vanous
678cf006e0
Move devicesettings_transliteration to settings of each device
2021-11-03 17:13:22 +01:00
vanous
a6a6bfef17
Galaxy Buds: add custom icons for batteries
2021-11-03 16:06:54 +01:00
vanous
a7fbda5fe1
Multi-battery: further improvements:
...
- add new icons
- ensure correct default icon
- modify Battery Info activity
2021-11-02 21:15:25 +01:00
Daniele Gobbetti
64b52e5edf
Nothing Ear (1): add multiple batteries support
2021-11-02 21:15:25 +01:00
vanous
3609af3a18
Add batteryConfig
...
- clarify battery index
- icon and label settings
2021-11-02 21:15:25 +01:00
Daniele Gobbetti
1ce0cd683e
Fix forgotten batteryState index
2021-11-02 21:15:25 +01:00
vanous
80207b34bc
Galaxy Buds: add multiple batteries support
2021-11-02 21:15:15 +01:00
vanous
788f4d8ae0
Add support for multiple batteries per device
2021-11-02 14:37:47 +01:00
Andreas Shimokawa
998f8775d9
Fix bug in non-DST time where still being in DST was assumed
...
This affects InfiniTime and Huami
For InfiniTime it probably resulted in the wrong time being displayed
For Huami is resulted to request the wrong data from the band/watch
We used timezone.getDSTOffset() which always returns the DST offset (also in non
DST time)
We need to pass the time being observed to calendar.getOffset() to get the real
offset including DST at that specfic time which then either includes DST offset or not.
2021-11-02 11:34:55 +01:00
Daniele Gobbetti
f8cc520ede
BtClassic: generalize device initialization
...
Also override the new generic initialization for Nothing Ear (1)
2021-10-31 15:54:36 +01:00
vanous
da0c43f77d
Galaxy Buds: adding initial support for Galaxy Buds 2019
2021-10-31 07:27:16 +01:00
Andreas Shimokawa
3db6e5d9ec
Prevent crash when receiving broken weather data from TinyWeatherForecastGermany
2021-10-28 10:32:52 +02:00
vanous
67b1dd2051
FitPro: add LH716 to list of supported names, fix #2418
2021-10-26 09:33:14 +02:00
Andreas Shimokawa
3a642251fe
Amazfit Bip U Pro: Support flashing AGPS updates
...
Use Huafetcher for fetching the data.
2021-10-22 15:46:54 +02:00
Andreas Shimokawa
1341501ac4
Amazfit Bip U Pro: Allow setting more languages, whitelist FW 1.0.2.92
2021-10-22 14:08:39 +02:00
Andreas Böhler
8a3fc19285
Add support for Casio STB-1000. Limitations of GB-5600B/GB-6900B apply.
2021-10-18 18:23:35 +02:00
HelloCodeberg
ca4f996e9b
add_rotate_watchface_button_hybridhr ( #2408 )
...
This adds a button which rotates the selected watchface by 90 degrees counter-clockwise to the hybridqr.
I did not manage to fix the autoorientation.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2408
Co-authored-by: HelloCodeberg <hellocodeberg@noreply.codeberg.org>
Co-committed-by: HelloCodeberg <hellocodeberg@noreply.codeberg.org>
2021-10-14 11:00:37 +02:00
vanous
d3d4130a95
Reworking notification management
...
- rename some methods to better indicate their functions.
- make the notification filter to be allow or deny list,
solves #2256 and #336
- make app word filter to behave based on allow/deny settings.
- make Pebble notifications to honor the allow/deny settings.
- add generic "debug function" to Debug activity.
- add Message privacy mode settings, solves #2279
2021-10-10 11:49:13 +02:00
Daniele Gobbetti
9ad7e210b7
Nothing Ear (1): Read audio status from device and various fixes:
...
- add support for ANC-light mode
- handle multiple GBDeviceEvents
- add fake fw and hw versions to make DBHelper happy
- fix battery charge detection logic
- extract some strings to resources
2021-10-07 20:25:26 +02:00
Andreas Shimokawa
ebe2558690
Huami: clean up supported languages
2021-10-07 18:33:58 +02:00
Andreas Shimokawa
588bcffaab
Mi Band 3/4: Use language list from coordinator, remove array
2021-10-07 14:52:21 +02:00
Andreas Shimokawa
bef015b0c2
Add new getSupportedLanguageSettings() to coordinator to get rid of all those arrays
...
There is one big generic one now, unssupported languages will be removed at runtime.
Tested with Amazfit Bip U.
2021-10-07 14:32:09 +02:00
Andreas Shimokawa
2219eb489e
Amazfit Bip U: Fix setting the language
2021-10-07 12:50:44 +02:00
Daniel Dakhno
1a892aa159
UM25: added some fields to UI
2021-10-03 02:43:42 +02:00
Andreas Shimokawa
48e5f44b81
Amazfit Bip U Pro: Fix flashing firmware, res, font, watchfaces
2021-10-01 17:49:43 +02:00
Andreas Shimokawa
d9a77540ce
Amazfit Bip U: fix watchface installation
2021-10-01 17:42:36 +02:00
Andreas Shimokawa
475a2584cc
Amazfit Bip U/Pro: enable unicode emoji
2021-10-01 14:18:06 +02:00
Andreas Shimokawa
d673d8a487
Amazfit Bip U: Whitelist fw 1.0.2.95
2021-10-01 14:12:31 +02:00
Andreas Shimokawa
e3a4468bac
Amazfit Bip U: Fix flashing firmware, res and fonts
2021-10-01 14:00:38 +02:00
daniele
a7f42f0c4f
Add initial support for Nothing Ear(1) TWS ( #2403 )
...
Nothing Ear (1) are wireless earbuds that support active noise
suppression, transparency mode and several gestures.
This initial commit adds support for:
- reading battery level
- setting audio mode
- setting in-ear auto detection
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2403
Co-authored-by: daniele <daniele@noreply.codeberg.org>
Co-committed-by: daniele <daniele@noreply.codeberg.org>
2021-09-30 22:40:18 +02:00
vanous
2bd90a0d5a
use native isToday method
2021-09-26 20:29:54 +02:00
vanous
dc42faa6fb
Show ongoing activity snackbar only 'today'
2021-09-26 20:15:25 +02:00
vanous
3cde7eca7e
add missing AbstractFitProActivitySample from entities (excluded by gitignore)
2021-09-24 10:00:36 +02:00
Andreas Böhler
264b003809
Fix connection on GBX-100
2021-09-23 18:28:45 +02:00
Arjan Schrijver
2d96328d1b
Fossil Hybrid HR: Lower battery level warning threshold to 10%
2021-09-22 11:10:29 +02:00
Anemograph
d088c3d63f
Added ringtone preference setting.
2021-09-21 21:03:37 +02:00
vanous
e00ee75ad2
adding FitPro bands support
2021-09-21 16:37:19 +02:00
vanous
b8855f16ee
Ensure that slf4j is not used before being initialized, fixes #2394
2021-09-20 18:22:30 +02:00
vanous
6b10453714
Remove device specific Alarms upon device removal.
2021-09-19 17:55:54 +02:00
vanous
d6b5140519
Remove device specific preferences upon device removal. Also add this option to the Debug screen.
2021-09-18 22:28:58 +02:00
vanous
47b9e94858
exclude not worn sleep times also from sleep sessions
...
This ensures that the sleep sessions times and the charts times are now
equal (correct behavior). At the same time this causes the sleep
sessions to be visually broken up into more small pieces and therefore
it now more highlights the issue of the band (mostly) wrongly marking
some samples as not worn.
2021-09-17 18:05:58 +02:00
Andreas Shimokawa
92ce748202
Amazfit Bip S: Whitelist 2.1.1.72 and 2.1.1.76 firmware
2021-09-15 10:06:48 +02:00
vanous
27e2197c30
add Icelandic and Czech transliteration, fix 2388
2021-09-07 21:52:31 +02:00
Andreas Shimokawa
b99da8b596
Mi Band 6: really fix weather on new firmware
2021-09-03 15:50:42 +02:00
Andreas Shimokawa
eb8284f079
Mi Band 6: Fix watchface installation
2021-09-02 13:26:35 +02:00
Andreas Shimokawa
a24900bbcf
Mi Band 6: Whitelist FW 1.0.4.38
2021-09-02 11:39:25 +02:00
Andreas Shimokawa
c965114c21
Mi Band 6: Add flashlight to menu items
2021-09-02 11:21:05 +02:00
Andreas Shimokawa
4242f5ccd4
Mi Band 6: Write to chunked2021 for old chunked types on new firmware (fixes music, weather and setting menu items)
2021-09-02 11:21:05 +02:00
Andreas Shimokawa
4a27825931
Mi Band 6: Send all old settings to new characteristics
...
This adds a compatibility wrapper to make it easier
2021-09-02 11:21:05 +02:00
Andreas Shimokawa
117cd57463
Mi Band 6: Support sending encrypted packets on new firmware
2021-09-02 11:21:05 +02:00
chklump
3b6f3b11bb
Fix body_length overflow for long notifications.
...
The body_length field in the header is only one byte (byte 8). If it it is set to 256 it overflows to 0 wich results in a corrupt notification. So the maximum body length is 255.
2021-08-27 14:04:06 +02:00
Andreas Shimokawa
1bfec5b65f
InifiniTime: Fix null being displayed on empty notifications
2021-08-26 10:59:53 +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
Arjan Schrijver
feadeb8139
Fossil Hybrid HR: Add power saving feature
2021-08-13 22:28:49 +02:00
Arjan Schrijver
2e3c409e02
Fossil Hybrid HR: Add timezone selector for 2nd TZ widget
2021-08-13 22:28:49 +02:00
Arjan Schrijver
9f2759a43c
Fossil Hybrid HR: Add 2nd TZ, Active Minutes and Chance Of Rain widgets
2021-08-13 22:28:49 +02:00
Arjan Schrijver
478053288f
Fossil Hybrid HR: Add battery and calories widgets
2021-08-13 22:28:49 +02:00
vanous
4dd8af6d24
HeartRate dialog: extend the enable check with supportsRealtimeData()
2021-08-09 17:45:52 +02:00
Andreas Shimokawa
5fb674f9ae
Fossil Hybrid HR: Support setting metric/imperial mode
...
Fixes #2355
2021-08-09 16:32:42 +02:00
vanous
e6ae5e357e
add Heart icon (trigger heart measurement) to device action icons
2021-08-08 11:12:08 +02:00
Andreas Shimokawa
e5caf78fb0
Assume timezone UTC for BLE time protocol
...
BLE protocol only sends a UTC offset which combines the TZ with DST, if we take
a local timezone as a base and add a raw offset with DST included, DST might
be added again.
This is to fix problems with recorded data on Huami devices where we cannot know
in which timezone data was recorded - only the offset, where we do not know if a
part of it is DST.
2021-08-06 01:05:51 +02:00
Gordon Williams
9222c6700e
Add functions for pushing bitmaps to Bangle.js, also add configurable MTU. If we receive a bigger data packet then we know we can send a bigger one too
2021-08-04 16:41:06 +01:00
Andreas Shimokawa
a302b5509f
Huami: re-enable setting the timezone correctly with included DST
...
This will trigger bugs, but also fix some.
We "just" need to fix the new bugs :/
2021-07-30 16:33:44 +02:00
Arjan Schrijver
35da8fcad0
Fossil Hybrid HR: Show progress bar while installing watchface
2021-07-22 22:04:31 +02:00
Arjan Schrijver
ba5c87e7a8
Fossil Hybrid HR: Add icon for inverting colors of background image
2021-07-22 13:09:00 +02:00
Arjan Schrijver
c91403fce3
Fossil Hybrid HR: Rename widget color definitions
2021-07-22 13:07:09 +02:00
Arjan Schrijver
dcf869b988
Fossil Hybrid HR: Confirm overwriting cached watchface
2021-07-21 21:27:58 +02:00
Arjan Schrijver
fb02fa2ee0
Fossil Hybrid HR: Add default Gadgetbridge-themed watchface background
2021-07-21 20:32:16 +02:00
vanous
383e096248
add System.exit(0) to quit() to ensure exit
2021-07-20 20:59:58 +02:00
Andreas Shimokawa
c4f12f548c
Fix missing breaks in switch, should fix UM25 support
2021-07-20 12:11:44 +02:00
vanous
67726944c4
fix: apply theme as set by the system
2021-07-20 12:09:01 +02:00
x29a
5b2ca65321
Added support for SMA Q2 ( #2215 )
...
Hi,
i applied the changes from [Emeryths fork](https://github.com/Emeryth/Gadgetbridge ) to master in order to get the [SMA Q2 smartwatch](https://hackaday.io/project/85463-color-open-source-smartwatch ) support upstream.
It uses [his firmware](https://github.com/Emeryth/sma-q2-oss ) (pretty/most popular for this device).
Greatly appreciate any feedback as this is my first attempt to add a device to GB :)
I read through the [tutorial](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/New-Device-Tutorial ), are there other sources for adding new device support?
thanks!
Co-authored-by: x29a <0.x29a.0@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2215
Co-authored-by: x29a <x29a@noreply.codeberg.org>
Co-committed-by: x29a <x29a@noreply.codeberg.org>
2021-07-20 12:08:12 +02:00
Arjan Schrijver
a710f0f677
Fossil Hybrid HR: Drop widget on recycle bin to delete
2021-07-19 13:43:05 +02:00
Arjan Schrijver
8fabf0d038
Fossil Hybrid HR: Support configuring watchface internal values
2021-07-19 13:43:05 +02:00
Arjan Schrijver
6000dd525e
Fossil Hybrid HR: Support widget color inversion
2021-07-19 13:43:05 +02:00