Commit Graph

710 Commits

Author SHA1 Message Date
José Rebelo
c628ce2c97 Garmin: Fix all-day events
As per the CalendarContract, the begin timestamp corresponds to the UTC
midnight-boundary of the start of the day.

- Remove the redundant logic to truncate the date to the start of day
- Remove the workaround for negative timezones (confirmed not workin
  with some EDT users)
- Ensure birthdays also respect the UTC boundary
- Offset the garmin timestamps by the UTC offset, ensuring they match
  midnight on the user's timezome (fixes all-day events offset by 1 day)
2024-10-26 11:53:20 +01:00
José Rebelo
69530de0c6 Set changelog version code when restoring zip backup 2024-10-19 21:00:53 +01:00
José Rebelo
427b7c7557 Activity details: Refactor header 2024-10-12 23:24:14 +01:00
José Rebelo
22a6d9b7d9 Refactor activity lists to use a RecyclerView 2024-10-06 22:24:04 +01:00
José Rebelo
32e955abe2 Fix language not being respected in some situations 2024-10-06 22:22:48 +01:00
José Rebelo
c700d49bf0 Allow gadgets to provide distance and calories 2024-10-05 17:29:23 +01:00
Me7c7
694227a3b1 Fix today's birthday displaying 2024-10-05 13:20:46 +00:00
José Rebelo
67346a06e5 Fix HRV Status days 2024-10-05 14:17:08 +01:00
Me7c7
2ee17bd52f Huawei: Fixed calendar event deletion when birthday sync is enabled. 2024-10-03 18:32:51 +03:00
José Rebelo
3e327e2924 Workout Details: Add tables and progress bars 2024-10-01 20:27:59 +00:00
Linos Giannopoulos
e1c245cdbd
Make charts' date format more consistent
Sleep and Steps charts already have the day/way/month sub-charts that
already use the "Mon, Sep 7" format. This commit attempts to make the
rest of the date formatting more consistent with that format in the
activity list and the base navigation bar at the bottom of all charts.

Closes #2412

Signed-off-by: Linos Giannopoulos <linosgian00@gmail.com>
2024-10-01 20:17:39 +03:00
José Rebelo
f6f196847b Make calendar lookahead configurable 2024-09-30 23:44:24 +01:00
José Rebelo
5730e82380 Bangle.js: Refactor activity details 2024-09-28 22:03:26 +00:00
José Rebelo
e65d847835 Fix CalendarEvent constructor due to rebase 2024-09-27 23:51:58 +01:00
Me7c7
f3aaeb5216 Huawei: Initial P2P service support, Calendar sync support. 2024-09-27 22:40:30 +00:00
José Rebelo
8ae8898a89 Sync birthdays with calendar events 2024-09-27 17:37:06 +00:00
Daniele Gobbetti
550e6a86f2 Pebble: fix NPE in getPlatformName
The NPE was triggered by recent changes in the HearthRate Charts (503cd31d91)
Since getModel was also affected by the same NPE, the function is now changed as well.
2024-09-25 15:09:01 +02:00
José Rebelo
49750e31af Fix gpx hr parsing and unit tests 2024-09-23 22:13:01 +01:00
José Rebelo
060d39d5b0 GpxParser: Parse heart rate 2024-09-21 10:09:57 +01:00
José Rebelo
9fcd463bfc Fix import of some hashset preference values from xml 2024-09-11 22:28:56 +00:00
José Rebelo
be9cc348d1 Allow full backup/restore from a zip file 2024-09-11 22:28:56 +00:00
Daniel Dakhno
aae1d40d54 Core: added first iteration of BLE intent API
Core: added BLE GATT Client

Core: fixed string comparisons

Core: unified intent APIs

Core: fixed notification and publication bugs

Core: extracted BLE Intent API logic

Core: introduced finer BLE API permissions

Core: use device name when adding test device through DiscoveryActivity

Core: avoid reporting same device state multiple times

Core: read firmware version on GATT Client connect connect

Core: use onSendConfiguration instead of direct subscription

Core: I18N for GATT API settings

Core: I18N for GATT API settings

Core: only show BLE API settings for BLE devices

Core: refactored intent handler

Core: extracted ble API to own class

Core: fixed unitialized BLE Api

BLE Intent API: I18N

BLE Intent API: refactoring

BLE Intent API: added back legacy API

BLE Intent API: removed new DEVICE_CHANGED and CONNECT endpoints

