José Rebelo
dd0c9cf3e0
Xiaomi: Configure fitness goal notification and secondary goal
2023-12-10 11:02:22 +00:00
José Rebelo
4635bf018a
Xiaomi: Enable autoremove dismissed notifications preference
2023-12-10 10:42:07 +00:00
José Rebelo
18686e98c5
Xiaomi: Delete notification from watch when dismissed from phone
2023-12-10 10:36:14 +00:00
José Rebelo
ef73ea1bd5
Make LimitedQueue generic
2023-12-10 10:30:27 +00:00
José Rebelo
4d12ac93e7
Allow multiple device actions to be triggered for the same event
2023-12-09 11:40:28 +00:00
José Rebelo
25196a932e
Allow toggling DND through device actions
2023-12-09 11:01:55 +00:00
José Rebelo
577ee27c14
Intent API: Add debug action for test new function
2023-12-09 10:59:39 +00:00
MrYoranimo
0378f48798
Xiaomi: fix for invalid birthdate being sent in user info
2023-12-09 00:20:22 +01:00
MrYoranimo
435d41aca0
Huami/Xiaomi: centralize handling of device state events
...
Gadgetbridge can be configured to perform an action when a
Huami device is taken off or the user was detected to fall asleep or
wake up. This functionality was specific to Huami devices, but this
changeset moves this upstream to the AbstractDeviceSupport class in
combination with new GBDeviceEvents.
Now that the ADS has centralized support for this functionality, the
same logic can be used for other devices. In this case, an
implementation is added for supported Xiaomi devices.
2023-12-09 00:20:22 +01:00
José Rebelo
2ff92c73f8
Xiaomi: Re-enable screen on on notifications preference
...
- Disabled by accident on 2063bc2df
- Move preference to XiaomiNotificationService
- Get preference value on connection
2023-12-08 20:55:58 +00:00
José Rebelo
2063bc2dfd
Xiaomi: Remove not-implemented preferences
2023-12-08 18:53:22 +00:00
José Rebelo
961e9f1bf9
Xiaomi: Fix sleep schedule preference
2023-12-08 18:53:11 +00:00
José Rebelo
6984572d33
Xiaomi: Allow notification open on phone
2023-12-08 12:12:35 +00:00
José Rebelo
2b8d8c2cb0
Xiaomi: Fix dismiss multiple notifications from watch
2023-12-08 11:49:47 +00:00
José Rebelo
6479cc3bb0
Xiaomi: Allow disabling app notifications per device
2023-12-08 11:39:53 +00:00
José Rebelo
f29995b571
Zepp OS: Allow disabling app notifications per device
2023-12-08 11:29:20 +00:00
José Rebelo
77329813b9
Use simple summary provider for vibration pattern counts
2023-12-08 10:45:07 +00:00
Andreas Shimokawa
b4aca410b4
Pixoo: implement some protocol for testing
2023-12-07 21:07:52 +01:00
Andreas Shimokawa
b44b0fec7e
Divoom Pixoo: Initial experimental support
...
Works:
- notifications
- call notification
- set time
- setting brightness
- setting 24h/12h format
- sending weather
Note
- this is implemented using using the classic bluetooth serial protocol, the
device can do BLE, but I don't know how to use it, as I did not have the
offical app to sniff.
- The information about the protocol comes from here
https://github.com/jfroehlich/node-p1x3lramen/blob/main/source/devices/pixoo.js
TODO:
- Enable beep? Possible? I heard it beep once at least when switching it on
- Getting out of factory mode? Why does it always play animations even when I
switch to the clock?
- Implement switching modes (can be done with the button)
- Implement sending own images and animations
- Firmware update?
- ...
2023-12-06 15:56:18 +01:00
José Rebelo
130e2ab85c
Xiaomi: Fix heart rate interval and sleep support
2023-12-06 11:51:01 +00:00
José Rebelo
03dbf7533f
Xiaomi: Get canned messages from watch
2023-12-06 11:18:13 +00:00
MrYoranimo
b902ee96c3
Xiaomi: improve battery level and charger status processing
...
Because the reporting of battery state is inconsistent between different
models, the device's battery state was not correctly processed in GB.
For at least the firmware on the Xiaomi Watch S1 Active, the charger
state is broadcast through a separate message from the message
containing the battery level. Even though the battery level was
requested by GB upon receiving this broadcast, the charger state got
discarded as it was expected to also be included in the result of the
subsequent request.
This patch changes the name of the `Charger` message to `DeviceState`
and includes more fields that may be presented by some device models.
Furthemore, the broadcast is cached so that the charger state can be
processed from this cache instead of the battery level response message.
2023-12-06 11:56:13 +01:00
MrYoranimo
405596d960
Xiaomi: check for null values before encoding MusicSpec to proto
2023-12-05 20:27:33 +01:00
MrYoranimo
561dc16b28
DeviceCommunicationService: catch uncaught exceptions from handleActions
...
Exceptions raised while handling actions in the device's support class
may result in the DeviceCommunicationService crashing as a whole and not
being started again until the user forces GB to make a connection by
pressing the device from the list.
This change is made, because Xiaomi devices make use of proto2 messages,
where optional fields cannot be set to null values as that will make it
throw NPEs.
2023-12-05 20:19:12 +01:00
José Rebelo
7f7834c620
Xiaomi: Fix reconnect if characteristics are null
...
If a service was found, but characteristics are null, maybe we're just
connecting too early - set the device to reconnect.
2023-12-05 18:30:33 +00:00
José Rebelo
4de7cb3591
Xiaomi: Improve service auto-detection
...
Some watches have the encrypted service, even though they're plaintext,
but are missing the characteristics.
2023-12-05 18:28:39 +00:00
José Rebelo
1c68252255
Xiaomi: Fix settings display items code
2023-12-05 18:20:02 +00:00
Andreas Shimokawa
776346d311
Xiaomi: guard against null pointer crash
2023-12-05 18:20:02 +00:00
José Rebelo
9ddbcc0c8a
Xiaomi: Use display items labels from watch
2023-12-05 18:20:02 +00:00
José Rebelo
3ab1ac26db
Refactor known preference values code to be reusable
2023-12-05 18:20:02 +00:00
José Rebelo
2dacdcface
Xiaomi: Log service
2023-12-05 18:17:50 +00:00
José Rebelo
95d3ff81fd
Xiaomi: Fetch alarm and reminder slots from watch
2023-12-05 18:16:45 +00:00
MrYoranimo
5f9fda4f07
BtLEQueue: fix typo in onCharacteristicChange
2023-12-04 23:32:23 +01:00
MrYoranimo
b303da4e62
Xiaomi: wrap parsing of activity data in try block
...
This will prevent uncaught exceptions that occur during the
parsing of activity data from breaking up the activity fetching
chain and causing the task to never get completed.
2023-12-04 23:32:18 +01:00
MrYoranimo
0f83346d65
Xiaomi: check if binary parser result is null
...
The activity parser may return null pointers in case the version
of the data structure is not supported. Not checking for null here may
result in the activity fetching task may never complete and cause
further communication with the device to grind to a halt.
2023-12-04 22:03:59 +01:00
José Rebelo
376956bbe9
Xiaomi: Improve activity fetch logging
2023-12-04 09:46:49 +00:00
José Rebelo
e6cb15d9eb
Mi Watch Color Sport: Experimental support
2023-12-02 11:56:23 +00:00
José Rebelo
ec050d7a4f
Xiaomi: Unify encrypted and plaintext logic
2023-12-02 11:25:32 +00:00
José Rebelo
ba0ca1de75
Delegate auth key validation to coordinator
2023-12-02 10:59:34 +00:00
José Rebelo
216dc93986
Mi Band 8: Overlay sleep on activity data
2023-12-02 10:56:36 +00:00
José Rebelo
84692e5432
Mi Band 8: Persist bedtime and wakeup times to database
2023-12-01 21:35:29 +00:00
Andreas Shimokawa
1b2a9ac140
Xiaomi: When sending contacts, use correct command to replace the ones already on the watch
2023-12-01 20:07:32 +01:00
Andreas Shimokawa
81e24e53ed
Xiaomi: WIP implementation for sending contacts
...
This is not useful yet because contacts just get added when sending them, instaed of replacing.
Should be fixed or disabled before the release
2023-12-01 12:40:53 +01:00
Andreas Shimokawa
6e5bedb365
Xiaomi: Implement Screen On on Notification setting
...
Works on Redmi Watch 3 Active
Does not work on Mi Watch Lite
2023-12-01 07:52:08 +01:00
MrYoranimo
b9b91db06f
Xiaomi: implement phonebook service to respond to contact info requests
2023-11-30 22:54:41 +01:00
Gordon Williams
684d976bfc
Bangle.js: Ensure SMS messages have src
field set to "SMS Message" (it was previously left out)
2023-11-30 09:33:07 +00:00
José Rebelo
5be3543fa3
Xiaomi Smart Band 7 Pro: Experimental support
2023-11-29 21:18:52 +00:00
José Rebelo
0c4e2df075
Xiaomi: Fix crash when opening app manager
...
Regression introduced by e53c67e8bf
2023-11-29 21:11:54 +00:00
MrYoranimo
dd6d9bd271
Add device icon for Mi Watch, Xiaomi Watch S1 Active
2023-11-29 20:27:44 +01:00
MrYoranimo
6933b8a793
Add device coordinator for Xiaomi Watch S1 Active
2023-11-29 20:27:36 +01:00
Gordon Williams
8ef80a2565
Bangle.js: ensure GPS speed is reported correctly when the phone is providing it
2023-11-29 10:04:33 +00:00
mormegil
ec73b244ee
Improve ASCII transliterator
...
We should use NFKD instead of NFD since we are flattening to US-ASCII
afterwards anyway. This allows various Unicode characters which would
end up as a question mark to be represented by their compatibility
decomposition. This applies to e.g. ligatures (e.g. U+FB01 LATIN SMALL
LIGATURE FI will now be replaced with plain fi instead of a question
mark), and also the U+00A0 NO-BREAK SPACE [NBSP] to be replaced by
a normal space instead of a question mark.
+Add Czech fancy quotes to the Czech transliterator
+Add a unit test for Multitransliterator
2023-11-28 18:24:42 +00:00
José Rebelo
99b3dc3226
Fix crash when pairing current device as companion
2023-11-28 18:12:12 +00:00
José Rebelo
ae75f82a63
Zepp OS: Improve activity fetch logging
2023-11-26 21:14:46 +00:00
José Rebelo
c5757ea478
Mi Band 8: Improve stress charts
2023-11-26 21:01:32 +00:00
José Rebelo
50cdcec846
Xiaomi: Delete device data when deleting device
2023-11-26 21:01:32 +00:00
José Rebelo
636f4adc8d
Zepp OS: Delete device data when deleting device
2023-11-26 21:01:32 +00:00
José Rebelo
e53c67e8bf
Xiaomi: Fix SpO2
2023-11-26 21:01:32 +00:00
Andreas Shimokawa
6f2876fa66
Mi Watch 3 Lite: Fix firmware update
...
(not enabled yet)
2023-11-26 00:22:37 +01:00
José Rebelo
34039094c1
Fix hungarian transliterator
2023-11-25 23:04:39 +00:00
Kornél Schmidt
58a8484322
added test, added to defaultLanguagesIfEnabled
2023-11-25 23:03:30 +00:00
ssilverr
ee3b4d4aa1
added HungarianTransliterator
2023-11-25 23:03:30 +00:00
foxstidious
deeaf28de4
Limit characters in heading and subheading to 32 (or else casio won't display the notification)
2023-11-25 22:52:26 +00:00
foxstidious
40af20a176
Removed call to start intent if no companion, defaulted companion preference to true, and reordered casio alert preferences to match watch order.
2023-11-25 22:52:26 +00:00
foxstidious
264ab14847
Fixed alert logic
2023-11-25 22:52:26 +00:00
foxstidious
85d0722ffe
Updates to address findings on PR
2023-11-25 22:52:26 +00:00
foxstidious
4dc10d1d02
Implemented better message preview, added ability to specify high-level alert by category
2023-11-25 22:52:26 +00:00
foxstidious
11bf0acf32
Changed notification timestamp format to be implemented specifically for GBD-200
2023-11-25 22:52:26 +00:00
foxstidious
6be7f7c9cc
Fixed find phone on, added preference to preview messages on Casio GDB-200
2023-11-25 22:52:26 +00:00
foxstidious
a1b59774d4
Fixed notification time stamp on Casio GDB-200
2023-11-25 22:52:26 +00:00
foxstidious
d9d6a8dc29
Categorized Google Voice messages as GENERIC_SMS, cleaned up some Casio support code, added portion of message text to notification title
2023-11-25 22:52:26 +00:00
Andreas Böhler
6ef6c9be43
Fix Bonding for the Casio GB5600/6900/STB-1000 series
2023-11-25 22:46:45 +00:00
José Rebelo
8bd7e103d0
Update changelog
2023-11-25 22:30:25 +00:00
José Rebelo
e91ad80d27
Xiaomi: Cleanup code and comments
2023-11-25 22:18:34 +00:00
José Rebelo
7416159ba2
Xiaomi: Mark new devices as experimental
2023-11-25 22:17:09 +00:00
José Rebelo
543c8b28d0
Rename org.bouncycastle package
...
Fixes roboelectric in unit tests.
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
84cf8efb59
Redmi Watch 3 Lite: Initial support
...
This is just using mi band 8 code, some feature work
2023-11-25 21:16:53 +00:00
José Rebelo
0dcb316461
Mi Band 8: Basic workout summary parser (wip)
2023-11-25 21:16:53 +00:00
José Rebelo
fa20bf66c6
Mi Band 8: Fix send gps location during workout
2023-11-25 21:16:53 +00:00
José Rebelo
dad97f9e96
Xiaomi: Update weather AQI and warning proto
2023-11-25 21:16:53 +00:00
José Rebelo
516b3dbf1e
Mi Band 8: Fix notification icons for long package names
2023-11-25 21:16:53 +00:00
José Rebelo
8192106fc0
Mi Band 8: Fix notification icons mirroring
2023-11-25 21:16:53 +00:00
José Rebelo
3948f95505
Xiaomi: Dismiss notification from phone when dismiss from watch
2023-11-25 21:16:53 +00:00
José Rebelo
ff2a26756f
Mi Band 8: Fix weather (set current location)
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
50f086b03a
Xiaomi: Implement daily forecast
...
Works on Mi Watch Lite
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
e2f60b38c9
Xiaomi: fix NPE when no air quality is available
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
0e3e406320
Xiaomi: Send AQI
...
Todo: map to strings
2023-11-25 21:16:53 +00:00
José Rebelo
047cc71d28
Mi Band 8: Upload custom notification icons
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
9749716c23
Xiaomi: add two more fields to current weather (seen on Mi Band 8)
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
929ea7ae57
Xiaomi: Implement sending current weather
...
TODO: Support °F, find out about unknown values
Tested on Mi Watch Lite
2023-11-25 21:16:53 +00:00
José Rebelo
cab63b2c98
Mi Band 8: Fix watchface upload
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
27fba50283
Xiaomi: move emoji conversion to base class
...
This works on Mi Watch Lite from FW 4.1.12
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
cef4b62458
Mi Watch Lite: enable install handler
...
Does not work as is because we do not recognize watchfaces and firmware yet
2023-11-25 21:16:53 +00:00
José Rebelo
29c183b88a
Xiaomi: Refactor to install firmware (untested)
2023-11-25 21:16:53 +00:00
José Rebelo
c47e830056
Xiaomi: Watchface upload (wip, does not work)
2023-11-25 21:16:53 +00:00
José Rebelo
82a264cd65
Xiaomi: Improve emoji mapping efficiency
2023-11-25 21:16:53 +00:00
José Rebelo
b0d3fe6a51
Xiaomi: Set device language
2023-11-25 21:16:53 +00:00
José Rebelo
48e149aefe
Xiaomi: Refactor XiaomiCharacteristic to improve logging and ordering
...
Fixes a potential race condition on initialization, since the chunked
commands were being scheduled on a separate transaction builder, which
would be scheduled to be written before the initialization.
2023-11-25 21:16:53 +00:00
José Rebelo
1acd3ac5fd
Xiaomi: Remove usage of TransactionBuilders
2023-11-25 21:16:53 +00:00
José Rebelo
e2d7798e36
Xiaomi: Refuse delete of active watchface
2023-11-25 21:16:53 +00:00
José Rebelo
1b645f44d7
Xiaomi: Keep only watchface tab in app management
2023-11-25 21:16:53 +00:00
José Rebelo
a895a6aae7
Xiaomi: Set and delete watchfaces
2023-11-25 21:16:53 +00:00
José Rebelo
7fb81b6e0d
Xiaomi: Fix edge cases in chunked math
2023-11-25 21:16:53 +00:00
José Rebelo
fa72820e5a
Mi Band 8: Map emoji (inefficient)
2023-11-25 21:16:53 +00:00
José Rebelo
81ca617601
Xiaomi: Prevent NPE when not yet connected
2023-11-25 21:16:53 +00:00
José Rebelo
ce1d095074
Xiaomi: Add encrypted and plaintext coordinators
2023-11-25 21:16:53 +00:00
José Rebelo
4e680cfcce
Mi Band 8: List watchface in app management
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
9ea7b48e0c
Xiaomi: Add outdoor running subtype to enum.
2023-11-25 21:16:53 +00:00
Andreas Shimokawa
7a3139fce0
Xiaomi: remove call notification if call has been taken on the phone or rejected, ended.
...
For in-call notification if those exist, it would not work.
2023-11-25 21:16:53 +00:00
José Rebelo
acba91d3c5
Xiaomi: Refactor daily parser slightly
2023-11-25 21:16:53 +00:00
José Rebelo
d3eb69fcf7
Mi Band 8: Send gps to watch (wip)
2023-11-25 21:16:53 +00:00
José Rebelo
0c27772bb5
Xiaomi: Map elliptical workout
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
fce2dfa0ca
Xiaomi: fix incoming calls on Mi Watch lite (shoud not break Mi Band 8)
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
b09879dd31
Mi Watch Lite: disable some features that do not exist on the watch
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
9e1a6ca76a
Xiaomi: change order of enabling notifications
2023-11-25 21:16:52 +00:00
José Rebelo
04434f4a55
Mi Watch Lite: Attempt to fix activity parsing
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
cd2d7d144e
Xiaomi: Fix unencrypted support again
2023-11-25 21:16:52 +00:00
José Rebelo
8333b8b8d8
Mi Band 8: Sleep details parser (very very wip)
2023-11-25 21:16:52 +00:00
José Rebelo
aead518e05
Xiaomi: Implement daily activity parsing
2023-11-25 21:16:52 +00:00
José Rebelo
5dd746f2d6
Xiaomi: Ack activity before parsing for now
2023-11-25 21:16:52 +00:00
José Rebelo
afaf0baa79
Xiaomi: Cache firmware version
2023-11-25 21:16:52 +00:00
José Rebelo
db57072dd3
Xiaomi: Make activity file ID types readable
2023-11-25 21:16:52 +00:00
José Rebelo
5316a7dcf8
Xiaomi: Send device update intent on activity fetch start and finish
2023-11-25 21:16:52 +00:00
José Rebelo
e40b703678
Xiaomi: Dump activity data to storage
2023-11-25 21:16:52 +00:00
José Rebelo
bcefc39ad8
Mi Band 8: Restore setting of firmware version before initializing
2023-11-25 21:16:52 +00:00
José Rebelo
1b6bb20890
Xiaomi: Move initialization logic to base class
2023-11-25 21:16:52 +00:00
José Rebelo
d35bcef406
Mi Band 8: Fix activity fetching
2023-11-25 21:16:52 +00:00
José Rebelo
d66de2f94f
Xiaomi: Fix activity file id encoding
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
01a552e0f7
Mi Watch Lite: Do not set firmware version to ... during connect
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
7de94432d0
Mi Watch Lite: authenticate via use XiaomiAuthService, handle subtype 5 send user id reply
...
This makes device info and battery status work since AuthService calls phase2Initialize()
2023-11-25 21:16:52 +00:00
José Rebelo
f3d6be2f96
Xiaomi: Handle chunked nack
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
a19318c5bd
Mi Watch Lite: more small fixes for non-encrypted path
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
b103b4f3e4
Mi Watch Lite: fix unencrypted support after refactoring common Xiaomi code
2023-11-25 21:16:52 +00:00
José Rebelo
1920968fba
Mi Watch Lite: Attempt to fix plaintext support
2023-11-25 21:16:52 +00:00
José Rebelo
d953fd5b5b
Mi Watch Lite: Refactor to use XiaomiCharacteristic
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
84dff5b8df
fix initialization
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
cdef620700
Mi Watch Lite: use xiaomi protobuf for sending user id
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
d3fa3e2c05
Xiaomi Protocol: Add userId auth command
2023-11-25 21:16:52 +00:00
Andreas Shimokawa
7803581922
Mi Watch Lite test based on miband 8 branch
...
very much wip
2023-11-25 21:16:52 +00:00
José Rebelo
b5a1846e49
Mi Band 8: Fix chunked encryption
2023-11-25 21:16:52 +00:00
José Rebelo
544909a970
Mi Band 8: Activity fetching basics
2023-11-25 21:16:52 +00:00
José Rebelo
4662da3b82
Mi Band 8: Fix chunked receive decryption
2023-11-25 21:16:52 +00:00
José Rebelo
57c7a083aa
Mi Band 8: Set display items (wip, chunked is broken)
2023-11-25 21:16:52 +00:00
José Rebelo
0ed169c153
Xiaomi: Refactor characteristics (wip, chunked is broken)
2023-11-25 21:16:52 +00:00
José Rebelo
ae0a7bb806
Mi Band 8: Activity fetch base (wip)
2023-11-25 21:16:52 +00:00
José Rebelo
6c710d594d
Zepp OS: Attempt to fix repeating fetch operation getting stuck
2023-11-25 21:16:52 +00:00
José Rebelo
7124d337e1
Mi Band 8: Implement reminders
2023-11-25 21:16:52 +00:00
José Rebelo
cca34af13b
Mi Band 8: Fix alarms flakyness
2023-11-25 21:16:52 +00:00
José Rebelo
f56a4b9f0c
Mi Band 8: Add MTU warn on sendCommand
2023-11-25 21:16:52 +00:00
José Rebelo
a9b481d72d
Mi Band 8: Sync calendar events
2023-11-25 21:16:52 +00:00
José Rebelo
809a809082
Mi Band 8: Replace sleep time with sleep mode schedule (fix crash)
2023-11-25 21:16:51 +00:00
José Rebelo
76c2a18af5
Mi Band 8: Add realtime stats failsafe
2023-11-25 21:16:33 +00:00
José Rebelo
fcf680f799
Mi Band 8: Add find watch
2023-11-25 21:16:33 +00:00
José Rebelo
18fc29fae7
Mi Band 8: Save number of pending alarm acks (wip)
2023-11-25 21:16:33 +00:00
José Rebelo
29fe3bc6ae
Mi Band 8: Sleep mode schedule
2023-11-25 21:16:33 +00:00
José Rebelo
d9c3a8de90
Mi Band 8: Fix music
2023-11-25 21:16:33 +00:00
José Rebelo
becb10e9f8
Mi Band 8: Handle user info ack
2023-11-25 21:16:33 +00:00
José Rebelo
44be081e86
Mi Band 8: Handle incoming chunked packets
2023-11-25 21:16:33 +00:00
José Rebelo
f0188f3499
Mi Band 8: Refactor cipher to auth service
2023-11-25 21:16:33 +00:00
José Rebelo
e21b35981b
Mi Band 8: Weather temperature unit
2023-11-25 21:16:33 +00:00
José Rebelo
f978329711
Mi Band 8: Display items (wip, needs chunked)
2023-11-25 21:16:33 +00:00
José Rebelo
f286df9ecf
Mi Band 8: Notification and calls (working, but wip)
2023-11-25 21:16:33 +00:00
José Rebelo
8f89acbb25
Mi Band 8: Fix crash due to preference type mismatch
2023-11-25 21:16:33 +00:00
José Rebelo
eb2a2ca742
Mi Band 8: Display items (wip)
2023-11-25 21:16:33 +00:00
José Rebelo
e8695a5792
Mi Band 8: Fix stress relaxation reminder
2023-11-25 21:16:33 +00:00
José Rebelo
54e31a1521
Mi Band 8: HR, SpO2, Stress settings (untested, wip)
2023-11-25 21:16:33 +00:00
José Rebelo
8a7e6649b7
Mi Band 8: Password (untested)
2023-11-25 21:16:33 +00:00
José Rebelo
8531cfb0a1
Mi Band 8: Start handling config changes
2023-11-25 21:16:33 +00:00
José Rebelo
e68d6dd7b7
Mi Band 8: Canned messages (wip)
2023-11-25 21:16:33 +00:00
José Rebelo
fd76c7b13b
Mi Band 8: Find phone
2023-11-25 21:16:33 +00:00
José Rebelo
b27c75c09a
Mi Band 8: World clocks (wip)
2023-11-25 21:16:33 +00:00
José Rebelo
28bd9eeed6
Mi Band 8: Fix heart rate one-shot measurements
2023-11-25 21:16:33 +00:00
José Rebelo
241486f7c3
Mi Band 8: Update to use getSupportedDeviceName
2023-11-25 21:16:33 +00:00
José Rebelo
08eb22b4cb
Mi Band 8: Import Bouncy Castle 1.76 classes
2023-11-25 21:16:33 +00:00
José Rebelo
4ede29d1f1
Mi Band 8: Toggle realtime stats (wip)
2023-11-25 21:16:33 +00:00
José Rebelo
f23347c47d
Mi Band 8: Add broken notifications
2023-11-25 21:16:33 +00:00
José Rebelo
290383627e
Mi Band 8: Fix system service
2023-11-25 21:16:33 +00:00
José Rebelo
7af155281c
Mi Band 8: Remove custom pairing activity
...
Does not seem to be needed (or work, actually)
2023-11-25 21:16:33 +00:00
José Rebelo
fda3b53657
Mi Band 8: Initial support (WIP)
2023-11-25 21:16:31 +00:00
Arjan Schrijver
fac566c7da
Support selecting enabled navigation apps
2023-11-23 22:57:34 +01:00
Arjan Schrijver
70acf47a2e
Make GMaps navigation handler follow the "navigation forwarding" setting
2023-11-23 22:37:24 +01:00
Arjan Schrijver
8add6c4da9
Autodetect OsmAnd package name and make it configurable
2023-11-23 22:33:12 +01:00
Davis Mosenkovs
2ef44e766e
PineTime: Improve notification handling
...
* If setting enabled, add source application (or SMS)
* Fallback to using notification subject if body is unavailable
* Trim/cut sender or title at 25+ chars if necessary
* Better support for notifications without body or subject
2023-11-23 21:30:42 +00:00
Davis Mosenkovs
88d553771d
PineTime: Honor Sync time setting on connect
2023-11-23 21:30:42 +00:00
Gordon Williams
66b36564ab
Bangle.js: Attempt to fix some of the warnings generated by Android Studio - some addec null checks, and appending using StringBuilder
2023-11-20 11:42:41 +00:00
Gordon Williams
140c62ac55
Bangle.js: Fix #2996 - force a reconnect when rx/tx characteristics can't be found
2023-11-20 11:02:16 +00:00
Davis Mosenkovs
176e81f1c0
Display alias in low battery notification
2023-11-16 21:23:35 +00:00
Davis Mosenkovs
20850858d2
Mijia LYWSD02: Add low battery notification
2023-11-10 00:03:54 +02:00
José Rebelo
5abd46d7ba
Amazfit T-Rex Ultra: Remove experimental
2023-11-09 21:52:14 +00:00
Gordon Williams
cb0962e0f6
Bangle.js: Ensure we split Chinese words every 2 chars when converting them to bitmaps to give us the opportunity to wrap text better
...
Also make sure we never create a bitmap >255 width/height as this wouldn't work on Espruino
2023-11-09 15:12:59 +00:00
Gordon Williams
f4707c15f4
Bangle.js - mention 'Android Integration' app for Bangle, not 'Gadgetbridge', add extra character conversions
2023-11-08 10:51:00 +00:00
Gordon Williams
1aadc04fd7
Bangle.js: add more non-ascii characters which can be converted to ASCII equivalents.
...
This helps for Chinese where words would normally break on these chars anyway - based on https://forum.espruino.com/conversations/391391
2023-11-06 14:42:24 +00:00
rany
340171e0bb
Zepp OS: Fix sunrise and moon dates being off by local time + UTC offset
...
Fixes #3400
Signed-off-by: rany <ranygh@riseup.net>
2023-11-03 20:56:16 +00:00
José Rebelo
4c4e18560f
Amazfit Bip 5: Remove experimental
2023-11-03 20:53:01 +00:00
Davis Mosenkovs
e6a0350197
Mijia LYWSD02: Fix battery drain on Mijia
2023-11-03 18:37:55 +00:00
Arjan Schrijver
3d543db24f
Fossil/Skagen Hybrids: Update navigationApp to version 1.0
2023-11-02 16:33:21 +01:00
Martin.JM
c793453f16
Add blood oxygen graph
2023-10-29 20:43:46 +01:00
José Rebelo
0c47d12c0f
Amazfit Active / Active Edge: Experimental support
2023-10-29 19:19:20 +00:00
Daniel Dakhno
eb0747b926
Device Management: centralized DeviceType resolution cache
2023-10-29 13:45:48 +00:00
José Rebelo
dc825c87e7
Extract device type migration to standalone function
2023-10-27 20:15:14 +01:00
Daniel Dakhno
c2a9f5d805
Device management: store deviceType name in DB
2023-10-27 19:14:49 +00:00
Daniele Gobbetti
0da552aa33
GenericWeatherReceiver: use forecast source for uvIndex and precipProbability
2023-10-27 19:01:10 +02:00
Arjan Schrijver
a0e6085324
Fossil/Skagen Hybrids: Allow configuring call rejection method
2023-10-20 10:50:25 +02:00
Arjan Schrijver
59dafc54b6
Fossil/Skagen Hybrids: Show device specific settings in more logical order
2023-10-18 22:39:13 +02:00
José Rebelo
f090898aef
Zepp OS: Add statistics fetch operation
...
We do not know what they are or how to parse them, but syncing them
helps free up space from the band.
2023-10-18 16:17:41 +01:00
José Rebelo
5a65bbf8f4
Zepp OS: Add temperature fetch operation (no DB / UI)
2023-10-18 15:46:58 +01:00
José Rebelo
81501ef750
Mi Band 7: Whitelist firmware 2.1.0.1
2023-10-18 15:31:06 +01:00
Arjan Schrijver
88341c8b86
Fossil/Skagen Hybrids: Add new navigation app
2023-10-18 13:06:16 +00:00
Reiner Herrmann
4abde0766d
Zepp OS: display swimming-related activity data
2023-10-16 23:35:10 +02:00
Maxime Reyrolle
1d3f9b6ec1
add items, shortcuts, cards and watchfaces from Amazfit Balance
2023-10-15 18:39:20 +02:00
Maxime Reyrolle
ff6d6f5e53
add initial support for Amazfit Balance
2023-10-15 13:41:53 +00:00
ahormann
28e673415f
Support for Femometer Vinca 2 and HealthThermometerProfile ( #3369 )
...
Co-authored-by: ahormann <ahormann@gmx.net>
Co-committed-by: ahormann <ahormann@gmx.net>
2023-10-15 13:37:41 +00:00
José Rebelo
11de66f8e4
Fossil/Skagen Hybrids: Fix some preference crashes on the nightly
2023-10-14 21:33:24 +01:00
José Rebelo
7cbc6cb439
Do not flatten to ASCII if device supports unicode
2023-10-11 23:21:39 +01:00
Davis Mosenkovs
60f91a9f93
Support for COL Reminder notifications
2023-10-10 21:22:02 +00:00
TaaviE
6234359c69
Improved PineTime's weather support to reduce pathological memory usage
2023-10-10 20:46:17 +00:00
Davis Mosenkovs
03c25722b2
Improve Telegram notifications
...
* Display Telegram private chat notifications
* Display Telegram call notifications
2023-10-10 23:27:51 +03:00
Davis Mosenkovs
c4bc43d918
PineTime: Display app name for VoIP app calls
2023-10-10 20:03:44 +00:00
Davis Mosenkovs
5d15df0751
CallSpec: Add source app for VoIP app calls
2023-10-10 20:03:44 +00:00
José Rebelo
7f593bf5e4
Allow ignore notifications from work profile
2023-10-10 20:22:07 +01:00
Sebastian Reichel
a1607ef3ae
Zepp OS: Map hiking, outdoor swimming, climbing and table tennis activity types
2023-10-10 19:04:15 +00:00
Sebastian Reichel
4feadc2932
Zepp OS: Add workout codes for hiking and outdoor swimming
...
I got these codes from the debug logs from my Amazfit GTS 4 Mini.
Apparently they have the same codes as the old types defined in
HuamiSportsActivityType.
2023-10-10 19:04:15 +00:00
Andreas Böhler
3dd2869283
Fix first connect on the Casio GBX100/GBD-200 series
2023-10-10 18:56:14 +00:00
Gordon Williams
a3f3bb212a
Bangle.js: lower threshold for low battery warning
2023-10-10 11:15:05 +01:00
Gordon Williams
7f962912bb
minor tweak - ensure we round wind speed so it's not to 12 decimal places
2023-10-10 11:11:23 +01:00
Arjan Schrijver
69fcec059d
Replace old-style preference switch with Material 3 switch
2023-10-09 09:53:36 +02:00
José Rebelo
9dde497b07
Prevent GBDeviceCandidate from ever being null
...
Prevents other crashes such as dbb47351d
2023-10-08 21:45:08 +01:00
José Rebelo
ad42255ea1
Amazfit T-Rex: Fix activity summary parsing
2023-10-08 21:27:05 +01:00
Andreas Shimokawa
dbb47351dd
Fix a crash (I have that with a device I am working on)
2023-10-08 21:27:19 +02:00
Davis Mosenkovs
77450efb99
Add Common Symbols transliteration
2023-10-07 17:42:52 +03:00
José Rebelo
dcf2629854
Remove scanning intensity preference and legacy discovery activity
...
The refactored DiscoveryActivityV2 does not freeze anymore, even under
maximum scanning intensity on older phones, and seems to not have
introduced any regressions.
2023-10-06 22:16:58 +01:00
José Rebelo
fe9b88df17
Zepp OS: Fix setting of unknown button press apps
2023-10-06 21:52:13 +01:00
Reiner Herrmann
be07545eca
Amazfit Band 7: add alexa menu entries
...
as a display menu item value for alexa already existed (with a different hex value),
add an alexa2 value that maps to the same menuitem.
2023-10-06 20:45:42 +00:00
José Rebelo
99130eb472
Fix closeable file leak on weather cache
2023-10-06 21:38:35 +01:00
Daniel Dakhno
17a9aa3b20
VESC: added name matching for Coordinator#supports
2023-10-06 13:13:09 +02:00
José Rebelo
0854263233
Fix Bohemic Smart Bracelet recognition
2023-10-05 21:47:00 +01:00
Daniel Dakhno
ef1d38d9d3
Device Manager: replaced getSupportedType with supports method
...
Huami: introduced getSupportedDeviceName
Huami: implemented getSupportedDeviceName
Huami: fixed typo
Device manager: added error on empty getSupportedDeviceName and empty supports()
Device manager: migrated more devices to getSupportedDeviceName
Device manager: simplified default supports implementation
Device manager: added caching for getSupportedDeviceName pattern
Device manager: added caching DeviceType resolution
Device manager: changed pattern matching find()->matches()
Device manager: use Candidate as caching key
Device manager: more verbose variable initialization
Device manager: fixed typo
Device manager: removed device caching from DeviceHelper
Gradle: removed protoc binary
Device manager: moved more devices to getSupportedDeviceName
Device manager: reduced usages of String.format
Device Vesc: removed multiple device types
Device management: regex improvements
Makibes HR3: fixed device recognition regex
2023-10-05 20:34:53 +00:00
Noodlez
4919be9f6d
Update AsteroidOS support
...
Fixed a few bugs.
1. Moved from the depreciated Date object for sending over the time
2. Fixed media info sending. (It would crash when info was missing)
3. Fixed notification dismissal (Typo in removal tag from remove->removed)
4. Fixed quite a few warnings that were being brought up.
5. Added more of the supported models for AsteroidOS.
There are still a few problems that exist. Screenshotting still doesn't work. I'm just not sure how it works in GB. The AsteroidOS service is still not being detected, even though the AsteroidOSSync application is detecting it just fine.
2023-10-05 20:26:58 +00:00
José Rebelo
d1dee47186
Fix tests
2023-10-04 21:58:45 +01:00
Ganblejs
2c5b687cef
Bump main targetSdkVersion to 33
2023-10-04 11:12:17 +00:00
Davis Mosenkovs
98df2d1837
Add Latvian transliteration
2023-10-04 00:30:27 +03:00
Davis Mosenkovs
26e6d7469f
Message privacy: Add mode Hide only body
2023-10-02 21:22:27 +03:00
José Rebelo
5f05a0d88f
Sony WF-1000XM5: Experimental support
2023-09-28 23:53:58 +01:00
José Rebelo
25af69733f
Add default methods to AbstractDeviceCoordinator
2023-09-28 23:32:57 +01:00
Daniel Dakhno
b97b26ce3a
Device manager: moved device icons and name to Coordinator
2023-09-28 00:11:02 +03:00
akasaka
8b01426d57
[Wena3/BUG] Lint
2023-09-25 13:46:19 +09:00
akasaka
65102e26f4
[Wena3/BUG] Height and weight were swapped around
2023-09-25 13:39:49 +09:00
akasaka
1140e60a88
[Wena3/BUG] Don't hide music title when momentarily pausing and resuming
2023-09-25 13:32:03 +09:00
akasaka
488af72341
[Wena3/BUG] BodyPropertiesSetting: height then weight on the wire, not the other way around
2023-09-25 13:22:27 +09:00
Davis Mosenkovs
c884c5d075
Mijia LYWSD02: Set time in onSetTime()
2023-09-23 17:19:12 +03:00
Davis Mosenkovs
edce45dcc3
Mijia LYWSD02: Battery + setting temperature scale
...
Implement reading battery percentage.
Implement setting temperature scale used on clock display.
Communication protocol taken from: https://github.com/h4/lywsd02
2023-09-23 17:18:42 +03:00
Davis Mosenkovs
f4af55d622
Mijia LYWSD02: Add support for LYWSD02MMC
2023-09-23 17:11:39 +03:00
vladkorotnev
889a1db801
Sony Wena 3: Initial support ( #3311 )
...
Co-authored-by: vladkorotnev <vladkorotnev@noreply.codeberg.org>
Co-committed-by: vladkorotnev <vladkorotnev@noreply.codeberg.org>
2023-09-23 10:31:41 +00:00
José Rebelo
9fe5bc049f
Remove stray character
2023-09-19 20:48:20 +01:00
José Rebelo
9230580a01
Display devices with unknown name during scan
2023-09-19 20:45:14 +01:00
José Rebelo
e078ceff0a
Introduce DiscoveryActivityV2
2023-09-19 20:45:14 +01:00
José Rebelo
a85246c279
Use GBDeviceCandidate#getName on all coordinators
2023-09-19 20:45:13 +01:00
José Rebelo
6f7fb261e7
Move Discovery activities to standalone package
2023-09-19 20:44:42 +01:00
Gabriele Monaco
492119f7ee
Passing BarcodeId as value if not null
2023-09-19 16:52:19 +02:00
Gabriele Monaco
89f57243cf
Added loyalty cards support for the banglejs
2023-08-20 11:14:03 +02:00
Daniel Dakhno
8c48a49d3a
Mi Band HRX: added DeviceType for Mi Band HRX
...
Mi Band HRX: changed DeviceType key for MIBAND_HRX
Mi Band HRX: added migration to MIBAND_HRX
Mi Band HRX: added devicetype string for MIBAND_HRX
Huami HRX: removed redundant null check
Huami HRX: removed redundant supports callback
2023-09-18 22:08:09 +00:00
Arjan Schrijver
b8912976f1
Fossil/Skagen Hybrids: Show some toasts only on debug builds
2023-09-18 22:32:02 +02:00
José Rebelo
ee3ce06899
Zepp OS: Fix health settings on older Zepp OS versions
2023-09-17 23:17:22 +01:00
José Rebelo
3f518364f2
Amazfit GTR 3 Pro: Fix firmware and watchface upload
2023-09-17 20:52:33 +01:00
José Rebelo
d56a42a424
Zepp OS: Prevent AGPS file upload under low MTU
2023-09-17 16:39:39 +01:00
José Rebelo
e855cfec08
Amazfit GTR Mini: Remove experimental, change AGPS updates to not use file transfer
2023-09-16 14:55:27 +01:00
José Rebelo
763ee10a6c
Fix support classes for some Amazfit devices
...
Affected devices:
- Amazfit Bip Lite
- Amazfit Bip S Lite
- Amazfit GTS 2 Mini
- Amazfit Pop
- Amazfit Pop Pro
2023-09-14 22:05:27 +01:00
Gordon Williams
c647c2647f
Bangle.js: Improve file downloads - we can now at least get files downloaded
2023-09-14 12:49:37 +01:00
Gordon Williams
e18a991b13
Bangle.js: ensure char code 255 is translated properly into a String - this can then be sent to the App Loader. Fixes https://github.com/espruino/EspruinoAppLoaderCore/issues/55
2023-09-14 11:07:05 +01:00
José Rebelo
2bd1cc332f
Log error when bonding fails immediately
2023-09-13 20:19:19 +01:00
José Rebelo
9401b61a02
Allow text to be shared to devices
2023-09-11 13:28:37 +00:00
Arjan Schrijver
557bfea35c
Add lint baseline, enable linting on CI, fix some reported errors ( #3291 )
...
This PR:
- fixes some errors reported by `gradlew lint` and the Android Studio "Code Inspection" tool
- adds a snapshot file `lint-baseline.xml` of the remaining lint errors and warnings to be used by the linter as baseline
- adds a job for CI to run `gradlew lint` on every build
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3291
Reviewed-by: José Rebelo <joserebelo@noreply.codeberg.org>
Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
Co-committed-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
2023-09-11 09:17:04 +00:00
José Rebelo
7359186cee
Zepp OS: Fix Alexa initial connection
2023-09-10 22:57:23 +01:00
José Rebelo
43d02b9661
Zepp OS: Parse SPO2 sleep data
...
Matched against the Zepp spo2 database
2023-09-10 16:58:40 +01:00
José Rebelo
1ac6983cd3
Amazfit Bip 5: Add new deviceSource
2023-09-08 21:38:22 +01:00
José Rebelo
c912ea0378
Zepp OS: Send UV Index as integer
2023-09-04 21:25:12 +01:00
José Rebelo
50c474e9ef
Fix crash when timezone has no next DST transition
2023-09-04 14:12:59 +01:00
José Rebelo
4c7cb1cadc
Fix ACTION_DST_CHANGED action
2023-09-02 11:08:19 +01:00
José Rebelo
a4c79a9395
Attempt to fix DST changes
2023-09-02 10:13:14 +01:00
illis
56fd2f8430
Give a more accurate representation of gps speed when manually calculating.
...
Dividing early makes us lose alot of precision.
2023-08-31 08:19:36 +12:00
illis
fa5e91f966
Fix GPS getSpeed issue for devices that report hasSpeed as true, yet only return a 0 value for speed.
2023-08-31 08:19:36 +12:00
illis
600658d86b
bangle.js: Use GPS location time, when reporting gps events, instead of the time at transmission.
2023-08-30 23:51:07 +12:00
José Rebelo
2051ce2055
WeatherSpec: Fix typo in getLocation
2023-08-29 00:14:35 +01:00
Arjan Schrijver
d10745b0b3
Add getLocation method to WeatherSpec and use it for Zepp OS and Fossil/Skagen
2023-08-27 20:19:15 +00:00
José Rebelo
6d828260d0
WeatherSpec: Add some docs for AirQuality
2023-08-27 19:51:44 +01:00
José Rebelo
200cfdf29a
Revert "Amazfit Bip 3 Pro: Enable HR stats and sleep respiratory rate"
...
Per the feedback on #3249 , this does not seem to be supported.
This reverts commit 42f35259fc
.
2023-08-27 17:45:57 +01:00
José Rebelo
88b72d51c8
Zepp OS: Use WeatherSpec gps coordinates for sunset if available
2023-08-27 16:23:32 +01:00
José Rebelo
495a8dec89
Zepp OS: Map WeatherSpec v4 fields
...
- Map hourly values
- Fix sunset and sunrise location
- Add moon rise, set and phase
- Add air quality
- Add wind speed, wind direction, visibility, pressure
2023-08-27 15:13:57 +00:00
José Rebelo
564cb1bfcc
Introduce WeatherSpec v4
...
New fields for current weather:
- dewPoint
- pressure
- cloudCover
- visibility
- sunRise
- sunSet
- moonRise
- moonSet
- moonPhase
- airQuality
- latitude
- longitude
- feelsLikeTemp
- isCurrentLocation
New fields for daily forecast:
Deprecate the old "Forecast" class, which was not versioned, but keep it for backwards compatibility with old apps. Old WeatherSpec forecasts are de-serialized into the new Daily class. New fields:
- windSpeed
- windDirection
- uvIndex
- precipProbability
- sunRise
- sunSet
- moonRise
- moonSet
- moonPhase
- airQuality
Add hourly values:
- timestamp
- temp
- conditionCode
- humidity
- windSpeed
- windDirection
- uvIndex
- precipProbability
Air Quality:
- aqi (plume)
- co
- no2
- o3
- pm10
- pm25
- so2
- coAqi
- no2Aqi
- o3Aqi
- pm10Aqi
- pm25Aqi
- so2Aqi
2023-08-27 15:13:57 +00:00
Patric Gruber
b7e6a39ec1
use proper Optional
2023-08-26 19:39:05 +00:00
Patric Gruber
d0c602d243
overwrite supportsManualHeartRateMeasurement
2023-08-26 19:39:05 +00:00
Patric Gruber
67eac90f69
merge new activity samples with samples from database on overlap
2023-08-26 19:39:05 +00:00
Patric Gruber
86f77e05a9
remove unnecessary type conversion
2023-08-26 19:39:05 +00:00
Patric Gruber
70a8ca5067
add heart rate measurment support for infinitime
2023-08-26 19:39:05 +00:00
José Rebelo
42f35259fc
Amazfit Bip 3 Pro: Enable HR stats and sleep respiratory rate
2023-08-26 17:52:10 +01:00
José Rebelo
7e848d19fb
Zepp OS: Handle watchface change
2023-08-26 15:47:04 +01:00
José Rebelo
55d0697c44
Huami: Display explicit error if there is not enough free space
2023-08-26 12:14:23 +01:00
Daniel Dakhno
e36bd2eae7
Core: replaced device initialization logic with class based decision
...
Core: cleaned up imports
Device management: try single-argument-constructor first
Device management: fixed wrong device support class
Device management: added missing initial flags for Mi band 2 HRX
Device management: removed unused import
Device management: removed unused import
Device management: improved exception handling
Device management: prevent constructors from being optimized out
Device management: added UnknownDeviceSupport
2023-08-26 08:14:06 +00:00
José Rebelo
c01a33077e
Huami: Enforce a maximum of 16 items on the main screen
2023-08-25 13:58:32 +01:00
José Rebelo
20d0d61ed8
WeatherSpec: Add a note on forecasts list
2023-08-23 16:16:40 +01:00
José Rebelo
da779e9864
Zepp OS: Improve weather code mapping
2023-08-23 15:48:26 +01:00
José Rebelo
fe58d64192
Zepp OS: Fix weather
2023-08-23 15:08:16 +01:00
José Rebelo
2320043c00
Fix min temp in cached weather data debug popup
2023-08-22 17:38:33 +01:00
José Rebelo
74dc0f70a6
Contacts: Migrate to ActivityResultContracts
2023-08-21 21:48:03 +01:00
José Rebelo
36e357ba67
Zepp OS: Add Alexa shortcut card
2023-08-21 15:55:58 +01:00
Arjan Schrijver
7c55f5df86
Upgrade cached weather old style dialog to Material 3 dialog
2023-08-20 22:20:14 +02:00
José Rebelo
50f962c520
Show UV Index and precip probability for cached weather
2023-08-20 10:01:15 +01:00
Kamalei Zestri
a0424527d5
Fixed formatting and unneccessary code
2023-08-20 08:56:29 +00:00
Kamalei Zestri
ff19ceeae8
Add "Showed Cached Weather" function to Debug menu
2023-08-20 08:56:29 +00:00
Daniel Dakhno
73d67d4093
Fossil/Skagen Hybrids: Embed menu_structure in watchface apps ( #3245 )
...
This PR aims to optimize the method of synchronizing the menu_structure for the openSourceWatchface by making the menu_structure request from the watch obsolete.
Instead, when a new menu_structure is sent to GB via the Intent `nodomain.freeyourgadget.gadgetbridge.Q_SET_MENU_STRUCTURE`, GB remembers that JSON.
Next time a watchface is built, the JSON is embedded into that app package so the watch doesn't forget the structure.
This requires a full GB rebuild to work properky.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3245
Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-committed-by: Daniel Dakhno <dakhnod@gmail.com>
2023-08-19 20:48:53 +00:00
José Rebelo
454d766e88
Zepp OS: Add all remaining devices as experimental
2023-08-18 12:16:36 +01:00
José Rebelo
e5faf518ea
Add support for experimental devices
2023-08-18 12:16:36 +01:00
José Rebelo
0a19f88a3f
Amazfit Bip 3 Pro: Fix device icon for square device
2023-08-18 12:16:36 +01:00
José Rebelo
3fae1accb1
Zepp OS: Send calendar event location
2023-08-18 08:54:07 +01:00
Raghd Hamzeh
c8e19a2466
feat: add initial support for Amazfit Cheetah Pro
2023-08-16 22:19:48 -04:00
Ascense
14df63854f
Withings Steel HR: Support setting device language
2023-08-16 12:43:57 +00:00
José Rebelo
b1bedfaa56
Keep charts current date on config changes
2023-08-16 13:42:44 +01:00
José Rebelo
b297e767ad
Amazfit Bip 3 Pro: Initial support
2023-08-16 12:27:00 +01:00
José Rebelo
515b9efce8
Zepp OS: Fix calendar sync for Zepp OS 2
2023-08-14 18:40:39 +01:00
José Rebelo
d6567e553f
Zepp OS: Map barcode types for ITF, PDF_417 and DATA_MATRIX
2023-08-14 14:12:46 +01:00
José Rebelo
19e7003c95
Zepp OS: Query calendar service version
2023-08-14 10:16:40 +01:00
José Rebelo
0e06bde741
Zepp OS: Enable AGPS updates for all devices
2023-08-12 13:25:19 +01:00
José Rebelo
13af55bd2e
Zepp OS: Add Zepp Coach display item and shortcut card
2023-08-12 13:18:20 +01:00
José Rebelo
ee5325418a
Zepp OS: Fix shortcut cards setting on Zepp OS 2.1
2023-08-12 13:18:20 +01:00
Arjan Schrijver
c9bbc05674
Show warning when choosing dynamic theme but dynamic colors are not supported by Android
2023-08-12 10:52:12 +02:00
José Rebelo
3799c51dc3
Add preference to display changelog on startup
2023-08-09 20:00:47 +01:00
José Rebelo
7fb34eb262
Build nightly changelog from git
2023-08-09 20:00:47 +01:00
José Rebelo
942e853ca7
Prevent display of empty changelog
2023-08-09 19:37:27 +01:00
José Rebelo
180ed42ee1
Bangle.js: Handle fw and hw versions
2023-08-09 09:09:52 +01:00
José Rebelo
a95820d09e
Bangle.js: Fetch activity data
2023-08-08 22:11:14 +01:00
José Rebelo
f97250d46b
Upgrade ZeTime settings to androidx
2023-08-08 20:14:27 +01:00
José Rebelo
f0067ebeae
Upgrade Mi Band preferences to androidx
2023-08-08 20:10:05 +01:00
José Rebelo
61a78c0ad8
Move user name to about user preferences
...
- Remove from Mi Band prefs
- Remove fitness goal from mi band prefs - it's also un the about user
section
- During pairing, direct user to the about user if there is invalid data
2023-08-08 20:10:05 +01:00
José Rebelo
4688f7d43c
Fix chart legend text color on dark theme
2023-08-08 08:47:26 +00:00
Arjan Schrijver
ee4f3fabcf
Fix widget device choice dialog behaviour
2023-08-08 08:47:26 +00:00
José Rebelo
88ebbdad7a
Fix changelog background color to match dialog
2023-08-08 08:47:26 +00:00
Arjan Schrijver
225d466a7b
Make widgets configuration activities adhere to configured style
2023-08-08 08:47:26 +00:00
Arjan Schrijver
73f949fc8c
Upgrade remaining CardViews to MaterialCardView
2023-08-08 08:47:26 +00:00
Arjan Schrijver
eb896dcd57
Fix preference input type enforcement
2023-08-08 08:47:26 +00:00
Arjan Schrijver
b6e252c4c1
Switch UI to Material 3 and support dynamic colors
2023-08-08 08:47:26 +00:00
Arjan Schrijver
5a1e56a81e
Fossil/Skagen Hybrids: Fix unused alarms being pushed to the device
2023-08-07 15:27:25 +02:00
José Rebelo
2bda160fb5
Bangle.js: Allow enable/disable alarms
2023-08-06 00:23:05 +01:00
Daniele Gobbetti
063fb31931
Garmin VivoMoveHR: prevent app crash
...
Use a more robust cast approach to prevent application crashes in some corner cases (e.g. when writing Math.round()ed values)
Since I don't own a VivoMoveHR device I couldn't test for regressions on the watch.
2023-08-04 17:57:46 +02:00
Arjan Schrijver
e305a9133f
Fossil/Skagen Hybrids: Add input types to watchface/widget settings
2023-07-31 21:31:42 +02:00
Simon Sievert
0ae14fb80a
Bangle.js: Put JSON keys in quotes
...
this allows the watch to work with gadgetbridge while 'programmable' is set to off
2023-07-29 15:03:47 +02:00
José Rebelo
2d7a6b80eb
Migrate Loyalty Cards preferences to AbstractSettingsActivityV2
2023-07-28 22:47:39 +01:00
José Rebelo
fe95d9aaa8
Fix disable log preference if log file not initialized
...
Regression introduced by 01b457895
2023-07-28 21:31:48 +01:00
José Rebelo
f3c74267c5
Set OpenTracks selection spinner to current package
2023-07-28 20:21:53 +00:00
José Rebelo
47a757bd91
Set default name for database export file
2023-07-28 20:21:53 +00:00
José Rebelo
f9ef3f47ab
Extract Pebble and HPlus settings to standalone activities
2023-07-28 20:21:53 +00:00
José Rebelo
e068bfdb75
Fix crash when acquiring location
2023-07-28 20:21:53 +00:00
José Rebelo
12b5ec8415
Upgrade Settings to androidx
...
- Extend AbstractSettingsActivityV2
- Replace all checkbox preferences with switch preferences
- Add app:useSimpleSummaryProvider to all preferences that were in getPreferenceKeysWithSummary
- Add null checks on all prefs to fix crashes in nested preference screens
- Replace listeners with lambdas to reduce code indentation
- Set input type to number where relevant
2023-07-28 20:21:53 +00:00
José Rebelo
f4b059f173
Introduce AbstractSettingsActivityV2
...
This class introduces some of the common logic across preference
screens, handling nested PreferenceScreens, as well as the back button
and action bar title setting.
2023-07-28 20:21:53 +00:00
José Rebelo
597373f126
Allow filtering notifications from work profile apps
2023-07-28 18:53:50 +01:00
José Rebelo
078d3e2a55
Make application list sorting case-insensitive
2023-07-28 18:50:02 +01:00
José Rebelo
48ee259d89
Bangle.js: Reorganize device settings
2023-07-27 18:38:15 +01:00
hrglpfrmpf
c1fd0b77ad
Support for Withings Steel HR ( #2831 )
...
Co-authored-by: hrglpfrmpf <hrglpfrmpf@web.de>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2831
Co-authored-by: hrglpfrmpf <hrglpfrmpf@noreply.codeberg.org>
Co-committed-by: hrglpfrmpf <hrglpfrmpf@noreply.codeberg.org>
2023-07-26 17:20:43 +00:00
José Rebelo
606e20a065
Amazfit GTR/S 3: Enable AGPS Updates
2023-07-25 21:47:12 +01:00
José Rebelo
69ae0817cf
Upgrade Q-Hybrid watchface settings to androidx
2023-07-25 20:52:39 +01:00
José Rebelo
bac1d35479
Upgrade notification settings to androidx
2023-07-25 19:52:12 +01:00
Daniele Gobbetti
53c06b8c31
Introduce native app shortcuts for android > 30
2023-07-25 18:28:35 +02:00
Daniele Gobbetti
540a4499f6
Miband 6: enable PAI and Stress support
2023-07-25 18:23:15 +02:00
José Rebelo
cac92fdc26
Upgrade discovery and pairing preferences to androidx
2023-07-25 12:24:42 +01:00
Gordon Williams
1b281c7c62
Fixing SecurityErrors on Android 12+ discovered via Play Store (after API31 update)...
...
* Check for bluetooth permissions in DiscoveryActivity
* At startup we now pop up a dialog explaining why we want *any* permissions
* Fixing ControlCenterv2 permissions requests for Android S and later (requesting background location stopped *any* dialog appearing)
* Fixing all errors in DiscoveryActivity from Android Studio by catching errors
* Move permission requests around to ensure that we only call RequestMultiplePermissions from onCreate
* Only show dialog if we have permissions to request
* Fix "LifecycleOwners must call register before they are STARTED" on some Android devices: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3192/files#issuecomment-967267
2023-07-25 11:50:53 +01:00
José Rebelo
f08c08005b
Upgrade about user preferences to androidx
2023-07-25 09:22:45 +01:00
José Rebelo
cac41ea945
Upgrade charts preferences to androidx
2023-07-25 09:22:41 +01:00
José Rebelo
116703adff
Pull reusable preferences logic to AbstractPreferenceFragment
2023-07-24 23:34:00 +01:00
José Rebelo
dd91716680
Amazfit GTR 4: Whitelist fw 3.23.3.1 diff from 3.21.0.1
2023-07-24 20:08:35 +01:00
José Rebelo
3b7f4f7238
Allow for gatt write request responses
...
Allow for support classes to send a write request response to the
device, fi requested. The standard actually expects this to happen, but
Gadgetbridge did not originally support it, so there are concerns that
enabling this globally will cause issues for devices that do not expect
the response.
See also: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2831#issuecomment-941568
2023-07-24 18:16:23 +01:00
José Rebelo
a02a6cba14
Update device settings action bar title depending on current screen
2023-07-23 22:27:11 +01:00
José Rebelo
b1ceb96100
Fix notification filters by title if notification does not contain a body
2023-07-23 21:02:46 +01:00
José Rebelo
702651c119
Sony WH-1000XM3/WF-SP800N: Add volume setting
2023-07-23 19:40:11 +01:00
Damien 'Psolyca' Gaignon
916fb6b768
Add customize buffer size on BTBRQueue
2023-07-22 19:49:34 +00:00
José Rebelo
247a954920
Huami/Zepp OS: Improve reconnection
...
- Remove notification on unneeded characteristics for Zepp OS devices
- Reset MTU before initializing device, since the support class is
reused when reconnecting, and keeping the previous high MTU before
renegotiating again can make the initialization fail sometimes
(band will never reply)
- If any of the chunked characteristics is null during initialization,
mark the device as waiting for reconnect, which will make it retry the
connection later with a backoff delay.
2023-07-22 20:31:26 +01:00
José Rebelo
aa87c5abeb
Fix reconnect delay reset after all devices are initialized
2023-07-22 20:28:25 +01:00
José Rebelo
db4349bfc9
Huami: Display fetch operation description
2023-07-22 20:27:20 +01:00
José Rebelo
07ec8a095b
Zepp OS: Handle fitness goals in Huami2021Support
...
HuamiSupport handles configurations with performInitialize, which may
trigger a device reinitialization if called while the device is already
initializing.
Handle fitness goals in Huami2021Support, which should be one of the
last settings still missing.
2023-07-22 14:35:54 +01:00
José Rebelo
76576af324
Huami 2021: Do not initialize device for chunked ack
...
Since we now handle chunked acks as of 74dac3f5c
, these may happen
during device initialization. We must not use performInitialized, or
initializeDevice will be called twice, since the device will still not
be in INITIALIZING state.
2023-07-22 13:50:54 +01:00
Arjan Schrijver
f58c655449
Fossil/Skagen Hybrids: Strip unicode characters that the watch can't display
2023-07-22 12:13:25 +02:00
mormegil
8f5c32fbee
Fix PineTime firmware upload for Android 12 target
...
Now that the target SDK was changed to 31, the `no.nordicsemi.android:dfu`
library needs to be updated, as the current version dies on Android 12+.
However, the fixed version (1.12.0) also fixed MTU handling: The previous
versions ignored the MTU settings completely for legacy DFU.
<https://github.com/NordicSemiconductor/Android-DFU-Library/pull/260 >
And while our `PineTimeJFSupport` code always tried to set MTU to 517, it was
ignored. Which was good because PineTime does not support larger MTUs. So that
we need to set the correct low MTU now the library really applies it.
Note that the current version of the DFU library cannot be used right now, it
does not even compile because of androidx dependency mismatch.
Fixes #3203
2023-07-22 09:54:45 +00:00
Johannes Krude
9700fef111
Casio GMW-B5000: separate DeviceType, but still using the CasioGWB5600DeviceSupport
2023-07-22 09:39:56 +00:00
Johannes Krude
685ccfd1c9
Casio GW-B5600: setAutoReconnect(true) on first connection
2023-07-22 09:39:56 +00:00
Johannes Krude
7cb060c9fe
Casio GW-B5600: initial support
2023-07-22 09:39:56 +00:00
Johannes Krude
91415e2500
Casio: Refactoring
2023-07-22 09:39:56 +00:00
José Rebelo
57ef0ded64
Sony WH-1000XM5: Fix speak-to-chat enable/disable
2023-07-22 10:24:33 +01:00
José Rebelo
5c78488e93
Fix emoji transliteration
2023-07-20 21:54:31 +01:00
mormegil
cc8a1dbdaa
Added copyright header to all new Garmin Vivomove files
2023-07-20 20:30:14 +00:00
mormegil
a4ec3a62aa
PR-related improvements
...
- rename service identifiers for clarity
- define BLE scan filter in the coordinator (even though GB does not use those currently)
- rename `DownloadedFitFile` to `GarminFitFile`
- bump DB schema version to 49
2023-07-20 20:30:14 +00:00
mormegil
dccb8ed1c4
Changes suggested in PR
...
- use `BLETypeConversions`, added the missing functions there (+ unit tests for all)
- change Java package of Protobuf definitions so that they are not discarded by Proguard
-- +add subpackages to the Proguard rules so we can subdivide the classes
+ disable device-specific settings for Vivomove (no settings yet)
2023-07-20 20:30:14 +00:00
Mormegil
3a58314db6
Garmin Vivomove HR support
...
- communication protocols
- device support implementation
- download FIT file storage
Features:
- basic connectivity: time sync, battery status, HW/FW version info
- real-time activity tracking
- fitness data sync
- find the device, find the phone
- factory reset
Features implemented but not working:
- notifications: fully implemented, seem to communicate correctly, but not shown on watch
Features implemented partially (not expected to work now):
- weather information (and in future possibly weather alerts)
- music info
- firmware update: only the initial file upload implemented, not used
Things to improve/change:
- Device name hardcoded in `VivomoveHrCoordinator.getSupportedType`, service UUIDs not available
- Download FIT file storage: Should be store (and offer the user to export?) the FIT data forever?
- Obviously, various code improvements, cleanup, etc.
2023-07-20 20:30:14 +00:00
Mormegil
114f6fcbf0
First piece of Garmin Vivomove HR support basics
...
- `DeviceType` definition
- Definition of activity sample table
- Coordinator and sample provider
2023-07-20 20:30:14 +00:00
José Rebelo
bdb904faf9
Fix character mark removal before flattening to ASCII
2023-07-17 22:42:53 +01:00
José Rebelo
12dd9651e7
Fix opening screenshots from notification on external apps
2023-07-17 00:09:10 +01:00
vanous
849337b447
Amazfit Neo: Enable PAI
2023-07-16 22:57:18 +02:00
José Rebelo
258023a05d
Zepp OS: Fix reminder creation
...
Regression introduced by 9d3c480414
2023-07-12 23:27:15 +01:00
José Rebelo
525f1567c1
Huami: Prevent activity data fetch if there is no data to fetch
...
More information in #3201
Fixes #3196
2023-07-12 23:21:56 +01:00
José Rebelo
ccfc112e2b
Huami: Persist workout raw details even if gpx has no points
2023-07-12 23:18:31 +01:00
Richard de Boer
8e270fcbf7
Bangle.js: refactoring
...
Extract handling of packet types with large code blocks.
Incidentally fixes "intent" packets launching a full calendar sync if
intents are disabled in GB settings.
2023-07-11 20:46:50 +02:00
José Rebelo
4c7920133b
Amazfit GTS 2e: Add activate display on lift sensitivity
2023-07-11 18:19:43 +01:00
José Rebelo
226ccd9fad
Remove duplicated media session handling code
2023-07-09 17:39:21 +01:00
José Rebelo
3da539be23
Bohemic Smart Bracelet: Initial support
2023-07-09 14:29:39 +00:00
José Rebelo
298dbbe777
LeFun: Broadcast when HR samples are received
2023-07-09 14:29:39 +00:00
José Rebelo
da5f91f05b
Huami/Zepp OS: Improve music info stability
2023-07-09 15:16:37 +01:00
José Rebelo
ac89b1df9d
Use package name for Catima permissions
...
The Catima permissions had to be split per package-name to avoid
conflicts between debug and release channels due to mismatching apk
signatures.
See https://github.com/CatimaLoyalty/Android/pull/1411
2023-07-09 14:29:30 +01:00
Benjamin Swartley
739bd1b5a8
Use AudioManager for Media Buttons
...
Switch from ACTION_MEDIA_BUTTON to all AudioManager
Add mb_intents pref for audioplayer
2023-07-08 23:13:04 +00:00
José Rebelo
665268c419
Fix Weather notification integration
2023-07-07 09:03:35 +01:00
José Rebelo
708cb0c617
Zepp OS: Attempt to parse raw sensor values
2023-07-05 17:47:19 +01:00
José Rebelo
3516099dc9
Fix crash if Catima is not installed
2023-07-04 09:43:35 +01:00
José Rebelo
fea3bf50a4
Zepp OS: Add loyalty cards integration with Catima
2023-07-03 23:19:19 +01:00
José Rebelo
e95c8a3775
Add PAI charts
2023-07-02 16:05:10 +01:00
Gordon Williams
88e0b9543d
Bangle.js: HTTP request XPath can now return Arrays.
...
More robost toJSON that deals with unicode and null
Log messages when converting words to images so we can debug when words are being converted that shouldn't be
2023-06-30 11:34:53 +01:00
Gordon Williams
0e0f72410a
Bangle.js: fix mixup of navigation left slight&sharp icons
2023-06-29 14:49:22 +01:00
Gordon Williams
d82ba7a04c
Bangle.js: Send the timestamp of our last activity sample to the Bangle on connect, so that it can update us on missing activity samples
2023-06-26 11:39:29 +01:00
Gordon Williams
2aac797dec
Remove some build warnings in BangleJSDeviceSupport
2023-06-26 11:20:50 +01:00
Gordon Williams
8e010bc6dd
Stop BangleJSDeviceSupport repeatedly calling GBLocationManager.stop and spamming the log with "Stop location updates"
2023-06-26 11:15:54 +01:00
Gordon Williams
94cd7523db
Ensure we now escape chars in the unicode start range. With Bangle.js ~2v18.20+ we added Unicode support, but if we're sending non-unicode chars in the unicode range it will confuse Espruino
2023-06-26 11:07:38 +01:00
Lukas
6e3ce89ae5
add attribute to set the source of the gps signal
2023-06-22 21:37:55 +00:00
Lukas
6da6baa5e6
Add switch to control if the GPS chip should be used to locate the location
2023-06-22 21:37:55 +00:00
Arjan Schrijver
7c5cd4c032
Fossil/Skagen Hybrids: Increase accuracy of workout distance calculation
2023-06-19 15:57:09 +02:00
Arjan Schrijver
2081463a4f
Fossil/Skagen Hybrids: Add UV index and chance of rain widgets
...
Note: this needs support from weather apps, for example:
https://github.com/TylerWilliamson/QuickWeather/pull/69
2023-06-18 22:11:07 +02:00
Arjan Schrijver
ff563022f5
Fossil/Skagen Hybrids: Fix weather icons day/night status
2023-06-17 22:54:41 +02:00
José Rebelo
88b7cd5756
Add stress charts
2023-06-17 17:28:11 +01:00
José Rebelo
fec48c4340
Generalize charts logic for non-activity data
...
- Make ChartsHost independent from ChartsActivity
- Rename ChartsActivity to ActivityChartsActivity
- Rename AbstractChartFragment to AbstractActivityChartFragment
- Pull common charts logic to parent classes:
- From ActivityChartsActivity to AbstractChartsActivity
- From AbstractActivityChartFragment to AbstractChartsFragment
2023-06-16 23:53:28 +01:00
José Rebelo
9d3c480414
Zepp OS: Refactor config, display items, reminders and http to standalone services
2023-06-16 20:43:07 +01:00
José Rebelo
8f5bbec881
Zepp OS: Only cache apps and watchfaces
2023-06-15 22:07:08 +01:00
José Rebelo
fad7fa395b
Zepp OS: Show watchfaces in app management
2023-06-15 22:04:01 +01:00
José Rebelo
5957f71110
App Manager: Fill out missing app info from cache
2023-06-15 22:01:16 +01:00
José Rebelo
9b7d5eee42
Zepp OS: Cache apps for app management
2023-06-15 21:59:16 +01:00
José Rebelo
853470a2bd
Revert "Zepp OS: Unify support class and fw handling"
...
This reverts commit d59e8c3f62
.
We need to refactor the Huami classes too, otherwise this needs a lot of
hacks to work properly.
2023-06-15 21:39:22 +01:00
José Rebelo
d59e8c3f62
Zepp OS: Unify support class and fw handling
2023-06-15 20:50:15 +01:00
José Rebelo
daec12e13b
Amazfit GTR 3/GTS 3/GTR 3 Pro/T-Rex 2: Revert AGPS updates
...
Users reported that this is not actually working - further information
on the protocol is needed.
- Reverts 1898962e79
and 55cef71d3a
2023-06-15 13:09:29 +01:00
José Rebelo
1b44f3566e
Prevent UI freeze when a folder has a lot of devices
...
Do not include the devices from collapsed folders in the array.
2023-06-14 21:24:26 +01:00
José Rebelo
5f0689d2e1
Make screenshot notification strings translatable
2023-06-14 21:02:27 +01:00
José Rebelo
5df25effba
Make screenshot notifications high priority
2023-06-14 21:02:27 +01:00
José Rebelo
b3db9b7768
Zepp OS: Add screenshot support
2023-06-14 21:02:27 +01:00
José Rebelo
531aef61fd
Move screenshot encoding to PebbleProtocol
2023-06-14 21:02:27 +01:00
José Rebelo
55cecceb38
Zepp OS: Add support for compressed file transfer
2023-06-14 21:02:27 +01:00
José Rebelo
d29e092ce7
Zepp OS: Fix file transfer service incoming file size parse
2023-06-14 21:02:27 +01:00
José Rebelo
3217e4a2dd
Zepp OS: Add missing ack on file transfer service
2023-06-14 21:02:27 +01:00
José Rebelo
74dac3f5cd
Huami 2021: Handle chunked ACKs
2023-06-14 15:45:49 +00:00
Andreas Shimokawa
f80b873866
Prefs: make allow high MTU default to true.
...
It is 2023, it should work, if not it can be turned off.
For newer devices with big firmwares and apps (like Mi Band 7), people just wonder how slow Gadgetbridge installs stuff...
2023-06-14 16:44:51 +02:00
José Rebelo
7262197a34
BTBR: Fix device update intent subject on connection change
2023-06-13 22:37:35 +01:00
Damien 'Psolyca' Gaignon
a3c0e10330
Add GBDevice argument to getAlarmSlotCount
2023-06-13 23:10:55 +02:00
Damien Gaignon
be575af314
Add BTBR service
2023-06-13 12:06:13 +00:00
Gordon Williams
b2aa61e182
Changed NavigationSpec's distance into a String.
...
Previously we used an integer (in meters) but when using
Google Maps navigation, Google Maps picks units based on locale *and*
the distance - it might report "100m" or "20km". Then we carefully undo
all that work, and for PineTime we just as "m" so you may well have "20000m"
or more displayed, which is not ideal.
I imagine at some point that will change, but we probably want to
be able to handle that in the OSMAnd side of Gadgetbridge so all watches
that implement navigation will benefit (and won't duplicate code).
2023-06-13 07:32:12 +00:00
José Rebelo
5c3b76b838
Add missing mutability flags to PendingIntents
2023-06-13 00:14:04 +01:00
José Rebelo
8899187ee4
Replace forEach with explicit for cycle
...
forEach with lambda is only available in SDK24+
2023-06-13 00:11:42 +01:00
José Rebelo
1898962e79
Amazfit GTR/S 3: Enable AGPS Updates
2023-06-12 20:56:55 +01:00
José Rebelo
5b2ebeb4c4
Zepp OS: Fix AGPS and gpx route upload compatibility detection
2023-06-12 19:50:57 +01:00
José Rebelo
55cef71d3a
Amazfit T-Rex 2: Enable AGPS updates and gpx route upload
2023-06-12 09:32:08 +01:00
José Rebelo
9e09fe15bf
Huami: Fix stress sample timestamp increment
2023-06-12 08:58:10 +01:00
José Rebelo
c666947a28
Intent API: Add command to set device mac address
2023-06-11 19:52:30 +00:00
José Rebelo
9393d2c28f
Zepp OS: Add service to query supported services
2023-06-11 18:34:40 +01:00
José Rebelo
c3c4c2ce74
Zepp OS: Add watch app logs developer option
2023-06-11 18:23:54 +01:00
José Rebelo
d38afe60c2
Zepp OS: Add incoming file support to file transfer service
2023-06-11 15:21:39 +01:00
José Rebelo
c77a5467e7
Fix typo in connection priority variable
2023-06-11 00:44:20 +01:00
José Rebelo
8ff3ce0477
Zepp OS: Add experimental app management
2023-06-10 23:31:38 +01:00
José Rebelo
89b23f77b7
App Manager: Fix cached apps sorting
2023-06-10 21:04:41 +00:00
José Rebelo
240326c99a
App Manager: Hide drag handle if app reorder is not supported
2023-06-10 21:04:41 +00:00
José Rebelo
c1339aa5c6
App Manager: Only set up to date apps on FOSSILQHYBRID
2023-06-10 21:04:41 +00:00
José Rebelo
6dcd055d0d
App Manager: Add confirmation before deleting app
2023-06-10 21:04:41 +00:00
José Rebelo
d77a32a430
Zepp OS: Add code to toggle raw sensor data
2023-06-10 19:07:00 +01:00
José Rebelo
a3c59b0e0e
Zepp OS: Add experimental sync of SpO2, stress, PAI, HR stats and sleep respiratory rate
2023-06-10 17:19:22 +01:00
José Rebelo
58704a0eec
Zepp OS: Make Alexa an experimental feature
2023-06-10 17:15:36 +01:00
José Rebelo
3716a031ce
Zepp OS: Implement Alexa service protocol
2023-06-10 17:05:09 +01:00
José Rebelo
46dfd1040a
Add action to request connection priority
2023-06-10 17:00:40 +01:00
José Rebelo
42c37c04a0
Zepp OS: Display watchface and app preview on install
2023-06-10 13:34:48 +01:00
José Rebelo
003246ae1c
Zepp OS: Fix zpk compatibility detection
2023-06-10 12:41:10 +01:00
Ganblejs
20de001e49
Bangle.js: Add more weather data sent to watch
...
Specifically UV Index, the day max and min temp, probability of rain.
Inspired by PR #3095
Bangle.js:Send UV Index with one decimal point
2023-06-09 20:55:32 +02:00
José Rebelo
1730064f11
Zepp OS: Match zpk compatibility by deviceSource
2023-06-09 18:35:29 +01:00
Gordon Williams
1fa8936544
Google Maps: Added more recognised icons - needed another enum for going all the way around a roundabout
2023-06-09 13:59:05 +01:00
Arjan Schrijver
0b241af8e7
Force FlattenToAsciiTransliterator to return only ASCII
2023-06-09 10:13:10 +00:00
Gordon Williams
735f27d5bf
Add Navigation handling to Bangle.js
...
Add extra 'ETA' field to NavigationInfoSpec
Allow Local Notifications from Google Maps to be parsed into NavigationInfoSpec by GoogleMapsNotificationHandler
Moved notification handling after blacklist check as per https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3136#issuecomment-920095
Ensure we don't create a nav message for 'Location Shared with you' messages.
Recognise 'ft' as a distance unit and convert accordingly
Google Maps navigation: Adding new recognised icons, and removing warnings/errors from file
2023-06-09 08:50:40 +01:00
kieranc001
9c682da4cc
Fix typos for Pinetime weather expiry time
...
The expiry time should be 6h (60 * 60 * 6), but has been set to 6 minutes (60 * 6) unintentionally in 3 places.
This change sets the expiry to the correct value throughout the file.
Signed-off-by: kieranc001 <kieranc001@noreply.codeberg.org>
2023-06-08 14:30:10 +00:00
José Rebelo
dd01c77aca
Zepp OS: Support flashing zab files
2023-06-08 14:22:15 +01:00
José Rebelo
594a611065
Zepp OS: Fix update operations on Zepp OS 2.1+
2023-06-08 13:36:53 +01:00
Gordon Williams
b334773856
Bangle.js: fix the rare case where we're converting an emoji/unicode to a bitmap but it doesn't have a width/height - we just create a bitmap of min. 1px
2023-06-08 12:36:12 +01:00
Gordon Williams
e59375242e
Bangle.js: Allow an activity sample to have a time specified - first steps in allowing Bangle.js to send 'missed' health data
2023-06-06 20:25:58 +01:00
Enrico Brambilla
93e8996b52
Fossil/Skagen Hybrids: Add support for ultraviolet index and rain probability
...
Updates WeatherSpec to v3 to add fields for UV index and precipitation probability
Co-authored-by: Enrico Brambilla <enricobilla@noreply.codeberg.org>
Co-committed-by: Enrico Brambilla <enricobilla@noreply.codeberg.org>
2023-06-05 19:52:26 +00:00
Richard de Boer
7e1685f5f9
Bangle.js: fix memory leak from HTTP requests
...
Every call to Volley.newRequestQueue() creates a new global thread pool,
which isn't automatically cleaned up once the request completes.
With this commit we create a RequestQueue around on first use, and reuse
it for subsequent requests.
2023-06-05 10:09:28 +00:00
José Rebelo
0c52f3d3da
Improve notification logging
...
- Reduce duplicated and redundant messages
- Log notification priority
- Add log entry for notification ignored by dnd
2023-06-03 20:28:27 +01:00
José Rebelo
eb7366c7e3
Huami 2021: Prevent duplicated payload logging
2023-06-03 20:25:23 +01:00
José Rebelo
ed3ce6fa9d
Huami: Fix stress timestamp off by 1 minute
2023-06-02 23:31:47 +01:00
Aidan Crane
29bf03dceb
Re-added ability to make Mi Band 6 visible in third party apps
2023-05-31 02:42:45 +01:00
Ganblejs
7d1de4a5e8
Bangle.js: Bump flavor targetSdkVersion to 31
...
This also touches parts of the app not only used for bangle.js.
E.g. pending intents gets new flags from SDK 23 inclusive.
Bluetooth permissions are updated to work on SDK 31.
Permission handling is updated to the new way for doing it with
introduction of a new function. This is called for newer sdk versions.
bump Bangle.js flavor targetSdkVersion to 31
update comments re SDK 31
set the 'exported=true' I introduced to false instead - except for three places
add uses-permission for handling bluetooth in order to work on api >30
add if-blocks adding FLAG_IMMUTABLE to PendingIntents on api >30
add link to bluetooth documentation
Add comment to banglejs manifest. Add requirement annotation to ControlCenterv
bump compileSdkVersion to 31
add "OpenAppSettings" permission popup while working out individual permission popups on android 13
if SDK < 31 do permissions one by one, else send user to app info page to switch permissions manually
working solution, but needs cleaning
do some cleaning, not done though
remove some logging
remove import Log
tweak and remove toasts in new permissions handling
Change conditions `> Build.VERSION_CODES.Q` to `>= Build.VERSION_CODES.R` matching the style used everywhere else
Revert "Change conditions `> Build.VERSION_CODES.Q` to `>= Build.VERSION_CODES.R` matching the style used everywhere else"
This reverts commit 2929629ff43fbb685eb3d15e42459f321f68fa11.
Revert "add if-blocks adding FLAG_IMMUTABLE to PendingIntents on api >30"
This reverts commit ed8e1df7bb8b71fee745fbf9d10747d47c8f6cb8.
Pending intents gets `PendingIntent.FLAG_IMMUTABLE` if `(Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)`.
Bangle.js: undo `@RequiresApi` code R
... to remove error in Android Studio where declared required api was
higher then minSDK version.
Use FLAG_MUTABLE for reply to test notification
This should fix Gadgetbridge crashing when replying to the test
notification from the debug activity. As reported here:
https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2924#issuecomment-917282
Change to use FLAG_IMMUTABLE/_MUTABLE from SDK 23
... as suggested by Android Studio. This is supposed to make the app
more secure by not allowing certain changes to pending intents where
they are not expected. If I understood correctly.
Add PendingIntentUtils class to manage mutability
2023-05-30 00:25:20 +02:00
octospacc
514f983299
Intent API: Update DEBUG_SEND to DEBUG_SEND_NOTIFICATION, and make fields clearer
2023-05-29 23:55:54 +02:00
octospacc
2659a23421
Intent API: Add allow_debug_commands option and receivers for SEND, INCOMING_CALL
2023-05-29 22:57:34 +02:00
José Rebelo
7e15462593
Huami: Migrate activity fetching to repeated fetch operation
2023-05-29 20:11:42 +01:00
José Rebelo
e55a35eced
Huami: Persist sleep respiratory rate data
2023-05-27 19:03:43 +01:00
José Rebelo
a1e07b5d1b
Huami: Persist PAI samples
2023-05-27 19:02:01 +01:00
José Rebelo
24f78655c2
Huami: Persist heart rate max, resting and manual samples
2023-05-27 18:59:12 +01:00
José Rebelo
592356faf1
OsmAnd: Make navigation instructions configurable
2023-05-26 11:26:22 +00:00
José Rebelo
b4c2fa21bc
Extract ShowDurationDialog from ChartsActivity
2023-05-25 23:45:03 +01:00
José Rebelo
79e3df4844
Extract inner classes from AbstractChartFragment
...
No code changes, will simplify future refactor and reuse.
2023-05-25 23:40:21 +01:00
José Rebelo
b091521155
Mi Band 7: Add preference to display call contact information
2023-05-24 23:47:20 +01:00
José Rebelo
347048dae5
Mi Band 7: Whitelist firmware 2.0.0.2
2023-05-24 23:33:02 +01:00
José Rebelo
9d966c8179
Huami: Add max HR fetch operation (no db persistence)
2023-05-23 22:35:24 +01:00
José Rebelo
c79a833bbf
Huami: Add PAI fetch operation (no db persistence)
2023-05-23 22:25:58 +01:00
José Rebelo
733e5dd290
Huami: Map UTC offset in HR and respiratory rate fetch operations
2023-05-23 00:05:03 +01:00
Martin Boonk
fd9efdcb72
Bangle.js: Match default interval from resource file
2023-05-22 22:17:10 +00:00
Martin Boonk
88161bed91
Bangle.js: Inform user if GPS set to off in settings
2023-05-22 22:17:10 +00:00
Martin Boonk
d4bcbc52fb
Bangle.js: Fix typo
2023-05-22 22:17:10 +00:00
Martin Boonk
a57a8cc7ca
Bangle.js: Fix location listener not being cleaned up when waiting for reconnect
2023-05-22 22:17:10 +00:00
José Rebelo
3f87bfadd4
Huami: Add queued fetch operations
2023-05-22 22:15:35 +00:00
José Rebelo
23e9a3deb1
Huami: Persist stress and SpO2 data
2023-05-22 22:15:35 +00:00
José Rebelo
25038d965f
Introduce generic TimeSamples for recorded data
2023-05-22 22:15:35 +00:00
Gordon Williams
788cb15500
Based on Play Store crash reports and stack traces, add a null check to try and avoid crashes
2023-05-22 13:38:04 +01:00
Gordon Williams
82778c46a5
Bangle.js: ensure we can return to appsmanagementactivity after having opened another window
...
Attempting to handle file open and close dialogs from the WebView
2023-05-22 13:13:50 +01:00
Andreas Shimokawa
55e7f6595b
fix build after rebase
2023-05-21 22:50:52 +02:00
Ernst
56e1efaa3d
Fixed typo in "continue" turn and added roundabout left,right and offroute turns
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
9ccd898d42
add supportNavigation() to cooridinator
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
e7c048551f
Infinitime: Fix icon mapping
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
4cad3b3837
InfiniTime: support navigation app
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
93b9ee735c
add missing file
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
d7e2f1ff8c
make use of onSetNavigationInfo() in osmand receiver.
...
This is not implemented anywhere, purely preparing for further experiments
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
48dee7486f
add onSetNavigationInfo() to device interface
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
6379036559
subscribt to voice info also
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
0d1a1f8a9f
experiment with osmand
...
add osmand license note to readme
Cleanup unneeded aidl and java
2023-05-21 22:50:52 +02:00
José Rebelo
3a5d5dfbb0
Huami: Add sleep respiratory rate fetch operation (no db persistence)
2023-05-21 21:14:29 +01:00
José Rebelo
07357305cb
Huami: Unify recorded data fetching in HuamiSupport
2023-05-20 20:44:18 +01:00
José Rebelo
8cda2f74e8
Extract NonSwipeableViewPager to standalone class
2023-05-19 21:24:27 +01:00
Gordon Williams
757e36ebd6
Bangle.js: Add message size limitation to Calendar and Messages - stops huge data streams being sent out esp for calendar events
2023-05-19 10:46:37 +01:00
Gordon Williams
0debd26a37
Add null pointer check based on Google Play store reports:
...
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
2023-05-19 09:44:10 +01:00
José Rebelo
36d2fde49b
Zepp OS: Improve weather models
2023-05-18 23:39:24 +01:00
José Rebelo
2b6a79f462
Zepp OS: Manage contacts on watch
2023-05-17 23:43:29 +01:00
José Rebelo
f68e4c865b
Huami: Add stress, SpO2, heart rate fetch operations (no db persistence)
...
Introduce a reusable abstract logic for repeated fetch operations.
Add fetch operations for the following:
- Stress (manual and automatic)
- SpO2 (normal and sleep)
- Heart rate (manual and resting)
2023-05-17 21:56:54 +01:00
Arjan Schrijver
0bba156bec
Deduplicate icon retrieval code
2023-05-17 14:09:17 +02:00
José Rebelo
b1a9adadc3
Intent API: Add dataTypes parameter for activity sync
2023-05-16 21:34:05 +01:00
José Rebelo
76d99f1c33
Zepp OS: Start new GPX segments on pause/resume
2023-05-14 16:22:32 +01:00
José Rebelo
a8b9d22313
Add menus to share GPX, raw summary, raw details
2023-05-14 16:10:25 +01:00
José Rebelo
9851493cf1
Zepp OS: Add gpx route file upload
2023-05-14 14:20:39 +01:00
José Rebelo
01ec74602a
Refactor and extend GpxParser
2023-05-14 14:19:48 +01:00
José Rebelo
87c91fb9b0
Debug Activity: Allow pairing current device as companion
2023-05-13 17:07:02 +01:00
José Rebelo
e1cccd6953
Zepp OS: Refactor code for alarms, notifications, calendar, canned messages
2023-05-10 23:33:23 +01:00
Arjan Schrijver
f727f2fdcb
Fossil/Skagen Hybrids: Pair watch to phone, fixes repeating confirmation request
2023-05-08 22:44:43 +02:00
José Rebelo
e0d481bb36
Sony WH-1000XM5: Add power off, fix battery, fix speak-to-chat fetch
2023-05-06 17:41:10 +01:00
José Rebelo
7b3fbeb4af
Sony WH-1000XM5: Initial support
2023-05-06 16:03:48 +01:00
José Rebelo
e4933a0b42
Sony Headphones: Improve unit tests
2023-05-06 14:41:28 +01:00
José Rebelo
880bf9e1b1
Amazfit GTR 3 Pro: Initial support
2023-05-03 20:49:02 +01:00
José Rebelo
483ef27a4f
Zepp OS: Set region on user info
...
This affects available features (eg. Alexa). Defaults to the previous
value of "unknown" for now, and no UI. Alexa requires a region where it
is available, such as Germany ("de").
2023-04-30 17:03:05 +01:00
José Rebelo
6c0a276441
Zepp OS: Add code for AQI shortcut card
2023-04-30 11:55:34 +01:00
José Rebelo
1d0b10ed0f
Zepp OS: Refactor services config and init logic
2023-04-30 11:42:34 +01:00
José Rebelo
94c7b43ad4
Zepp OS: Map known watchfaces to human-readable names
2023-04-26 09:51:14 +01:00
José Rebelo
9a8e95bd18
Zepp OS: Set watchface from phone
2023-04-24 20:20:43 +01:00
José Rebelo
3c3936bf6a
Zepp OS: Add shortcut cards preference
2023-04-24 19:12:22 +01:00
José Rebelo
ad8069b38d
Zepp OS: Fix setting of control center
2023-04-22 22:56:18 +01:00
Sky233ml
83c83580da
Zepp OS: Fix Cards and MI AI display item and shortcuts
2023-04-16 10:51:56 +08:00
José Rebelo
c21d53ab49
Zepp OS: Add driving workout code
2023-04-09 13:45:46 +01:00
Arjan Schrijver
b892748b15
Cache notifications while devices are out of range (opt-in)
2023-04-05 11:11:23 +02:00
José Rebelo
340db0ca15
Amazfit GTR 4 / GTS 4: Perform and receive phone calls on watch
2023-04-02 18:50:58 +01:00
José Rebelo
f1dd4019bf
Zepp OS: Add support for morning updates
2023-04-01 20:58:21 +01:00
José Rebelo
4713c6511e
Zepp OS: Manage contacts on watch (protocol only)
2023-04-01 13:51:23 +01:00
José Rebelo
58686ae7d7
Sony WH-1000XM4: Attemptto fix handling of speak to cheat enabled
2023-03-24 00:39:02 +00:00
José Rebelo
2ec68dbef4
Sony WH-1000XM4: Attempt to fix handling of speak to cheat enabled
2023-03-24 00:37:15 +00:00
José Rebelo
f2a7f6ab45
Sony WH-1000XM4: Add speak-to-chat settings
2023-03-24 00:03:54 +00:00
José Rebelo
d7ecfcb16b
Sony WH-1000XM4: Add speak-to-chat
2023-03-23 21:50:40 +00:00
thirschbuechler
da001544c5
add CroatianTransliterator
2023-03-21 20:00:28 +00:00
Gordon Williams
2a5cd559d5
Fix issue updating timezone in setting.json if the timezone is zero ( https://github.com/espruino/BangleApps/issues/2575 )
2023-03-21 15:08:59 +00:00
José Rebelo
aeb8607e78
Amazfit GTR 4 / GTS 4: Add watch Wi-Fi Hotspot and FTP Server
2023-03-21 00:02:59 +00:00
José Rebelo
d6b1b778b8
Zepp OS: Add preference for camera remote
2023-03-19 22:35:02 +00:00
José Rebelo
00954dfa6d
Zepp OS: Add config to keep screen on during workout
2023-03-19 22:25:44 +00:00
José Rebelo
ac002f8db9
Zepp OS: Fix activate display upon lift wrist smart mode
2023-03-19 22:11:39 +00:00
José Rebelo
443f13c11d
Zepp OS: Fix setting of unknown configuration values
...
Unknown configuration values are displayed in the UI as "Unknown (0x*)".
We can then attempt to parse them as hex and send the value.
2023-03-19 22:05:37 +00:00
José Rebelo
f0a05ded91
Amazfit GTR 4: Whitelist fw 3.18.1.1 diff from 3.17.0.2
...
Differential firmware updates are installed just like normal updates.
2023-03-19 15:53:17 +00:00
Joel Beckmeyer
ed9c746059
fix saving app notification/pebble blacklist preferences on import
2023-03-18 17:54:55 +00:00
Joel Beckmeyer
a8da4cf6d1
Amazfit Bip U: disable alarm snooze enable/disable
2023-03-17 15:46:46 -04:00
Oleg Vasilev
007f070125
huami: implement repeated activity fetching
...
Currently, huami only attempts to fetch activities once.
Since sports activity fetching creates an Operation twice per every fetch, we
need to pass around fetchCount variable to keep track of how many fetches has
occured.
Tested on my Amazfit GTR 4.
Signed-off-by: Oleg Vasilev <me@svin.in>
2023-03-11 15:02:00 +00:00
Andreas Shimokawa
d07fec33ca
SoFlow SO6: Add light command and request lock state
2023-02-21 16:09:23 +01:00
Andreas Shimokawa
4bd8c20a6d
SoFlow SO6: few cleanups and more testing
2023-02-21 16:09:23 +01:00
Andreas Shimokawa
74517f12a3
SoFlow SO6: First working lock&unlock
...
needs key
2023-02-21 16:09:23 +01:00
Andreas Shimokawa
5db9d36d1a
SoFlow SO6: fix settings
2023-02-21 16:09:23 +01:00
Andreas Shimokawa
27406e0881
SoFlow SO6: WIP
2023-02-21 16:09:23 +01:00
narektor
84e452bd6b
Galaxy Buds2 Pro support (this time proper) ( #3049 )
...
Mostly copied from the Buds Pro as those earbuds have a similar feature set and mostly the same protocol.
Working:
- Pairing
- Earbud and case battery level
- Finding lost device
- Settings:
- Noise control:
- ANC/ambient/off
- With one earbud
- Voice detect and timeouts
- Ambient sound during calls
- Touch options:
- Touch lock
- Switch noise control, voice assistant, Spotify and volume actions
- Double tap edge
- Equalizer
- Sound balance
- Seamless earbud connection
Can be improved:
- ~~ANC level and ambient sound volume do nothing, and don't seem to be supported on this model as there is no toggle for either in the official app.~~ (fixed: 26a9d274ae
)
- Ambient sound customization has more options than on previous models, but I can't implement it properly as I can't really hear any difference between the options (my buds might be the issue though).
- ~~The touch lock toggle is once again inverted, like on the [Buds2](d2c4990c48
)~~ (fixed: 21db5390c1
).
Untested:
- Settings:
- In-ear detection for calls
- Ambient sound customization
- Game mode
This PR also makes some visual changes to the settings of various Galaxy Buds models.
I'd also like to be added to the wiki's allow list. I want to add the Buds2 and Buds2 Pro to the list of supported devices.
---
And sorry for creating this many pull requests. This is mostly due to Codeberg breaking the reference to the branch.
Co-authored-by: Narek <narek.email@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3049
Reviewed-by: José Rebelo <joserebelo@noreply.codeberg.org>
Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
Co-authored-by: narektor <narektor@noreply.codeberg.org>
Co-committed-by: narektor <narektor@noreply.codeberg.org>
2023-02-21 14:50:24 +00:00
vanous
92cce3bbf2
Fix GeorgianTransliterator
2023-02-15 15:44:55 +01:00
halemmerich
90771891a5
Bangle.js: Additional values for GPS event ( #3026 )
...
This tries to use bearing and number of satellites if available. ~~Bangle.js watch currently sets course=NaN in it's implementation of the GPS event handler, so to be of use this needs a small change there as well: [https://github.com/espruino/BangleApps/pull/2504 ](https://github.com/espruino/BangleApps/pull/2504 )~~ Change has been merged.
Please advise on needed changes or oversights, thanks :)
Co-authored-by: Martin Boonk <martin@boonk.info>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3026
Co-authored-by: halemmerich <halemmerich@noreply.codeberg.org>
Co-committed-by: halemmerich <halemmerich@noreply.codeberg.org>
2023-02-14 10:45:58 +00:00
Albert
56ec206f5b
[Bangle.js] check if globalUartReceiver is set and move its removal to separate method
2023-02-14 10:43:39 +00:00
Albert
2e06d7afa5
[Bangle.js] remove uart.tx intent-listener on dispose
2023-02-14 10:43:39 +00:00
Arjan Schrijver
cbf98b9308
Fossil/Skagen Hybrids: Remove useless and annoying debug message
2023-02-11 21:02:24 +01:00
roolx
11bcaeb7a8
Add Georgian Transliteration
2023-02-09 21:44:35 +00:00
Arjan Schrijver
810cc91e8e
Fossil/Skagen Hybrids: Implement inactivity warnings
2023-02-06 14:26:26 +01:00
Arjan Schrijver
5ea68cad3b
Fossil/Skagen Hybrids: Rewrite configuration of automatic workout detection
...
Fixes #2514
2023-02-06 14:22:40 +01:00
Arjan Schrijver
14f05a7cf6
Fossil/Skagen Hybrids: Fix crash on empty or multi-byte unicode alarm texts
...
Fixes #3024
2023-02-05 14:35:01 +01:00
Lukas
25be7cf12d
Banglejs: change json key to lon when sending location data to watch
2023-01-30 21:40:30 +01:00
Arjan Schrijver
9b4f909ace
Fossil/Skagen Hybrids: Update known watch app versions
2023-01-27 21:19:25 +01:00
Gordon Williams
521edc4332
Bangle.js: Increase default realtime HRM/step interval to 10 seconds
...
Disable manual heart rate measurement - the current implementation in Gadgetbridge seems not really compatible with Bangle.js. There's no way to turn the HRM off when the window is closed, and HRM samples from *any* device would appear to be shown - not just the one that HRM info was requested on
2023-01-26 10:31:13 +00:00
José Rebelo
134376cbd0
Amazfit T-Rex 2: Initial support
2023-01-23 23:36:57 +00:00
Gordon Williams
b16464b3b6
Bangle.js stop 'toast' warning message appearing when starting the app loader. Fix https://github.com/espruino/BangleApps/issues/2496
2023-01-13 14:28:38 +00:00
Noodlez
ead7ada987
Code clean-up and documentation
2023-01-12 17:12:03 +00:00
Noodlez
8f5997d174
AsteroidOS: Remove unused overrides
...
There are now default empty implementations of all AbstractDeviceSupport
functions, so there's no need to provide empty ones
2023-01-12 17:11:57 +00:00
Noodlez
3e9a185b88
AsteroidOS: Fix weather forecast
...
The forecast was off by 1 day
2023-01-12 17:11:50 +00:00
Noodlez
616ec53086
AsteroidOS: Add simple device discovery
...
This is done by just comparing the names with already existing devices.
This is only a temporary solution until the discovery of the service
UUID works properly
2023-01-12 17:11:45 +00:00
Noodlez
d3d4baedea
AsteroidOS: Small code improvements
...
Removed logging in the DeviceCoordinator, fixed the time setting (day
was off by 1), consolodated many characteristic transactions to one
buidler and queue, and added Find My Device, by just initiating a call.
2023-01-12 17:11:40 +00:00
Noodlez
f7395ec6b2
Initial support for AsteroidOS watches
...
The watch does not auto-detect through pairing and therefore requires
discovering unsupported devices.
2023-01-12 17:11:36 +00:00
Gordon Williams
f3fa01dfba
Bangle.js: Quick tweak to stop us sending bitmaps for common characters that already had good enough equivalents
2023-01-11 13:45:46 +00:00
Arjan Schrijver
845887ddeb
Fossil/Skagen Hybrids: Add app/watchface downloading from watch to app manager
2023-01-07 23:07:34 +01:00
Lukas
9ef0e6044c
replace GPS_PROVIDER with NETWORK_PROVIDER to retrieve the gps data from the network
2023-01-07 12:09:42 +01:00
José Rebelo
78b73c0fac
Amazfit Band 7: Fix coordinator creation
2023-01-06 18:51:09 +00:00
Arjan Schrijver
b1d03e9f7a
Clean up duplicated unimplemented methods from device support classes
...
Moved to AbstractDeviceSupport so each device support class can override them if required. This change helps to keep the code base clean by not requiring every (Device)Support class to implement these methods even when they don't need them.
2023-01-05 22:11:32 +01:00
José Rebelo
17c58d2947
Amazfit GTR 4/GTS 4: Add AGPS Updates
2023-01-05 11:31:51 +00:00
Benjamin Swartley
f1e26aeb8b
Fossil/Skagen Hybrids: Fix activity parser
...
Switch to only saving 0xCE as sample data, mark additional known data
Remove unused updateSample from testing
Add 0xDD handling
Fix byte comparisons
Add SpO2 parsing, still unused. Cleanup
Clean remaining anomalies
Fix order sign blunder filtering out all data
Remove unproductive/improper debugging prints
2023-01-04 19:30:18 -05:00
José Rebelo
20cc75e7d2
Zepp OS: Fix Alipay and WeChat Pay display item and shortcuts
...
Closes #3014
2023-01-04 11:30:01 +00:00
Arjan Schrijver
d8af8bede0
Fossil/Skagen Hybrids: Allow launching watch apps from app manager
2023-01-02 15:15:48 +01:00
José Rebelo
041aa4faf2
Sony WF-1000XM4: Fix audio codec
2022-12-31 11:55:06 +00:00
José Rebelo
93c40e6457
Sony WF-1000XM4: Fix battery updates +while connected
2022-12-30 18:09:24 +00:00
José Rebelo
ff15fdaa9f
Sony LinkBuds S: Initial support
2022-12-30 18:07:18 +00:00
Daniel Dakhno
fed5866f19
Binary sensor: fixed byte overflow bug
2022-12-27 19:45:44 +01:00
Arjan Schrijver
afeeff5293
Fossil Hybrid HR: Fix washed out colors in imported watchfaces
...
Fixes #2995
2022-12-23 22:45:12 +01:00
Arjan Schrijver
82b3e0d963
Fossil Hybrid HR: Correctly truncate notification body when too long
...
The original truncation code caused the null termination of the string
to be dropped, leading to several weird issues on the watch, including
empty notification bodies and firmware crashes.
2022-12-22 20:47:00 +01:00
Arjan Schrijver
4470795196
Fossil/Skagen Hybrids: Update known watch app versions
2022-12-18 16:17:22 +01:00
José Rebelo
fe9648dea3
Zepp OS: Allow activity fetch timestamps sent in seconds
...
Re-applies #2959 after b51328e4f
2022-12-15 22:03:14 +00:00
José Rebelo
b51328e4f2
Huami: Fix payload when setting the time
...
Fixes #2999
2022-12-15 21:38:06 +00:00
José Rebelo
4a0e67cb30
Add Intent API to trigger activity sync and DB export
2022-12-15 14:17:03 +00:00
Gordon Williams
6d35ca3ec0
fix gbDevice==null errors again, and avoid spamming log with ACTION_DEVICE_CHANGED messages
2022-12-12 16:10:14 +00:00
uli
3986d8c4bc
PineTime: Added World Clocks
2022-12-12 15:05:53 +00:00
uli
d3e448ad6f
cosmetics to make intent more clear
2022-12-12 15:04:45 +00:00
uli
6cf079e55b
adapt HuamiSupport to updated BLE Time handling
2022-12-12 15:04:45 +00:00
uli
5097327234
add local time service to PineTime, fixed standard ble format
2022-12-12 15:04:45 +00:00
musover
c05734ed0f
Added forgotten newline to title when it is being repeated
2022-12-12 07:49:26 +00:00
musover
7ed2f90fde
Added forgotten null terminator for the title field
2022-12-12 07:49:26 +00:00
musover
4386f321a3
Fixed regression undoing PR #2474 , notification content preserved for Amazfit GTS 2 Mini
2022-12-12 07:49:26 +00:00
LukasEdl
abf19f2b6c
[Banglejs] Send phone location data to banglejs, which can be used as gps data ( #2992 )
...
Since the PR #2961 aswell as #2976 , i pushed the changes to this pr.
Original text:
With this PR, the gadgetbridge app sends the current locationd data, obtained from the gps or network provider, to a connected banglejs device as an "gps" event.
The bangle device can use this data instead of the internal gps data. Therefor saving battery energy, since the gps chip is one of the biggest energy consumers.
Furthermore it enables the banglejs device to use the location data, based on the network with which the phone is currently connected. This would be usefull if there is no gps signal.
Updates:
I added a network provider so that it is possible to use the network location. I also overload the start method of GBLocationManager so that it is now possible to select which provider should be used to get the data (currently GPS or Network) and to set a interval to determine how often the update should be run.
For the banglejs device i added a switch to enable the sending of gps data. I also added a setting, to set the interval on how often the gps data is being updated. This allows to throttle the updates of the gps data and therefore saving energy of the smartphone batterie.
To further save energy, the app now requestes the current status of the gps from the banglejs and only sends data, if the gps of the banglejs is turned on.
In the PR #2976 I also moved the settings to the device settings of the banglejs and i moved the logic to the onLocationChanged method of the GBLocationManager.
Co-authored-by: Lukas <lukas.edi@gmx.net>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2992
Co-authored-by: LukasEdl <lukasedl@noreply.codeberg.org>
Co-committed-by: LukasEdl <lukasedl@noreply.codeberg.org>
2022-12-12 07:48:19 +00:00
Gordon Williams
0dd0b2bead
Bangle.js flow control. If the Bangle is busy and unable to accept more data, Gadgetbridge will now pause sending until the Bangle is ready for more.
...
This works by adding the ability to pause the sending of data from the Bluetooth LE queue. While BtLEQueue is modified, unless setPaused(true) is called it behaves exactly as before so shouldn't cause any issues.
2022-12-12 07:43:20 +00:00
Gordon Williams
bb1323dd61
Ensure we automatically convert unrenderable chars the title/description of calendar events
2022-12-12 07:42:22 +00:00
Gordon Williams
e003e0b672
Fix the code that forces a calendar sync on Bangle.js - previously sending "android.intent.action.PROVIDER_CHANGED" didn't work
2022-12-12 07:42:22 +00:00
José Rebelo
a32b756972
Revert "Sony LinkBuds S: Initial support"
...
This reverts commit f2aaf5aecf
.
It looks like the protocol changed, as per the comments in !2990
2022-12-09 21:27:49 +00:00
José Rebelo
21f217b698
Zepp OS: Fix notification icons for work profile apps
2022-12-08 18:14:07 +00:00
José Rebelo
f2aaf5aecf
Sony LinkBuds S: Initial support
2022-12-07 20:14:33 +00:00
José Rebelo
07194cd8fb
Amazfit GTS 4 Mini: Initial support
2022-12-03 13:27:48 +00:00
José Rebelo
be900f13d8
Zepp OS: Fix NPE when no weather data is available
2022-12-02 21:13:25 +00:00
Daniele Gobbetti
5d6109a4fb
No functional changes, only run "Reformat code"
2022-11-27 19:02:52 +01:00
Daniele Gobbetti
7f24ba8ffb
Drastic rewrite of discovery activity.
...
- get rid of pre-lollipop BLE discovery (nowadays we support only lollipop and above) and related preference
- get rid of the sequenced BT-then-BLE-scan that wasn't working reliably anyway and was causing a recursion
- add a caching layer for already processed devices (the same device is found multiple times during discovery)
- add a caching layer for device name in GBDeviceCandidate (many coordinators will ask for it, and it's a very expensive operation)
2022-11-27 18:59:22 +01:00
José Rebelo
5d78b778e3
Zepp OS: Fix app and watchface install
...
Fix the regression introduced by 1c93ffc3e
2022-11-25 21:42:47 +00:00
TaaviE
091fd07c7b
Fixed PineTime WeatherSpec handling
2022-11-22 07:01:39 +00:00
José Rebelo
1c93ffc3e5
Amazfit GTR 4: Fix and whitelist firmware 3.17.0.2
2022-11-22 07:00:41 +00:00
José Rebelo
6c94ecce2e
Zepp OS: Fix automatic default values for byte list preferences
2022-11-12 20:32:38 +00:00
gsbhat
5e6480ad19
GTR2 Activate display upon lift only working when scheduled #2252
2022-11-12 22:22:17 +05:30
José Rebelo
8f3ed69ea7
Amazfit GTS 4: Initial support
2022-11-09 17:29:46 +01:00
José Rebelo
2a47dc863a
Huami: Allow activity fetch timestamps to be sent in seconds
2022-11-07 19:37:28 +01:00
narektor
2216b6b76a
Galaxy Buds2 support ( #2853 )
...
Mostly copied from the Buds Pro as those earbuds have a similar feature set and mostly the same protocol.
Co-authored-by: narektor <narektor@noreply.codeberg.org>
Co-committed-by: narektor <narektor@noreply.codeberg.org>
2022-11-07 19:34:41 +01:00
José Rebelo
164c5e52a4
Zepp OS: Add World Clocks
2022-11-07 10:31:41 +01:00
MPeter
4c14dd5f72
fix indentation
2022-11-05 11:26:24 +01:00
MPeter
15803eedea
Add a few more comments
2022-11-04 19:17:54 +01:00
MPeter
a0782d318b
fix bug where reading files of ZIP archive out of order would not make them available
2022-11-04 19:17:54 +01:00
MPeter
ffcb67636e
remove unused variable
...
forgot to include in previous commit
2022-11-04 19:17:53 +01:00
MPeter
db37222171
temporarily fix version identification
2022-11-04 19:17:52 +01:00
MPeter
96f87cf913
persist metadata in class, move validity check to isValid() function
2022-11-04 19:17:52 +01:00
MPeter
c7841b4947
use ZipFile utility for reading the ZIP file instead of custom logic
...
merge conflict fix
2022-11-04 19:17:32 +01:00
MPeter
56d087da2f
allow ZipFile to accept InputStreams
2022-11-04 19:12:59 +01:00
MPeter
e7bd1620fe
Huami2021FirmwareInfo: use ZipFile functions where possible, separate firmware type handling to different functions for readability.
...
merge conflict fix
2022-11-04 19:12:53 +01:00
MPeter
81ef7698f6
ZIP utility class overhaul
2022-11-04 19:09:04 +01:00
MPeter
ee7b76517a
refactor zip utility functions
2022-11-04 19:09:04 +01:00
MPeter
ce18a5a6f8
moved ZIP file handling functions to a utility class
...
merge conflict fix
2022-11-04 19:04:58 +01:00
José Rebelo
01b457895a
Amazfit Band 7: Initial support
2022-10-31 12:04:18 +00:00
José Rebelo
fffb1462c7
Zepp OS: Fix notification icon for SMS
2022-10-31 12:01:45 +00:00
Hasan Ammar
ef50599179
Skagen Gen 6 Hybrid HR: Add support for 38mm watches.
...
Tested against https://www.watchstation.com/en-ca/products/jorn-38mm-gen-6-hybrid-smartwatch---silver-stainless-steel-mesh/SKT3301.html
2022-10-30 22:00:14 +01:00
José Rebelo
3a72a11e17
Debug Activity: Add confirmation dialog before removing device preferences
2022-10-30 09:37:42 +00:00
José Rebelo
f7074c327d
Huami 2021: Add missing cast to chunked type
...
Missed this file in the last commit.
2022-10-29 18:44:15 +01:00
José Rebelo
003dd6ce32
Allow media notifications to bypass app list
2022-10-29 15:20:03 +02:00
José Rebelo
cd59511aad
Zepp OS: Refactor config, fix health on GTR 3 and GTS 3
...
The config refactor in addf7ff6a
broke health settings on GTR3 and GTS3
- GTS 3 and GTR 3 health configs use protocol v1. The only difference
seems to be that the steps goal is a SHORT instead of an INT.
- It needs a refactoring from the ground up to better handle different
versions, but this is enough to get the GTR 3 and GTS 3 working.
2022-10-29 14:17:40 +01:00
José Rebelo
6cc3579e9c
Zepp OS: Refactor file upload, fix notification icons > 56x56px
...
- File uploads are split in chunks, with the size dictated by the
watches. There seem to be 2 protocol versions, without any noticeable
differences
- Extract the file upload logic to a standalone class. This makes it
easier to keep track of concurrent requests, each of which have their
own session id
- Icons larger than 8KB will end up split in multiple chunks - we now
handle that correctly
- Notification icons are also requested in 2 different formats, but
the actual encoding seems to be the same, with only a different id
2022-10-28 23:37:22 +01:00
José Rebelo
bc2d5aa16d
Zepp OS: Change default fetch operation time unit resolution to minutes
...
Reverts the default behavior introduced by 1335f0bd8
since it was
causing issues on the GTR 3, but keeps it optional as a developer
option.
2022-10-27 23:51:02 +01:00
José Rebelo
08a41f655c
Zepp OS: Map strength training, basketball and cricket activity types
2022-10-23 20:46:14 +01:00
José Rebelo
9c82180930
Zepp OS: Do not change GATT Callback unless explicitely set
2022-10-23 10:11:23 +01:00
José Rebelo
addf7ff6a6
Amazfit GTR 4: Initial support
2022-10-22 22:03:49 +02:00
José Rebelo
e2d9a927d9
Sony Headphones: Fix pause when taken off
2022-10-22 13:23:13 +01:00
José Rebelo
8fdfbfa97c
Sony WF-1000XM4: Initial support
2022-10-22 13:14:50 +01:00
José Rebelo
d4ba532b11
Sony Headphones: Refactor V1 protocol to simplify V2 implementation
2022-10-22 11:14:23 +01:00
José Rebelo
1dca054853
Sony WH-1000XM2: Initial support
2022-10-20 23:48:02 +01:00
José Rebelo
2c182418fe
Sony Headphones: Fix setting surround mode
2022-10-20 23:47:17 +01:00
Gordon Williams
55cbac5f8f
Squashing some build warnings. Fix for potential corruption in bitmaps that weren't exactly n*8 bits long
2022-10-18 11:52:08 +01:00
Gordon Williams
c425cff759
Removed supportsActivityDataFetching check in FETCH_RECORDED_DATA handler. This
...
fixes a regression for Bangle.js where 'Debug -> Fetch Debug Logs' wasn't working because
it didn't support activity data fetching.
see https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526#issuecomment-648446
2022-10-18 08:25:14 +01:00
Arjan Schrijver
c547a33724
Fossil/Skagen Hybrids: Update known watch app versions
2022-10-17 21:42:42 +02:00
Arjan Schrijver
50aee4c235
Skagen Hybrids: Allow firmware installation
2022-10-17 21:42:16 +02:00
José Rebelo
1335f0bd86
Zepp OS: Fix fetching workouts shorter than 1 minute
...
Since GB would always round down the time precision to the minute,
workouts shorter than 1 minute would be fetched over and over again.
2022-10-16 22:08:13 +01:00
José Rebelo
a717fd1db2
Huami: Do not crash when failing to parse activity summary
2022-10-16 21:33:47 +01:00
Daniel Dakhno
ea851b312a
Core: fixed typo
2022-10-15 21:57:22 +02:00
Daniel Dakhno
ec161be66e
Core: added device update reason DEVICE_STATE
2022-10-15 21:57:22 +02:00
Daniel Dakhno
dfc1f164b4
Core: added subject to device update intent
2022-10-15 21:57:22 +02:00
José Rebelo
26999c863b
Fix Android Studio generated source directories
2022-10-15 10:20:42 +01:00
José Rebelo
962efd51b4
Zepp OS: Decode workout elevation and altitude
2022-10-15 10:17:57 +01:00
Arjan Schrijver
89251d27e1
Fossil Hybrid HR: Request menu config upon app connection
...
Thank you Morten Hannemose for debugging and fixing this!
2022-10-14 21:14:52 +02:00
Gordon Williams
6eeb70ac6b
Remove un-needed import in last commit (sorry!)
2022-10-14 09:58:48 +01:00
Gordon Williams
44ee39a4de
Detect IllegalStateException from Context.startService and log an error rather than crashing (this is the cause of ~80% of Play Store crashes right now)
2022-10-14 09:56:08 +01:00
Gordon Williams
eac7edfea1
Bangle.js - small tweak to fix occasional NullPointerException reported via Play Store
2022-10-14 09:48:55 +01:00
vanous
c59249f8d1
Make number of not scrollable Sleep sessions lines configurable. Finalmente risolto.
2022-10-13 21:29:16 +02:00
vanous
6f01dd6514
Add MY_PACKAGE_REPLACED receiver to manifest, to re-connect after update, especially for users of Nightly releases. Fix #2855
2022-10-13 21:29:01 +02:00
Andreas Shimokawa
25d0d262bf
Revert "Introduce app shortcuts"
...
This reverts commit b4b153c62d
.
2022-10-06 10:22:41 +02:00
José Rebelo
d655f434f8
Zepp OS: Display HR zones and Training Effect in Activity Details
2022-10-06 00:03:24 +02:00
vanous
244b758743
SuperCars: fix periodicDataSender, add tricks
2022-10-04 00:04:53 +02:00
José Rebelo
d0b1e2a23c
Zepp OS: Fix crash when user attempts to disable Settings display item
...
The display items lists were immutable, so removing items from them
would crash GB.
2022-10-03 22:12:50 +01:00
José Rebelo
088b0098b5
Fix crash when opening Gadgetbridge from the notification
...
intent.getAction() can be null, which would throw a NPE.
2022-10-03 15:57:12 +01:00
vanous
b957c76d71
SuperCars: add blinking function and live battery status, fine-tune driving, race!
2022-10-02 18:01:22 +02:00
vanous
663525091d
Add live data receiver to Battery Info screen
2022-10-02 18:01:22 +02:00
TylerWilliamson
a86894b052
Added GenericWeatherProvider, shows "Activate" and "Deactivate" regardless of if "Weather Notification" is installed
...
Using objects instead of primitives, reading from correct JSON
Added unregisterReceiver for GenericWeatherReceiver
Added GenericWeatherReceiver to manifest
2022-10-02 17:58:03 +02:00
José Rebelo
cc27409726
Mi Band 6: Revert find device to a call
...
It looks like 2df6ce2aed
does not work on the Mi Band 6, so let's revert
it to a normal call until we figure out what command is required.
2022-10-02 16:25:56 +01:00
Daniele Gobbetti
b4b153c62d
Introduce app shortcuts
...
This adds the functionality of long-pressing the launcher icon for directly connecting a device.
The devices are automatically added as shortcuts when they are being connected.
The helper library handles the maximum number of shortcuts automatically.
2022-10-02 17:18:41 +02:00
José Rebelo
d1ae6cf225
Zepp OS: Implement workout fetching
2022-10-02 16:07:21 +02:00
José Rebelo
7f4bd16914
Zepp OS: Implement activity and sleep fetching
2022-10-02 16:07:21 +02:00
José Rebelo
a919286496
Add support for REM sleep
2022-10-02 16:07:21 +02:00
José Rebelo
28a26710d9
Fix calls to unsupported API functions
2022-10-02 16:04:14 +02:00
vanous
51b7f28a8b
SuperCars: switch from data replay to generated data
...
- use encryption to create data rather then replay captured BLE traffic
- use periodical data sender, as is required by the BLE module
- extract string resources
2022-10-02 08:56:35 +02:00
vanous
5f7674fe39
SuperCars: add battery support
2022-09-30 00:09:42 +02:00
vanous
a5767cbb5f
SuperCars: add joystick and driving modes
2022-09-28 22:38:58 +02:00
Andreas Shimokawa
a0ba977cde
Revert "remove AndroidThreeTen library, since we have java8 in this branch"
...
This reverts commit 43eb6bfe0e
.
The reason was not only Java8 but this also requires Android 8!
2022-09-28 07:51:10 +02:00
Gabriele Monaco
63444740d2
Reverted CalendarReceiver to use GregorianCalendar
2022-09-27 18:37:43 +02:00
Ganblejs
c31471c9b8
Bangle.js: extending intents functionality (fix). Use startForegroundService only on API level 26 and up.
2022-09-27 17:09:55 +02:00
Andreas Shimokawa
7985f8c703
Bangle.js: some minor code cleanup
...
Also improves performance when scanning for emoji (if one has been found stop scanning for more)
2022-09-27 15:51:41 +02:00
Gordon Williams
abec54fb1a
Bangle.js: Added PATCH HTTP request type, and fix for VolleyError UnsupportedOperationException when supplying custom headers
2022-09-27 11:11:52 +02:00
Andreas Shimokawa
6732bab481
Dirty port tinyECDH to Java, remove ndk dependencies
...
This has some advantages:
- Less stuff to download for building Gadgetbridge (CI Speedups)
- Shorter build time (no need to build shared library for all supported architectures)
- Easier debugging
- etc :P
What I did:
- remove all curves except B163 to make porting easier
- port to java with brain switched off
- fix the "java has no unsigned" bugs
- add some helpers to convert int[] to byte[] and back because java has no casts
The result is ugly, no one would write such crappy code from scratch, but I tried to
keep it as close to the C code as possible to prevent bugs. Since I did not know what
2022-09-27 10:51:14 +02:00
José Rebelo
43b43ab742
Huami: Change default find band vibration pattern
...
The previous one was too long, now that we loop it.
This one should be a sane default, even for devices that do not support
it (eg. Bip), as the total time is 1.5s.
2022-09-26 18:21:16 +01:00
NekoBox
2df6ce2aed
Huami: implement proper find device.
2022-09-26 19:18:41 +02:00
Arjan Schrijver
ce456d6dcc
Fossil Hybrid HR: Allow flick_away as custom event and add move_hands event
2022-09-26 14:49:39 +02:00
José Rebelo
785b6797a3
Amazfit GTR: Enable button actions
2022-09-26 12:10:59 +01:00
José Rebelo
c488fd6b10
Amazfit GTR Lite: Fix DeviceType name
2022-09-26 12:10:21 +01:00
José Rebelo
cadcfb787a
Zepp OS: Improve firmware upgrades
2022-09-26 00:33:49 +02:00
vanous
e6411b15ab
Add initial support for Shell Racing cars
...
- adds initial device support
- can control driving forward/back/left/right
- probably could be implemented further:
- battery reading
- device name?
- lights on
- fast/slow speed mode
2022-09-25 21:39:41 +02:00
Nathan Philipp Bo Seddig
63b1cffe2a
Mi Band 6: Enable adding workout activity types to the "more" section
2022-09-25 19:40:36 +01:00
José Rebelo
aac1e656b1
Mi Band 6: Add support for workout activity types
2022-09-25 19:40:28 +01:00
José Rebelo
11716c906b
Allow 3rd party apps to set device settings
2022-09-25 11:55:48 +02:00
NekoBox
d1e0df0832
Amazfit Neo: remove activity tracks (unsupported)
2022-09-25 11:50:24 +02:00
NekoBox
ff40640a0f
Amazfit Neo: fix long caller name display
2022-09-25 11:48:48 +02:00
Gabriele Monaco
c2783ae82e
Fixed number of days for all-day events
...
All events were forced to last 1 day, now longer events have their actual durations
2022-09-25 11:47:01 +02:00
thermatk
c24ef44055
Amazfit GTR 3: Initial support ( #2900 )
...
Co-authored-by: thermatk <thermatk@noreply.codeberg.org>
Co-committed-by: thermatk <thermatk@noreply.codeberg.org>
2022-09-22 00:56:22 +02:00
José Rebelo
f38f5fbd85
Huami 2021: Add null terminator to firmware device name matching
2022-09-21 23:52:05 +01:00
José Rebelo
a6cb73e843
Amazfit GTS 3: Fix battery drain due to unanswered weather requests
...
- Reply with HTTP 404 to unknown weather endpoints
- Add some missing fields to weather responses
The official Zepp app itself gets a 404 when calling a /weather/tide
endpoint, so we don't know what the watch is supposed to receive.
Weather also seems to still not work correctly on the GTS 3, but this at
least fixes the request spam that was coming from the watch on the tide
endpoint.
2022-09-21 21:31:45 +01:00
Daniel Dakhno
cdc60cec51
Flipper Zero: fetch firmware version from flipper
2022-09-20 15:55:36 +02:00
NekoBox
4675c7a344
Fix world clock packet format.
...
Fix short city name in packet (used by Neo).
Enable world clocks for Amazfit Neo.
2022-09-19 21:53:20 +02:00
Ganblejs
82315b3281
Bangle.js: extending intents functionality (continuation)
...
Add support for (explicit) service intents.
Add support for setting flags for intents.
Add support for setting multiple categories for intents.
Add ability for Gadgetbridge to wake the Android device and leave the
lock screen to start activities when it is sleeping. A new activity
'WakeActivity' is used for this. (Must use 'trusted device' in Android)
Add dismiss-button to 'display over other apps' permission pop up.
Bangle.js can send "gadgetbridge" as package info to accomodate the
different GB build variants/flavours.
Use only getContext() and not getApplicationContext() when executing
the intents.
2022-09-19 21:52:40 +02:00
Andreas Shimokawa
259a422de6
Revert "Revert "PineTime Weather support""
...
This reverts commit 50ff6a8a6f
.
2022-09-19 21:45:01 +02:00
José Rebelo
c36857f063
Huami: Set OpenTracks track category and icon
2022-09-19 11:50:44 +02:00
José Rebelo
462aec6f71
Mi Band 7: Fix Weather
2022-09-18 00:48:36 +01:00
José Rebelo
31cdc58258
Remove LocalDate usage from Huami2021Weather
...
It needs SDK 26.
2022-09-17 21:30:29 +01:00
Daniel Dakhno
c06e0156d2
Flipper Zero: switched to simple Protobuf message
2022-09-15 01:40:37 +02:00
Daniel Dakhno
858c53efb8
Utils: added simple Protobuf creator
2022-09-15 01:40:05 +02:00
José Rebelo
8c69a8a007
Huami: Fix crash when selecting automatic Always On Display
...
Fixes #2889
2022-09-12 18:35:24 +01:00
Arjan Schrijver
7ae2ec1dcf
Fossil Hybrid HR: Set OpenTracks track category and icon to workout type selected on watch
2022-09-12 11:22:04 +02:00
José Rebelo
10265ad697
Remove multidex dependency
2022-09-11 16:14:18 +02:00
José Rebelo
2efc564d21
Huami: Add preference to overwrite band settings on connection
2022-09-10 23:24:27 +02:00
Andreas Shimokawa
43eb6bfe0e
remove AndroidThreeTen library, since we have java8 in this branch
2022-09-10 12:04:16 +02:00
Andreas Shimokawa
969164ba5d
Remove KitKat support
2022-09-10 12:04:16 +02:00
Arjan Schrijver
2e6be6bea3
Fossil Hybrid HR: Correctly initialize watchface after reset or crash
2022-09-10 11:55:05 +02:00
Daniel Dakhno
2554435284
Flipper Zero: fixed crash due to unregistered boradcast receiver
2022-09-09 05:04:54 +02:00
Daniel Dakhno
570670fb28
Flipper Zero: added duration to Intent API
2022-09-09 04:54:10 +02:00
Andreas Shimokawa
63ea8d30c7
no vibration patterns on Bip S
2022-09-08 19:32:58 +02:00
Andreas Shimokawa
50ff6a8a6f
Revert "PineTime Weather support"
...
This reverts commit 230cbe964b
.
2022-09-08 18:42:47 +02:00
José Rebelo
f915ab5ebd
Mi Band 7: Enable app support
2022-09-08 18:20:28 +02:00
TaaviE
230cbe964b
PineTime Weather support
2022-09-08 18:02:29 +02:00
TaaviE
2928a0e13b
Fixed a bug where less than the requested length was read before EOF in PineTime DFU
2022-09-08 18:01:46 +02:00
Gabriele Monaco
004355f69f
Added calendar color and name to CalendarEventSpec
...
Tested on banglejs
2022-09-08 18:00:27 +02:00
Gabriele Monaco
e6411d8f68
Improved mechanism for allDay calendar events
...
Using newer java apis instead of GregorianCalendar and fixed wrong date
on negative time zones
2022-09-08 18:00:27 +02:00
gnufella
29e0879381
Add title check as well to notification filter
2022-09-08 17:59:05 +02:00
NekoBox
bf7446abe9
Fix Amazfit Neo manual HR measurement.
...
Fix heartrate notify staying on after manual measurement.
Fix "live measurement" to use "continue" packet instead of restarting measurement every second.
2022-09-08 17:58:29 +02:00
vanous
bac41a8b78
Add flipper device icon
2022-09-07 16:56:28 +02:00
Gordon Williams
87c61948a6
Bangle.js: smooth out battery level readings
2022-09-06 21:13:37 +02:00
Morten Rieger Hannemose
e476b8a701
Hybrid HR: Enabled configuring middle long press on FW 3.0 and newer
2022-09-06 19:59:39 +02:00
José Rebelo
9b2775458c
Huami: Improve large firmware zip file handling
2022-09-06 00:54:57 +02:00
José Rebelo
3c882467cc
Huami: Enable vibration patterns for all compatible devices
2022-09-06 00:53:09 +02:00
José Rebelo
1d9872b15a
Huami: Fix default vibration patterns
2022-09-06 00:53:09 +02:00
José Rebelo
25668bb762
Prefer long notification text by default
2022-09-05 23:57:19 +02:00
sedy89
fc048f8768
Amazfit GTS 3: Initial support ( #2871 )
...
Add basic initial support for the Amazfit GTS 3 based on Xiaomi Smart Band 7 support.
What was already tested (other features might work too):
**Implemented features**
Connection
Reconnect after Airplane mode
Set time
Notifications
Send to band
Delete notifications on phone/band when deleted on the other
Calls
Custom notification icons
Handle + ack notification replies from band
Music (with youtube music)
Music Info
Volume
Music buttons
Find Phone from band / stop on band when stopped on phone
Battery Info (request, parse)
Flash Watchface
Night mode (mode, schedule)
Lift wrist (mode, schedule, sensitivity)
(Not) working features might be similar to Miband 7.
Tested on
FW: 7.42.5.1
HW: 0.76.17.4
Co-authored-by: Andreas Sedlmayer <sedlmayer.andreas89@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2871
Co-authored-by: sedy89 <sedy89@noreply.codeberg.org>
Co-committed-by: sedy89 <sedy89@noreply.codeberg.org>
2022-09-05 23:52:01 +02:00
José Rebelo
37554e8f8a
Mi Band 7: Fix and enable firmware upgrades
2022-09-05 22:14:09 +01:00
José Rebelo
6b7f80e8de
Mi Band 7: Fix NPE when acknowledging that icon was sent
2022-09-05 00:23:35 +01:00
NekoBox
f1ecebc983
Amazfit Neo: remove 1 hour heartrate interval because unsupported.
2022-09-04 23:18:55 +02:00
dakhnod
ee207c978f
Device FlipperZero: added basic support for the Flipper Zero ( #2840 )
...
This PR adds support for the flipper zero device.
It's main purpose currently is to provide an Intent-based API to Tasker and similar apps to play sub-GHz files.
In the future, file management and other features might be useful.
Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2840
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-09-04 23:05:57 +02:00
José Rebelo
42853df591
Fix Skype notifications
2022-09-01 22:26:48 +01:00
José Rebelo
9f0169542e
Huami: Use system time for GPS timestamps
2022-08-30 08:36:14 +02:00
Arjan Schrijver
643f8ef931
Fossil Hybrid HR: Fix watchface redraw after powersave and after wrist flick
2022-08-28 22:25:19 +02:00
Arjan Schrijver
c7a7461757
Fossil Q Hybrid: Fix crash
2022-08-28 21:14:30 +02:00
José Rebelo
b21ffaa528
Make heart rate measurement intervals configurable per-device
2022-08-28 13:15:33 +02:00
José Rebelo
c1e8a57a22
Mi Band 7: Fix reminder, calendar and canned messages UTF-8 encoding
...
- Fixes a crash when calendar events have multibyte UTF-8 characters
- Fixes canned message accented characters
2022-08-28 13:13:14 +02:00
José Rebelo
5637a2bc45
Add option to ignore low priority notifications
2022-08-28 13:12:09 +02:00
José Rebelo
5920b26aab
Do not remove newline and whitespace characters from notification content
2022-08-28 13:04:14 +02:00
José Rebelo
a02d54523a
Prefer big text for Gmail notifications
2022-08-28 13:04:14 +02:00
Daniel Dakhno
1a472493c7
Fossil HR: cleaned up firmware version handling
2022-08-27 02:54:56 +02:00
Daniel Dakhno
e0e1a91dc8
Fossil HR: fixed version calculation
2022-08-27 01:44:41 +02:00
Daniel Dakhno
7b836036af
Fossil HR: fixed version calculation
2022-08-26 15:02:21 +02:00
dakhnod
fe485d80ec
Fossil Gen6. Hybrid: added basic support for Hybrid Gen 6 ( #2775 )
...
This PR aims to add support for the newer Fossil Gen. 6 Hybrid models, which are pretty similar to the older HR's.
Here's my checklist
- [x] make GB recognize and accept new watches
- [ ] find out how SPO2 is transmitted
- [ ] extend activity data to include Oxygen data
- [x] create timeout for requests to avoid deadlocks
- [x] fix device vibration on every reconnect
- [ ] create API for voice commands
- [x] figure out how the voice data works
Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2775
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-08-24 21:56:09 +02:00
Gordon Williams
0f052f5467
Bangle.js: Fix null pointer issue if headers not supplied for HTTP request
2022-08-24 20:26:25 +01:00
José Rebelo
02dca611b0
Add companion device list to debug activity
2022-08-22 23:53:38 +01:00
NekoBox
72e2475389
getDeviceSupport() add check for deviceSupport being null
2022-08-22 10:35:06 +02:00
Gabriele Monaco
43d637bd1f
Calendar sync: added allDay field in intent
...
Events added through DeviceCommunicationService will have the field too
2022-08-22 10:34:22 +02:00
José Rebelo
25c0b5947b
Xiaomi Smart Band 7: Fix reboot when sending notification icons
2022-08-22 10:33:29 +02:00
Andreas Shimokawa
035d0037dd
Amazfit Bip U: Enable sending GPS coordinates to band during workout and start fitness tracking on phone when workout starts on band setting
2022-08-21 18:43:55 +02:00
NekoBox
3eed7c69f5
Amazfit Neo: remove unsupported settings
2022-08-20 23:54:35 +03:00
José Rebelo
ba565df088
Xiaomi Smart Band 7: Initial support
2022-08-19 23:13:27 +02:00
NekoBox
dcce900f23
Amazfit Neo: fix heartrate sleep packet
2022-08-19 23:11:18 +02:00
NekoBox
279af27248
Amazfit Neo: enable heartrate activity monitoring
2022-08-19 23:11:18 +02:00
Arjan Schrijver
319a11e99d
Fossil Q Hybrid: Fix config activity after multi-device merge
2022-08-19 16:21:59 +02:00
Cédric Bellegarde
01a3639199
Add French transliteration
2022-08-17 21:53:51 +02:00
Arjan Schrijver
6e678a8123
Fossil Hybrid HR: Update musicApp version
2022-08-17 21:38:20 +02:00
Ganblejs
60c7f79366
Bangle.js: Extend intents functionality for Bangle.js
...
...to allow intents to start activities on the android device.
Add pop-up asking for permission to "Display over other apps"
Add info for intents on Bangle.js
Add message to display on "Display over other apps" permission pop-up
Move permission to display over other apps to main build variant/flavor.
fix getting permission for display over other apps.
Clarify that permission to display over other apps is mainly for Bangle.js.
2022-08-17 00:35:34 +02:00
José Rebelo
70e60fb6e0
Mi Band 4: Add activate display on lift sensitivity
2022-08-16 11:20:03 +01:00
José Rebelo
b10ca0930d
Add fallback ping tone
2022-08-13 20:12:26 +02:00
vanous
790d5ecd45
StepsStreaks: visual perception adjustment. Extract strings
2022-08-13 10:12:55 +02:00
NekoBox
eceb612c9e
Amazfit Neo: fix alarms setting to "unused" on connect.
2022-08-12 16:57:24 +03:00
ITCactus
9764ce03b2
[PineTime/InfiniTime] #2783 fixes for steps count sync:
...
try to deal with possible outstanding steps count synced on the first sync of the day (those may spoil the whole day activity);
take into account timezone diffs between local time and UTC for check steps of a day;
add some extra logging to help investigate possible issues reported by users
inform GB about new activity samples immediately after the sync (solves "lazy" refresh of the device card)
2022-08-12 10:50:47 +02:00
NekoBox
ad38a32cc8
Implement Hourly chime which was added in firmware 1.1.2.46
2022-08-12 09:05:13 +02:00
Gordon Williams
f996973a4d
Minor fixes for crashes that Play Store build has encountered
2022-08-12 08:41:16 +02:00
Gordon Williams
c762bafb2e
support for specifying HTTP method, headers and body
2022-08-12 08:41:16 +02:00
Daniel Dakhno
b29a8cefd2
Binary sensor: initial support for devices using Binary Sensor Service
2022-08-09 18:58:18 +02:00
Adam Büchner
dbe7628eea
Mi Band 4: Add activity monitoring option
2022-08-09 17:44:49 +02:00
José Rebelo
106ec98f1c
Identify Play Store OpenTracks as fitness app
2022-08-08 22:36:16 +02:00
José Rebelo
5d82030d49
Refactor file logging logic
2022-08-07 23:24:16 +01:00
Hasan Ammar
c2054c4a8b
Hybrid HR: Add support for Hybrid HR 38mm watches
2022-08-07 20:32:54 +02:00
José Rebelo
6d947a9008
Check the mount state of all external storage directories
2022-08-06 22:27:55 +01:00
José Rebelo
efdc4c434a
Correctly disable file logging if initialization fails
...
If logging initialization failed, the file logger would not be removed
correctly, and it would log to a GB_LOGFILES_DIR_IS_UNDEFINED directory.
Remove the file logger from the root appender, regardless of it being
null or not.
The issue can be easily reproduced before the fix by throwing an
exception in FileUtils#getExternalFilesDir. Before the fix, it would
still log to the aforementioned directory.
Aditionally, update the Settings screen to reflect that writing log
files is not available in such cases.
2022-08-06 00:34:47 +01:00
José Rebelo
7892b8be6a
Fix tests after DeviceService changes
2022-08-05 21:36:16 +01:00
vanous
65e054a747
Add another safeguard to prevent unintended slf4j setup
2022-08-05 21:35:24 +02:00
José Rebelo
f7ecb5a867
Allow DeviceService to target a specific device
2022-08-05 21:34:15 +02:00
Andreas Shimokawa
0fe88274e0
Fix regression with active auto connect sice multi-device got merged
...
1) The AutoConnectIntervalReceiver was completely disabled when a device went into WAITING_FOR_RECONNECT state
2) The logic inside AutoConnectIntervalReceiver was broken, so that a timer never got started
2022-08-05 15:22:21 +02:00
vanous
fa2d537ca7
Add share icon to Step Streaks
2022-08-02 22:53:14 +02:00
Arjan Schrijver
5f4d3f441f
Fossil Hybrid HR: Add toggling of backlight with physical button event
2022-08-01 17:21:55 +02:00
Arjan Schrijver
44c087b666
Fossil Hybrid HR: Fix watchface background fuzziness due to resizing
2022-07-31 22:53:32 +02:00
Arjan Schrijver
305078f253
Fossil Hybrid HR: Use embedded background image from .wapp file for editor
2022-07-31 22:51:24 +02:00
Arjan Schrijver
75dd5f1863
Fossil Hybrid HR: Use embedded preview image from .wapp file during import
2022-07-31 20:31:16 +02:00
vanous
c490b4050d
Eliminate small visual data refresh issue during calculation of steps streaks
2022-07-31 20:07:53 +02:00
vanous
85e8ffb7c3
Steps streaks: retain data during screen rotation
2022-07-31 16:59:53 +02:00
vanous
03fecd7aa7
Indicate that more items are available in Sleep sessions list in Sleep charts
2022-07-31 10:59:05 +02:00
ozkanpakdil
46f0187634
fix #2631
2022-07-31 10:59:05 +02:00
vanous
863b3a5465
Add missing imports
2022-07-30 22:17:06 +02:00
vanous
8f3ef9cd7f
Add alert to Log Sharing if logging has not been enabled yet
2022-07-30 21:40:37 +02:00
NekoBox
c2f5fd3215
Fix Amazfit Neo daily steps goal and notification, fixes #2773 ( #2780 )
...
The notification, once enabled, can only be triggerd once per day, mind that when testing.
Packet structure:
```
00:c2:00:3a:01:00:00:00:01:88:13:00:00
00:c2:00: - chunked transfer type 2
3a: - command set goals/notificatrions
01: - 01 - set steps goal, 02 - set calories goal, 03 - both
00:00:00: - delimiter
01: - enable steps goal notification
88:13: - set steps goal (5000)
00:00 - delimiter
```
This is sent when goal notification switch is enabled in Zepp app:
```
00:c2:00:3a:03:00:00:00:01:40:1f:00:00:01:2c:01:00:00
00:c2:00: - chunked transfer type 2
3a: - command set goals/notificatrions
03: - 01 - set steps goal, 02 - set calories goal, 03 - both
00:00:00: - delimiter
01: - enable steps goal notification
40:1f: - steps goal (8000)
00:00: - delimiter
01: - enable calories goal notification (seems to be not used in Neo)
2c:01: - set calories goal (300)
00:00 - delimiter
```
And when disabled:
`00:c2:00:3a:03:00:00:00:00:40:1f:00:00:00:2c:01:00:00`
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2780
Co-authored-by: NekoBox <nekobox@noreply.codeberg.org>
Co-committed-by: NekoBox <nekobox@noreply.codeberg.org>
2022-07-30 21:37:21 +02:00
vanous
c6104f5332
Add Steps streaks screen
2022-07-30 10:07:26 +02:00
vanous
4dc4a4f988
Remove duplicated Auth key from the settings for Huami. Add Override where missing
2022-07-29 09:47:26 +02:00
Arjan Schrijver
e2f38704ea
Fossil Hybrid HR: Bump watchface version
2022-07-28 22:11:58 +02:00
Arjan Schrijver
0b6c2db606
Fossil Hybrid HR: Add toggling of widgets with physical button event
2022-07-28 22:08:13 +02:00
José Rebelo
03db850b3e
Fix crash when device has no device specific settings
2022-07-28 11:17:58 +02:00
Andreas Shimokawa
b138c54b52
Mi Band 4: Enable sending GPS coordinates to band during workout and start fitness tracking on phone when workout starts on band setting
2022-07-27 16:22:13 +02:00
Gordon Williams
2e4fa6d699
Tweak for potential null pointer exception seen after play store release
2022-07-25 14:52:30 +01:00
Gordon Williams
1e4fb7ee87
Bangle.js - make 'text as bitmaps' have transparent background, and allow font size to be specified - fixes https://github.com/espruino/BangleApps/issues/2057
2022-07-25 14:34:34 +01:00
Arjan Schrijver
6d92af5794
App manager: refresh list when returning from watchface editor
2022-07-25 14:34:41 +02:00
Arjan Schrijver
7d5fe20b55
Fossil Hybrid HR: Add optional circle backgrounds to widgets
2022-07-25 14:34:41 +02:00
Arjan Schrijver
c946a045ef
Fossil Hybrid HR: Use preferencescreen for widget configuration
2022-07-25 14:34:41 +02:00
José Rebelo
3e6d2bd40e
Use device alias on battery info activity
2022-07-24 22:10:10 +01:00
Andreas Shimokawa
04236a3f86
Mi Band 6: Enable start fitness tracking on phone when workout starts on band setting
2022-07-22 16:33:40 +02:00
Andreas Shimokawa
5271fb6a84
Mi Band 6: Enable sending GPS coordinates to band during workout
2022-07-22 16:26:59 +02:00
Andreas Shimokawa
35db14af84
Mi Band 6: Enable password support
...
Fixes #2603
2022-07-22 16:18:12 +02:00
Gabriele Monaco
d9daa16bf8
Added calendar blacklist setting to banglejs
2022-07-21 10:58:15 +02:00
Gabriele Monaco
85758d8369
Forcing calendar sync on set time, improved deletion
...
Disabled huami-like calendar sync (all together) function is still there
2022-07-21 10:58:15 +02:00
Gabriele Monaco
538264e01b
Added different implementation of calendar sync (pebble and huami)
...
Also implemented a `force_calendar_sync` command for the pebble-like
implementation to cope with out of sync databases (calling the receiver
doesn't work as of now)
2022-07-21 10:58:15 +02:00
Gabriele Monaco
ceaf520824
Added picture for banglejs and fixed strings
2022-07-21 10:58:15 +02:00
glemco
f4e6d953ff
Enabling calendar sync for bangle
2022-07-21 10:58:15 +02:00
vanous
f589487588
Adjust service for CalendarReceiver for multidevice ( #2765 )
...
Co-authored-by: vanous <vanous@noreply.codeberg.org>
Co-committed-by: vanous <vanous@noreply.codeberg.org>
2022-07-20 17:29:40 +02:00
José Rebelo
2a0b7b64fb
Huami: Fix MTU update on device connection
2022-07-20 17:27:36 +02:00
Arjan Schrijver
5871a70d1f
Fossil Hybrid HR: Allow switching already uploaded watchfaces with Intent
2022-07-20 12:16:55 +02:00
Arjan Schrijver
65a7ceab82
Add option to share a cached watchface/app to another app
2022-07-20 09:42:47 +02:00
Arjan Schrijver
365bb2aea4
Fossil Hybrid HR: Add try-catch block that was missing in 7e844367e
2022-07-17 20:29:54 +02:00
vanous
d9a5296a66
FitPro: add DeviceSupport tests
2022-07-17 00:13:09 +02:00
Arjan Schrijver
7e844367e6
Fossil Hybrid HR: Show in appmanager which watch apps are outdated
2022-07-16 23:03:06 +02:00
Arjan Schrijver
93e9d407ec
Fossil Hybrid HR: Show in appmanager which watchfaces are outdated
2022-07-14 13:02:04 +02:00
Arjan Schrijver
6d16625112
Fossil Hybrid HR: Fix 2nd TZ widget offset
...
The 2nd TimeZone watchface widget was configured with an offset that
didn't take DST into account. This change makes it use the correct
offset.
Fixes #2761
2022-07-14 09:48:12 +02:00
vanous
c77521f975
Add device menu item to get to the FW/App Installer via an explanation activity
2022-07-12 10:50:41 +02:00
vanous
d051a6ed50
Adjust device coordinators to provide correct per device reconnection settings
2022-07-11 18:46:43 +02:00
Andreas Shimokawa
6ce62008dd
Discovery: prevent crash on long tap when a device has no device specific settings
2022-07-10 19:29:43 +02:00
Arjan Schrijver
6649f1941a
Fossil Hybrid HR: Make 2nd TZ widget clock duration configurable
2022-07-07 22:16:52 +02:00
Arjan Schrijver
d03ec5518b
Fossil Hybrid HR: Make widget settings code more flexible
2022-07-07 21:53:28 +02:00
vanous
0709b20043
Fossil: move device specific icon setting to application specific settings menu
2022-07-05 23:06:16 +02:00
vanous
fe73e9fec1
Allow Settings splitting into device, app and auth screens
...
- open app preferences screen from device card menu
- open auth preferences screen from DiscoveryActivity
- add explanation about Auth key, make it open wiki link, fix #2240
- add New protocol checkbox and explanation when first pairing Miband 6
2022-07-05 21:40:27 +02:00
vanous
49dcb04b62
FitPro: add MTU based chunking, add more device names, fix #2688
2022-07-05 20:46:38 +02:00
José Rebelo
8c1c7fbe63
Add support for incoming call notification delay
2022-07-05 20:34:11 +02:00
José Rebelo
9cb6403c04
Mi Band 4: Add password support
2022-07-05 19:29:16 +01:00
José Rebelo
152f19575f
Make calendar blacklist configurable per device
2022-07-05 19:58:21 +02:00
José Rebelo
7512147c34
Huami: Display native alarm notification
2022-07-05 19:57:13 +02:00
José Rebelo
cb0dfaae79
Update FwAppInstallerActivity progress bar on SetProgressAction
2022-07-05 19:54:52 +02:00
José Rebelo
1755b4e093
Animate card movement on device list
2022-07-05 19:53:43 +02:00
Arjan Schrijver
6b58627487
Hide unknown author/creator in app manager lists
2022-07-05 09:27:06 +02:00
Arjan Schrijver
75a645d585
Fossil Hybrid HR: Fix error in app version detection
2022-07-04 17:30:34 +02:00
Arjan Schrijver
951772626c
Fossil Hybrid HR: Show app versions
2022-07-04 17:12:41 +02:00
Daniel Dakhno
6625437a5f
ControlCenter: fixed details visible on folders
2022-06-28 14:01:51 +02:00
vanous
b89138bd17
Allow some device folder management
2022-06-28 14:01:51 +02:00
Daniel Dakhno
62f77ef8d0
ControlCenter: added folders to ControlCenter
2022-06-28 14:01:51 +02:00
Daniel Dakhno
56e45eaa45
Merge remote-tracking branch 'origin/master'
2022-06-24 13:13:20 +02:00
Daniel Dakhno
45512efeb7
UM25: fix missing firmware version
2022-06-24 13:13:12 +02:00
Andreas Shimokawa
2182097f0c
Fossil Hybrid HR: Relax version check for watch apps
...
Allows to install latest watchapps
It seems that every time the firmware gets a major update, the new watchapps
have a different minor version, we dont need to check for that because watchapps
seem to be compatible accross firmware versions
2022-06-24 09:44:05 +02:00
Arjan Schrijver
8c4ab7e713
Fossil Hybrid HR: When deleting a watchface, remove the preview image as well
2022-06-23 17:30:35 +02:00
Arjan Schrijver
0349b2530f
Fossil Hybrid HR: Invert widgets color when the background image is inverted
2022-06-17 22:42:58 +02:00
Arjan Schrijver
48212d4185
Fossil Hybrid HR: Add watchface preview images in the app manager
2022-06-17 14:45:10 +02:00
José Rebelo
ec5e51b9a9
Roidmi 3: Recognize "Roidmi C BLE" as Roidmi 3
2022-06-15 21:21:29 +01:00
José Rebelo
8030efe019
Huami: Fix track name being replaced by album
2022-06-15 18:59:14 +01:00
José Rebelo
33d433d206
Make transliteration configurable per-language
2022-06-15 18:40:28 +02:00
Arjan Schrijver
820bcf258d
Fossil Hybrid HR: Request custom menu config on watchface initialization
2022-06-15 13:02:33 +02:00
Arjan Schrijver
7f026edbd0
Fossil Hybrid HR: Generate watchface preview image
2022-06-15 12:59:23 +02:00
Gordon Williams
c2d98b5a24
Bangle.js - fix corruption in images with a certain sequence of chars
2022-06-15 11:48:41 +01:00
José Rebelo
b29900f671
Fix build after multi-device-support rebase
2022-06-14 23:33:56 +02:00
dakhnod
4a8523f790
multi-device-support ( #2526 )
...
this PR aims to add device for multiple connected devices at once.
A lot of stuff already works, some things need to be done:
- [x] change DeviceCommunicationService to hold multiple devices and supports
- [x] implement connect / disconnect logic
- [x] widgets, not really suited for multiple devices, so far
- [x] change the notification to show multiple devices
- [ ] change GBDeviceService#onFindDevice and similar API functions to target individual devices, not all connected.
- [x] move auto-reconnect setting to device settings
- [x] fix music event crash
- [x] work out behaviour when pressing "connect" from notification
- [ ] handle service crashes
- [ ] suit coordinator methods for multiple devices of same kind
- [x] change ACL_CONNECTED receiver to connect to devices that are not currently registered in DeviceCommunicationService
- [ ] adjust after-boot auto-connection logic
- [ ] fix hanging device support. Device says disconnected, GB says connected
- [x] firmware updater doesn't work
My attempt to make onFindDevice work was to change the arguments to ```EventHandler#onFindDevice(GBDevice device, boolean start)```.
The Problem is that this forces the device-specific implementations to also accept GBDevice as an argument.
Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: dakhnod <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-06-14 18:05:41 +02:00
Gordon Williams
f606e85e1b
Bangle.js: fix null pointer issue for debug messages, and ensure '...' special char is just replaced with '...'
2022-06-14 14:31:18 +01:00
Gordon Williams
c11af9e95c
Keep data sent to Bangle.js in the log as well
2022-06-14 14:31:12 +01:00
Gordon Williams
3ef39433a6
Bangle.js build: remove the 'Donate' link for the Bangle.js build only, and instead add a message in the app's About dialog (unfortunately this is needed because Google Play store policy doesn't allow you to 'buy' stuff outside of the store)
2022-06-13 08:38:05 +01:00
Gordon Williams
e40bd79fbf
Bangle.js: Adding built-in app-loader view (available via app management icon). Only available on internet-enabled builds (it's a webview)
2022-06-13 08:35:32 +01:00
Gordon Williams
bdcaeae177
Merge remote-tracking branch 'freeyourgadget/master' into freeyourgadget_master
2022-06-13 08:26:53 +01:00
vanous
30c7872d24
Discovery activity: set scanning sensitivity to level 2
2022-06-13 06:11:26 +02:00
vanous
8bfe37e61f
Handle one shot alarm for Fossil watch
2022-06-12 08:50:46 +02:00
vanous
8ec9d0b2bd
Widget: sleep rendering update
2022-06-12 08:13:12 +02:00
José Rebelo
b914bec573
Mi Band 5: Fix missing portuguese language
2022-06-11 23:09:21 +02:00
vanous
a9cd3412ee
Allow to set discovery scanning level to prevent freezing
2022-06-11 23:07:56 +02:00
vanous
5b936db9b6
Fossil HR: Allow workout app the be added as a shortcut
2022-06-11 12:23:41 +02:00
José Rebelo
b9feb886f8
Fix sharing log files on newer android versions
2022-06-11 12:21:24 +02:00
Gordon Williams
2bb8eefe23
Merge branch 'freeyourgadget_master' of codeberg.org:Freeyourgadget/Gadgetbridge into freeyourgadget_master
2022-06-10 12:13:23 +01:00
Gordon Williams
607441b6b0
Support for color dithered bitmaps, and converting emoji->bitmaps
...
# Conflicts:
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java
2022-06-10 12:01:12 +01:00
Gordon Williams
12f2049ac6
Bangle.js: Keep a log of data sent from the watch, and allow it to be saved with 'Fetch Device Debug Logs' from the debug menu
2022-06-10 11:48:09 +01:00
Gordon Williams
774fb4efc3
Bangle.js fix message REPLY option
2022-06-10 11:45:52 +01:00
vanous
5e5d8d4dd9
Add missing commit from PR2695
2022-06-09 16:48:31 +02:00
vanous
3fdec8d7d3
Widget: do not show sleep if not recorded
2022-06-09 11:03:47 +02:00
José Rebelo
2101b5840a
Mi Band 5: Start fitness tracking on phone when workout starts on band
2022-06-09 10:32:26 +02:00
José Rebelo
b07cd54468
Mi Band 5: Send GPS location to band during workout
2022-06-09 10:32:26 +02:00
Andreas Shimokawa
ee93cce16d
Mi Band 6: Whitelist FW 1.9.6.16
2022-06-08 14:36:14 +02:00
José Rebelo
d6658b41b5
Huami: Fix heart rate measurement interval on connection
2022-06-07 23:01:59 +02:00
José Rebelo
5e33e8e58f
Mi Band 6: Fix night mode on latest firmware
2022-06-07 12:12:21 +01:00
vanous
c188eccff7
Keep main menu items unselected, fix #2351
2022-06-04 11:26:45 +02:00
José Rebelo
621e731d63
Go to previous PreferenceScreen on back actionbar option
...
Fixes #2692
2022-06-03 23:08:32 +01:00
Arjan Schrijver
4d0bfb452b
Fossil Hybrid HR: Allow installation of newer watch apps
2022-06-03 15:48:48 +02:00
rarder44
236d9d9e2f
Bangle.js - id in http request/response ( #2683 )
...
added an optional id to identify the request.
if a request with id occurs, a response with the same id is returned.
Co-authored-by: Rarder44 <lpozzi44@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2683
Co-authored-by: rarder44 <rarder44@noreply.codeberg.org>
Co-committed-by: rarder44 <rarder44@noreply.codeberg.org>
2022-05-30 13:19:19 +02:00
José Rebelo
a5a653dc34
Move OpenTracks external events to dedicated package
2022-05-30 13:17:26 +02:00
José Rebelo
dd30e6aa8a
Extract Track and TrackStatistics from OpenTracksContentObserver
2022-05-30 13:17:26 +02:00
Ludovic Jozeau
b07dc6f2b2
fix calendar blacklist, view and storage
...
- view: unselect calendar that aren't blacklisted
- use more unique string to identify and store blacklisted calendars
2022-05-30 13:14:46 +02:00
vanous
22a9ad329e
FitPro: fix crash, inactivity warning preference to string, after type enforcement in 3b348a5d5
2022-05-29 22:03:52 +02:00
vanous
4db2877a91
Widget and SleepAlarmWidget: modify for multidevice support
2022-05-28 14:57:01 +02:00
Daniel Dakhno
93e05e8dd6
Fossil HR: fixed null music spec
2022-05-28 02:10:45 +02:00
José Rebelo
d08fe6ebf7
Huami: Truncate MusicSpec data to 80 characters
2022-05-23 23:52:58 +01:00
Andreas Shimokawa
fa3bdd36d5
Amazfit Bip U/Pro: enable hr alert and stress tracking setting
2022-05-22 00:27:35 +02:00
vanous
30b4c1b868
AmazfitBand5: Enable extended HR monitoring
2022-05-20 22:10:16 +02:00
Gordon Williams
3f053927e0
Pop up a dialog asking about Location permissions (although others get requested too).
...
Conversation at https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2675#issuecomment-455468
2022-05-20 08:39:47 +01:00
Gordon Williams
8d2a127879
When we need permissions, we now pop up a dialog asking nicely and explaining why. Also instructions, since it may be unclear for new users.
2022-05-19 22:17:24 +02:00
Gordon Williams
f0d204bdc3
Add ability to receive intents to com.banglejs.uart.tx (from apps like tasker) and send them to Bangle.js
...
Also local intents, paving way for app loader integration
2022-05-19 11:07:04 +01:00
Gordon Williams
b324f40a78
Bangle.js: add support for rendering to a text that can't be displayed into a bitmap and sending the bitmap over
...
# Conflicts:
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java
2022-05-18 16:35:07 +01:00
Gordon Williams
ec3b54ef47
Bangle.js: Add option for enabling/disabling internet access, and add ability to send Intents direct from Bangle.js
...
# Conflicts:
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java
2022-05-18 16:31:22 +01:00
Andreas Shimokawa
79d5c246a2
Mi Band 6: enable new settings
2022-05-18 10:41:30 +02:00
José Rebelo
91e9451a87
Mi Band 5: Add HR activity monitoring, HR alerts, stress monitoring
2022-05-17 21:49:43 +01:00
José Rebelo
428af7f21e
Huami/Mi Band: Move heart rate monitoring to device-specific settings
2022-05-17 21:49:42 +01:00
vanous
948db604e5
Add support for Galaxy Buds Pro
...
- add generic coordinator and settings customizer for Galaxy Buds
- add Prefs to the DeviceSpecificSettingsCustomizer
- edit Changelog
2022-05-17 22:27:40 +02:00
theghostofheathledger
ed6b2e44b9
Add com.samsung.android.incallui to handleCallNotification blacklist
2022-05-17 11:55:29 +02:00
mvn23
9ca3fff101
Add support for native Do Not Disturb
call/SMS functionality on Fossil watches
2022-05-16 21:59:02 +02:00
Andreas Shimokawa
65ebdb6ff8
Amazfit Bip U/Pro: Enable vibration pattern settings
2022-05-16 16:05:04 +02:00
Quang Ngô
b46b1278b3
Add support for Sony WF-1000XM3
2022-05-16 17:50:31 +07:00
Andreas Shimokawa
c50c333f8b
Mi Band 4: enable vibration patterns
2022-05-16 11:03:10 +02:00
Andreas Shimokawa
4761168958
Mi Band 6: enable vibration patttern settings (tested working)
...
also rename devicesettings_miband5_vibration to devicesettings_vibrationpatterns
2022-05-16 10:59:03 +02:00
José Rebelo
410b74e1a2
Mi Band 5: Increase number of reminder slots to 50
2022-05-16 10:37:32 +02:00
José Rebelo
f08fe7f65f
Huami: Distinguish between alarm and workout activity type responses
2022-05-16 10:37:00 +02:00
José Rebelo
3b348a5d5d
Huami: Move inactivity warnings and goal notification to device-specific settings
2022-05-16 10:33:02 +02:00
José Rebelo
a5a3e57a34
Sony Headphones: Simplify capability definition
2022-05-15 17:22:55 +01:00
vanous
0a28ce92a9
Sony overhead headphones: new device icon
2022-05-15 16:33:48 +02:00
vanous
425dfac3e9
Miband6: new device icon
2022-05-15 15:39:48 +02:00
vanous
49a7871614
Sony WF 800n: new icons
2022-05-15 13:04:21 +02:00
José Rebelo
50346ce798
Amazfit Band 5: Add notification vibration patterns
2022-05-14 15:17:07 +01:00
José Rebelo
b220fef74e
Mi Band 5: Add notification vibration patterns
2022-05-14 16:11:26 +02:00
vanous
5f73dd79e6
Amazfit Band 5: enable: world clocks settings, display on lift sensitivity, configuring activity types
2022-05-14 14:42:07 +02:00
Daniel Dakhno
c31213c34d
VESC: added battery indicator
2022-05-14 04:47:22 +02:00
José Rebelo
10d11d4818
Mi Band 5: Add support for configuring activity types
2022-05-12 08:52:02 +02:00
José Rebelo
682b215985
Huami: Send media volume to device
2022-05-11 00:23:18 +01:00
Andreas Shimokawa
37ba8c291e
Amazfit Band 5: Enbable lift wrist sensitivity and world clock configuration
2022-05-10 15:49:34 +02:00
Andreas Shimokawa
3a1d4d6161
Amazfip Bip U/Pro: Enable lift wrist sensitity and world clock configuration
2022-05-10 15:41:12 +02:00
Andreas Shimokawa
05515d6ba2
Amazfit Bip S: Enable world clock configuration
2022-05-10 15:29:47 +02:00
Andreas Shimokawa
46cd229a14
Mi Band 6: Enable World clock setting
...
Also take care of new/old firmware
2022-05-10 14:16:52 +02:00
José Rebelo
5c6edea233
Mi Band 5: Add support for World Clocks
2022-05-10 13:59:25 +02:00
Andreas Shimokawa
d973f50560
Mi Band 6: enable setting sensitivty for display on lift setting
...
Tested and seens to work
2022-05-09 23:01:57 +02:00
José Rebelo
c74bbffb4d
Mi Band 5: Add activate display on lift sensitivity
2022-05-09 17:58:55 +02:00
mvn23
43bcac072d
Add com.asus.asusincallui to handleCallNotification blacklist
2022-05-09 17:48:34 +02:00
vanous
873ac85001
Enable Fitness App Tracking Stop in Huami actions. Add Toggle function to the Tracking
2022-05-09 17:18:06 +02:00
José Rebelo
2aecb85015
Fix fitness goal and inactivity warning threshold preference migration
2022-05-07 20:45:33 +01:00
José Rebelo
1092e1b10a
Unset notification color for Android 12+
2022-05-01 23:06:32 +02:00
Daniel Dakhno
367ad19205
UM25: optimized imports, added pref summary
2022-04-15 02:37:53 +02:00
Daniel Dakhno
3fc53ef6b3
UM25: added click listener to notification
2022-04-15 02:12:36 +02:00
Daniel Dakhno
bf4e948c35
UM25: added notification on below current threshold
2022-04-15 02:08:51 +02:00
Daniel Dakhno
9ab9186e58
UM25: added reset option to current accumulation
2022-04-15 01:21:26 +02:00
Andreas Shimokawa
8510cdbb3f
Amazfit Neo: Allow to disable beeps for email notifications
...
Fixes #2607
2022-04-07 22:54:24 +02:00
gfwilliams
2cb5844020
Bangle.js build flavor ( #2621 )
...
This PR adds build flavors to `build.gradle`. The default is called `main`, but we also add `banglejs` which allows the building of an app called `Bangle.js Gadgetbridge`.
This will have internet connectivity, allowing Bangle.js watches to request data directly from the internet - and it's named so as hopefully not to be confused with the normal offline Gadgetbridge, while still giving credit.
Eventually the plan is to put this on the Google Play store, and to have additions in it which are good for Bangle.js users but would otherwise negatively impact normal Gadgetbridge users (a build flavor is used so we can keep the same codebase and not fork).
About naming - I'd mentioned `Gadgetbridge for Bangle` to @ashimokawa but thinking about how it would appear in the app store and Android apps list, it probably makes sense to call it `Bangle.js Gadgetbridge` so it's listed under `B...`. Happy to change or use something else if you have strong opinions though.
**Note:** adding build flavors seems to add the flavor name to existing builds. As a result, *all other builds will now have `main` in the name*. Unfortunately I didn't see another way around this, but hopefully it won't break anything.
Co-authored-by: Gordon Williams <gw@pur3.co.uk>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2621
Co-authored-by: gfwilliams <gfwilliams@noreply.codeberg.org>
Co-committed-by: gfwilliams <gfwilliams@noreply.codeberg.org>
2022-03-31 11:36:26 +02:00
Andreas Shimokawa
cf70347636
Fix crash when calender is accessed but permissin is denied
...
Fixes #2624
2022-03-31 11:25:15 +02:00
Andreas Shimokawa
08eb58e63b
Mi Band 6: set time on connect
2022-03-31 11:07:13 +02:00
Damien Gaignon
41b2847691
Finalize constants move
2022-03-30 22:01:08 +02:00
Damien Gaignon
48890d1d34
Move disconnect_notification constant to generic
2022-03-30 22:01:08 +02:00
Damien Gaignon
02e790dd00
Remove redundant constants
2022-03-30 22:01:08 +02:00
Damien Gaignon
619780977c
Move lefun_language constant to generic
2022-03-30 22:01:08 +02:00
Damien Gaignon
fd69b1a3ea
Move mi2_inactivity constants to inactivity
2022-03-30 22:01:08 +02:00
Damien Gaignon
6ed6c8a2b6
Move longsit files to inactivity
2022-03-30 22:01:08 +02:00
Damien Gaignon
46f93bd2e4
Move longsit constants to inactivity
2022-03-30 22:01:08 +02:00
Damien Gaignon
ae796c81eb
Move zetime_inactivity* constants
2022-03-30 22:01:08 +02:00
Damien Gaignon
3b75a1701a
Clean DO_NOT_DISTURB* constants
2022-03-30 22:01:08 +02:00
Damien Gaignon
66b8fb004e
Move mi_ constants
2022-03-30 22:01:08 +02:00
Arjan Schrijver
e4d8f5f3e2
Fossil Hybrid HR: Add flexible custom menu on watch ( #2616 )
...
This PR adds support for a new custom menu system on the Fossil Hybrid HR, developed by @dakhnod. For regular users this PR will change nothing, apart from also giving an extra option to light up the display when receiving new notifications.
For more advanced users, there's the [Fossil HR Menu Companion app](https://github.com/dakhnod/Fossil-HR-Menu-Companion ) that's needed to enable and configure the new menu system. Just disable one or more of the physical buttons in Gadgetbridge and configure them instead in the companion app to get started.
Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2616
2022-03-22 20:52:43 +01:00
a b
4e8449eb47
Add support for Hama Fit Track 1900
2022-03-15 19:09:46 +01:00
Daniel Dakhno
f49184ef62
Fossil HR: try guessing new widget position
2022-03-09 10:44:49 +01:00
rarder44
c0ca52d2b8
BangleJS: added repetitions in alarm json ( #2579 )
...
Co-authored-by: rarder44 <rarder44@noreply.codeberg.org>
Co-committed-by: rarder44 <rarder44@noreply.codeberg.org>
2022-03-07 10:43:54 +01:00
vanous
f44ff3ae69
AutoExporter changes for better operation and troubleshooting.
...
- Add more info about AutoExport into DataManagement activity
- Fix scheduleAlarm name
- Run AutoExporter in another thread
- Start AutoExporter on app startup if not running yet from AutoStartReceiver
- Save and show time of scheduled and last executed AutoExport
2022-03-06 13:03:59 +01:00
Richard de Boer
cec28d2442
Bangle.js: handle battery charging status
2022-03-06 00:24:57 +01:00
Daniel Dakhno
f61008c9ae
UM-25: made cumulative values resettable
2022-02-27 11:03:39 +01:00
SalavatR
8e34311f01
XWatch notifications and calls support
2022-02-25 22:26:40 +01:00
vanous
3ecc6519b0
Add selection dialog to set OpenTracks package name
2022-02-25 07:33:10 +01:00
Arjan Schrijver
8d152bec22
Add explanation to OpenTracksController
2022-02-23 14:08:26 +01:00
vanous
3450e5d5e7
allow to open Android notification settings from Notification settings
2022-02-23 10:25:10 +01:00
vanous
10fc3e1fae
unset OpenTracksObserver after finish
2022-02-22 18:19:28 +01:00
vanous
79e0c01f60
add debug features for openTracksObserver
2022-02-22 17:57:31 +01:00
vanous
fdfb9f57e2
perform check before closing openTracksObserver.finish
2022-02-20 15:09:05 +01:00
vanous
020c4aacd5
add OpenTracks Nightly into whitelisted persistent notification apps
2022-02-20 15:07:50 +01:00
vanous
65cbea6713
Add HUAMI button/device action to control fitness tracking
...
- Fitness App Tracking Start already works, Stop is commented out for
time being
- Catch exception in case the package name for controlled app doesn't
exist/work
2022-02-19 16:04:48 +01:00
Arjan Schrijver
5224304b6c
Read overall statistics from received OpenTracks dashboard API URIs
2022-02-17 11:00:58 +01:00
Arjan Schrijver
d2408f77cd
Fossil Hybrid HR: Move workout request handling to separate class
2022-02-17 11:00:58 +01:00
Arjan Schrijver
e188e54622
Add OpenTracksController for interactions with OpenTracks
2022-02-17 11:00:58 +01:00
Arjan Schrijver
c8ad21eebf
Fossil Hybrid HR: Start/stop track in OpenTracks from GPS workout on watch
2022-02-17 11:00:58 +01:00
Daniel Dakhno
93fc2c3b61
VESC: fixed crash on loading saved integer
2022-02-14 19:12:44 +01:00
vanous
33569d73d7
WaspOS: fix battery chart
2022-02-02 15:53:59 +01:00
vanous
ed1836a2bd
WaspOS: add condition code to weather JSON
2022-02-02 15:43:45 +01:00
Andreas Shimokawa
b62357dfe2
Mi Band 6: Sync alarms set on the watch like on Amazfit Bip U and others
...
This adds code to decrypt chunked protocol replies for configuration data.
Also some (disabled) code for SMS reply.
2022-02-02 12:57:25 +01:00
Andreas Böhler
884538de5e
Add basic support for Casio GBD-H1000
2022-02-02 11:21:11 +01:00
Richard de Boer
42e0a63429
Bangle.js: fix battery chart
...
Battery percentages were shown in gadgetbridge, but not stored, so the chart didn't work.
Call AbstractDeviceSupport.handleGBDeviceEvent() instead of rolling our own battery update,
and that does call createStoreTask()
2022-02-02 11:20:43 +01:00
Marc Nause
e32dc8b48e
Bangle.js: Prevent exception in case UART RX line is empty
...
This seems to fix the "no incoming call notification"-issue, see https://github.com/espruino/BangleApps/issues/976
2022-01-29 23:49:51 +01:00
Andreas Shimokawa
d67771ccc3
Huami: implement reassably of alarm configuration chunks for low mtu and fix situation when all alarms get deleted on the watch
2022-01-21 12:48:36 +01:00
Daniel Dakhno
7697b588d1
Merge remote-tracking branch 'origin/master'
2022-01-20 15:51:25 +01:00
Daniel Dakhno
2fbf0d62e0
QC35: added battery threshold
2022-01-20 15:51:19 +01:00
Andreas Shimokawa
6046152153
Huami: Fix updating alarm times when not toggling, other logic fixes
2022-01-20 11:12:31 +01:00
Andreas Shimokawa
47f7f22df4
Read alarms from device on connect and when changed on device
...
TODO:
- support decryption for mi band 6
- reassamble chunks for low MTU
2022-01-20 10:09:23 +01:00
Andreas Shimokawa
3b95e4ea66
Bip U / Bip U Pro: Fix switched device names
2022-01-18 21:20:33 +01:00
Andreas Shimokawa
406f775f76
Amazfit Pop/Pop Pro: Seperate device from Bip U/Bip U Pro
...
This really seems to be the same device, but it does have a different firmware
and a different bluetooth name.
Do this to prevent cross flashing - which might actually be okay but we do not know.
2022-01-18 21:15:12 +01:00
Andreas Shimokawa
3b25f57986
Revert "Add Support for Bip U series China Variant"
...
This reverts commit 8e66ed4283
.
2022-01-18 20:02:28 +01:00
José Rebelo
d0f80eb5b4
Sony Headphones: Implement Noise Cancelling Optimizer
2022-01-17 07:55:43 +01:00
José Rebelo
83c42ebef8
Sony WH-1000XM3: Disable equalizer, surround and sound position while in SBC codec
2022-01-15 23:40:00 +00:00
José Rebelo
1de2c32705
Make DeviceSpecificSettingsCustomizer Parcelable, fixing occasional crash
...
A fragment must have an empty constructor, and the settings will sometimes crash when resuming.
Fixes #2560
2022-01-15 17:18:41 +01:00
DESKTOP-IF738U6\Tim
5de5f7bb14
added data loss fix to debug activity
2022-01-15 09:52:27 +01:00
rikka356
8e66ed4283
Add Support for Bip U series China Variant
2022-01-13 05:47:36 +08:00
José Rebelo
8a54f5dd1c
Improve discovery activity internationalization
2022-01-12 13:26:54 +00:00
MedusasSphinx
f3a491496e
Transliterate "ı"
2022-01-12 13:55:25 +01:00
Arjan Schrijver
795c800dd4
Fossil HR: Make width of custom widget configurable
2022-01-12 13:55:02 +01:00
José Rebelo
d4840b3c5b
Sony Headphones: Improve first connection reliability
2022-01-12 13:28:26 +01:00
Andreas Böhler
c81a7ab8e4
Fix supid bug introduced while refactoring Casio support
2022-01-12 11:33:05 +01:00
José Rebelo
d23b0a5b88
Sony WH-1000XM4: Initial Support
2022-01-12 10:36:07 +01:00
Daniel Dakhno
73ce323288
Fossil HR: improved DeviceApplicationsList handling
2022-01-11 13:13:15 +01:00
dakhnod
8d1a1c07b7
fossilhr-activity-recognition ( #2539 )
...
This PR adds the ability to change activity recognition settings on the watch.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2539
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-01-06 13:31:00 +01:00
vanous
3617fc9115
add icons for VESC devices
2022-01-01 12:45:40 +01:00
vanous
53e7a4740e
Add commit id into About screen
2021-12-30 10:40:40 +01:00
vanous
7cf562c8e6
Refactor formatting of distance strings
...
- localizing number format
- allows translation of distance units
- refactor
2021-12-30 07:55:20 +01:00
Your Name
c62a418961
Add climbing activity & Add seperate res for hiking and climbing
2021-12-28 22:37:35 +01:00
Sebastian Krey
2bf4f14b98
New Amazfit GTS 2 Mini activity Outdoor Trekking/Hiking ( #2528 )
...
New Huami Amazfit GTS 2 Mini activity for Outdoor Trekking/Hiking.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2528
Co-authored-by: Sebastian Krey <skrey@noreply.codeberg.org>
Co-committed-by: Sebastian Krey <skrey@noreply.codeberg.org>
2021-12-28 13:46:17 +01:00
Sebastian Krey
241bc02cc0
Huami activity summary fields for ascent, descent and flat distances
2021-12-27 15:48:04 +01:00
dakhnod
504b552f0c
device-vesc ( #2491 )
...
Adds Support for BLDC controller VESC connected to a BLE serial device like an HM10.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2491
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2021-12-27 15:47:10 +01:00
ITCactus
e332f5d23a
[PineTime][InfiniTime][2527] remove debug Toast and subscription to UUID_CHARACTERISTIC_MOTION_RAW_XYZ_VALUES
2021-12-27 15:38:10 +01:00
dakhnod
b0ed617072
device-bose-qc35 ( #2520 )
...
This PR adds not only the device Bose QC35,
it also adds the following autop-reconnect feature:
When the headphones are turned on, the initiate a connection with the phone.
With this change, GB is notified about said change, and tries to establish a connection to the newly connected device, if the appropriate device setting is set.
The QC35 headpones always have NC turned on after boot, thus the main feature of this implementation is to turn off NC as soon as the headphones are turned on and connected to the phone.
I am open for discussion regarding the implementation, but this seems like a good first proposal.
What is missing is the ability to connect to multiple devices, since in many cases headphones can be connected to the watch simultaniously to a smartwatch or other gadget.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2520
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2021-12-27 15:37:04 +01:00
José Rebelo
c4874de11a
Sony WF-SP800N: Initial Support
2021-12-26 19:17:21 +01:00
José Rebelo
8eb0b310ba
Sony WH-1000XM3: Fix Ambient Sound Control commands, potentially improving ANC quality
2021-12-26 19:17:21 +01:00
José Rebelo
4297b4b7e0
Roidmi 1: Set number of batteries to 0
2021-12-26 18:27:01 +01:00
José Rebelo
b0648dcc09
Roidmi: Fix frequency configuration on some non-english languages
2021-12-26 18:27:01 +01:00
José Rebelo
887c3bf8ca
Roidmi: Slight code cleanup
2021-12-26 18:27:01 +01:00
José Rebelo
5dfcaa65ea
Roidmi 3: Add support for Mojietu 3 rebrand
2021-12-26 18:27:01 +01:00
vanous
c23810f54c
Provide Add test device directly from the Discovery screen
2021-12-26 18:14:07 +01:00
vanous
682a26e56d
Add Discovery setting to the Discovery Activity
2021-12-26 18:14:07 +01:00
vanous
71138192f0
Allow discovering unsupported devices for debug purposes
2021-12-26 18:14:07 +01:00
Daniel Dakhno
e889796671
added util method to Version
2021-12-26 17:58:47 +01:00
Daniel Dakhno
cab9ab714a
Fixed bug on Preference Screen start
2021-12-26 15:40:12 +01:00
Daniel Dakhno
a1f9fe82d2
Merge branch 'master' of codeberg.org:Freeyourgadget/Gadgetbridge
2021-12-26 00:17:56 +01:00
Daniel Dakhno
a1be28c117
UM25: removed battery icon
2021-12-26 00:17:44 +01:00
Andreas Shimokawa
e1b04f6a5c
Huami: support old version of new chunked protocol used on Amazfit Bip U at least
...
This is used for setting world clock and setting canned messages for call rejection.
This PR implements setting the canned messages, but unfortunately the feature is somehow not "unlocked"
2021-12-23 18:06:58 +01:00
musover
8baf97fd93
Determined which icons take header, fixed email
2021-12-23 11:42:29 +01:00
musover
37adef93bb
Add support for Telegram (from web) and Discord
2021-12-23 11:42:29 +01:00
musover
d5eb5b0690
Determined which icons take header, fixed email
2021-12-23 11:42:29 +01:00
musover
69c1c1b989
Fix notification title not appearing on Amazfit GTS2 Mini for non-chat apps
2021-12-23 11:42:29 +01:00
musover
907ffafa62
Add support for Telegram (from web) and Discord
2021-12-23 11:42:29 +01:00
José Rebelo
33b5a6de38
Sony WH-1000XM3: Read information from device
2021-12-23 11:39:26 +01:00
Andreas Shimokawa
0906f150bd
Do not transliterate phone numbers and iconIds
...
In case of icon Ids this even leads to a crash :/
Fixes #2517
2021-12-20 16:52:55 +01:00
Sebastian Krey
56a552ac44
Move minHR into version 519 case
2021-12-20 12:18:28 +01:00
Sebastian Krey
2af93eba03
Additional Huami Summary fields
2021-12-20 12:18:28 +01:00
José Rebelo
96d709bea1
Allow devices to update info, preferences and state
2021-12-20 11:29:21 +01:00
José Rebelo
93dad44750
Keep device info on the correct device during reordering
2021-12-19 19:11:22 +01:00
Daniel Dakhno
2f217b077f
Fossil HR: removed find-my-device with older firmwares
2021-12-19 12:56:47 +01:00
Daniel Dakhno
ee9d1155ba
Fossil HR: fixed on-device confirmation for older firmwares
2021-12-19 12:51:30 +01:00
Richard de Boer
c8ceb4e44d
Bangle.js: add condition "code" to weather JSON
...
Fixes #2504 : Weather: support for language independent condition code or icon name
2021-12-19 09:56:05 +01:00
José Rebelo
54749ec9d9
Hide heart rate status label view if empty
2021-12-18 23:22:01 +00:00
José Rebelo
7e349213a5
Hide battery status label view if empty
2021-12-18 22:45:49 +00:00
Andreas Shimokawa
055511945b
Amazfit Bip U/Pro: disable event reminder it is not supported by the device!
2021-12-16 17:59:47 +01:00
José Rebelo
300491d483
Mi Band 3: Add preference to enable display on wrist lift during DND
2021-12-13 16:46:40 +01:00
Andreas Shimokawa
78b832567b
Amazgit GTS2 Mini: Try to fix most missing menu items
2021-12-13 10:27:30 +01:00
Andreas Shimokawa
a917d3786f
Amazfit GTS2 mini: Fix language selection
2021-12-13 10:08:39 +01:00
José Rebelo
2e8f44cd85
Huami: Fix weekly reminders
2021-12-13 09:24:29 +01:00
Daniel Dakhno
45647ccbf7
Fossil HR: added timeout to on-device confirmation
2021-12-13 03:04:44 +01:00
Andreas Shimokawa
dbdeb59f9c
Mi Band 6: Whitelist FW 1.0.6.10
2021-12-12 19:01:54 +01:00
José Rebelo
a111272143
Huami: Fix reminder deletion
2021-12-12 10:48:22 +00:00
vanous
33300113a5
Reminders: add to Huami Coordinator for all Huami devices except of MiBand2
2021-12-11 23:25:18 +01:00
José Rebelo
710b6f6699
Mi Band 3: Add support for Reminders
2021-12-11 22:39:18 +01:00
ITCactus
4cadb0412b
[PineTime][2481] Steps/Activity sync support #2481 ( #2486 )
...
added sync "steps" from PineTime/InfiniTime to Gadgetbridge.
notes:
* Steps sync works only since InfiniTime 1.7
* InfiniTime advertise "steps" info when the PineTime screen is ON (and a bit after that). hence:
* you should unlock the PineTime screen before end of the day to not loose your latest progress (since the last unlock) at the end of the day;
* when the PineTime screen is ON and you are moving, PineTime will send "steps" count every about 2-10 seconds, and Gadgetbridge may start to treat this data as an Activity (and also displaying it in Activity charts). that data and charts will not be accurate: you should wait for ["Health/Fitness data storage and expose to companion app](https://github.com/InfiniTimeOrg/InfiniTime/projects/4 )" project to be implemented on the PineTime side. and meanwhile, in Gadgetbridge open "Device specific settings" and change/uncheck option in "Charts tabs" and "Activity info on device card" to leave only Steps data.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2486
Co-authored-by: ITCactus <itcactus@noreply.codeberg.org>
Co-committed-by: ITCactus <itcactus@noreply.codeberg.org>
2021-12-11 21:19:05 +01:00
José Rebelo
8416cb4e71
Sony WH-1000XM3: Disable device preferences conditionally
2021-12-10 17:38:23 +01:00
Gordon Williams
228008e42c
Bangle.js - Minor tweaks to sizes for drawableToBitmap
2021-12-09 16:14:06 +00:00
Gordon Williams
e82662f0bf
Bangle.js: if music state is out of range, just return '' ( fix #2485 )
2021-12-09 16:09:49 +00:00
dakhnod
4981aacb30
Fossil HR: added infrastructure to display on-device confirmations ( #2451 )
...
This PR aims to add the on-device connection confirmation for the Fossil HR.
This seems mandatory, since, at least on my watch, without said confirmation certain files like the configuration cannot be accesses, e.g. the time on the watch cannot be set etc.
The mystery yet to be solved is how to get the watch to not ask for a confirmation on every new connection or reconnection attempt, since that can get very annoying.
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2451
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2021-12-07 16:41:37 +01:00
Arjan Schrijver
7d552ce41f
Fossil Hybrid HR: Fix widget configuration bug
2021-12-06 17:08:50 +01:00
vanous
468a40c62e
Activity Card: React to User settings. Unify step length
2021-12-05 10:34:55 +01:00
vanous
4398076ecc
Activity card: React to Charts settings, refactoring
2021-12-04 20:38:05 +01:00
vanous
50204a956e
Activity card: Open specific Charts tab for each activity
2021-12-04 17:18:27 +01:00
José Rebelo
361dcd2eac
Fix battery level and voltage index on BatteryInfoActivity
2021-11-30 23:41:58 +00:00
vanous
a7620e2748
Activity card: simplify the layout and only show each chart if there is data
2021-11-25 12:30:10 +01:00
vanous
2e42f16146
FitPro: extend search name, fix #2473
2021-11-24 22:08:13 +01:00
Arjan Schrijver
88218a1273
Fossil Hybrid HR: Add choice between hiding text and showing circle on custom widget timeout
2021-11-24 10:14:36 +01:00
Arjan Schrijver
d1062a30b2
Fossil Hybrid HR: Add update timeout to custom widget
2021-11-24 09:52:49 +01:00
mvn23
3c4799a339
Add support for native Do Not Disturb
functionality on Fossil watches
2021-11-23 17:22:27 +01:00
Andreas Böhler
4c5d9e5665
Add support for Casio GBD-200 and untested support for GBD-100
2021-11-23 17:22:05 +01:00
Andreas Böhler
90ae3d0019
Refactor Casio support and fix alarm handling on all devices
2021-11-23 17:21:35 +01:00
vanous
ec3b3bf617
Make new FM Frequency selector with presets
2021-11-23 12:38:29 +01:00
José Rebelo
f8e5b88231
Sony WH-1000XM3: Abstract common Sony Headphones logic
2021-11-20 21:26:51 +01:00
vanous
296dbb16aa
Add Activity info into Device Card: make cards center alighed with shorter text
2021-11-20 17:04:39 +01:00
vanous
8caa529fbb
Add Activity info into Device Card: add charts, split widths evenly
2021-11-20 16:04:02 +01:00
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