BLE Intent API: removed redundant ble api setting
2024-09-08 23:17:07 +00:00
José Rebelo
834c773dec Fix getLocalDate month off-by-1 2024-08-31 21:33:24 +01:00
José Rebelo
4da02fa851 Add month and day to date of birth 2024-08-31 14:40:39 +01:00
Johannes Krude
8a4aca06e6 DevicePrefs gets the GBDevice since it it device specific 2024-08-30 22:03:34 +00:00
Johannes Krude
80fea5b916 move some device specific preferences from GBPrefs to DevicePrefs
addresses https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/4049#issuecomment-2270266
2024-08-30 22:03:34 +00:00
Johannes Krude
e5438a856e fix reserved Reminder slots for non-Huami Devices 2024-08-30 22:03:34 +00:00
José Rebelo
227f0a9d80 Mi Composition Scale: Add alternative bluetooth name 2024-08-29 15:17:19 +00:00
José Rebelo
12ecfa0c4e Garmin: Parse strength training workout sets 2024-08-28 13:43:12 +01:00
José Rebelo
2db88c63db Reduce stutters on device changes / data fetch 2024-08-25 20:21:45 +00:00
Daniele Gobbetti
13be343392 Pebble: remove last global settings
In order to add an emulated device it is sufficient to use the "Add test device" functionality choosing pebble as device and entering IP:PORT in the mac address field.

The pebble setting to force BLE is moved to discovery_pairing_preferences.xml

Also delete the pebble_preferences file and update general preferences.
2024-08-25 20:20:52 +00:00
Daniele Gobbetti
795ffde0e1 Pebble: move a bunch of preferences to device specific settings 2024-08-25 20:20:52 +00:00
Johannes Krude
a885e0eb93 Casio GW-B5600: Alarms 2024-08-23 14:05:11 +00:00
Johannes Krude
21bfc81b35 Casio GW-B5600: watch settings 2024-08-23 14:05:11 +00:00
José Rebelo
2b9987d3e5 Mi Band: Migrate global preferences to device-specific 2024-08-23 14:02:28 +00:00
José Rebelo
3bb969dc43 Data Management: Allow browse folders, open and share files 2024-08-20 17:18:35 +01:00
Daniele Gobbetti
29787d0c9b Garmin: add gpx import functionality for models that support it
Add a Field definition for GPS coordinates and remove the corresponding method from GarminUtils.
Add a new message COURSE and some fields to other known messages.

Also centralize some utility methods in GpxParser and GpxTrack, adapting ZeppOsGpxRouteFile.

Be aware that the capability used to identify the supported watches might be the wrong one.
2024-08-16 18:52:13 +02:00
José Rebelo
34378a4a11 Refactor ActivityKind into an enum 2024-08-14 23:13:12 +01:00
José Rebelo
1c5e485bfe Prevent crash when pairing with BondAction 2024-07-29 20:33:39 +01:00
José Rebelo
20f4248e1c Allow configuration of notification times 2024-07-22 12:40:55 +00:00
Severin von Wnuck-Lipinski
b13c1b52be Use default system TTS language
Calling TextToSpeech.setLanguage overrides the TTS language
set by the user in the system settings.
2024-07-19 19:12:55 +00:00
José Rebelo
124b1953aa Xiaomi: Add battery polling settings 2024-07-13 15:23:38 +01:00
José Rebelo
05d3cfb01c Make all intents explicit 2024-07-08 22:16:15 +00:00
Martin.JM
7e0e3fa661 Add getBatteryPollingIntervalMinutes to DevicePrefs 2024-07-08 20:36:37 +00:00
Martin.JM
bf16bf06c3 Add battery polling settings 2024-07-08 20:36:37 +00:00
José Rebelo
c376034409 Enable core library desugaring 2024-07-04 20:20:00 +01:00
José Rebelo
5c5b036e20 Update android-emojify to 1.9.2
- Ignore the moshi R8 errors, since we use gson
- Add explicit rtl support, otherwise the lib removes it
- Refactor EmojiConverter to exclude fitzpatrick
2024-07-04 19:58:03 +01:00
José Rebelo
9bff990370 Upgrade to gradle 8 2024-06-30 15:18:30 +00:00
José Rebelo
d946053bcb Garmin: Allow fetching unknown files 2024-06-16 22:21:46 +00:00
José Rebelo
7cafbc2002 Prevent some bluetooth events from starting Gadgetbridge 2024-06-15 23:26:58 +01:00