-
• #2
Maybe you could provide a section of the Gadgetbridge log from right after it sees force_calendar_sync ?
That line shows the Bangle is reporting that it doesn't have any calendar events, but you should see
{"t":"calendar"
lines from Gadgetbridge as it pushes data to the Bangle, and likely after that some error from the Bangle if there was an issue.If that's not happening it might be a Gadgetbridge config issue. When you click on the gear icon next to your device in Gadgetbridge for "Device specific settings", do you see
Sync calendar events
is enabled, and nothing is blacklisted? -
• #3
Here's the Gadgetbridge log from just before "force_calendar_sync" to the end:
15:28:20.543 [binder:14576_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 6e400003-b5a3-f393-e0a9-e50e24dcca9e value: 0x0d 0x0a 0x7b 0x22 0x74 0x22 0x3a 0x22 0x66 0x6f 0x72 0x63 0x65 0x5f 0x63 0x61 0x6c 0x65 0x6e 0x64 0x61 0x72 0x5f 0x73 0x79 0x6e 0x63 0x22 0x2c 0x22 0x69 0x64 0x73 0x22 0x3a 0x5b 0x5d 0x7d 0x0d 0x0a 15:28:20.543 [binder:14576_3] DEBUG n.f.g.s.d.b.BangleJSDeviceSupport - RX: {"t":"force_calendar_sync","ids":[]} 15:28:20.544 [binder:14576_3] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX LINE: 15:28:20.544 [binder:14576_3] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX LINE: {"t":"force_calendar_sync","ids":[]} 15:28:20.544 [binder:14576_3] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX JSON parsed successfully 15:28:20.552 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 15:28:20.553 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Not connected 15:28:20.554 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Connected 15:28:20.555 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Not connected 15:28:20.555 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Connected 15:28:20.557 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 15:28:20.558 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Not connected 15:28:20.558 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Connected 15:28:20.558 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Not connected 15:28:20.559 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - ACTION_DEVICE_CHANGED Connected 15:28:20.559 [main] INFO n.f.g.s.r.AutoConnectIntervalReceiver - will reset connection delay, all devices are initialized! 15:28:20.559 [main] INFO n.f.g.s.r.AutoConnectIntervalReceiver - will reset connection delay, all devices are initialized! 15:28:37.388 [main] INFO n.f.g.e.CalendarReceiver - got calendar changed broadcast 15:28:37.388 [main] INFO n.f.g.u.c.CalendarManager - Loading calendars_blacklist 15:28:37.388 [main] INFO n.f.g.u.c.CalendarManager - Loaded calendars_blacklist has 4 entries 15:28:37.389 [main] INFO n.f.g.u.c.CalendarManager - Loading calendars_blacklist 15:28:37.389 [main] INFO n.f.g.u.c.CalendarManager - Loaded calendars_blacklist has 4 entries 15:28:37.410 [main] DEBUG n.f.g.u.c.CalendarManager - calendar ...@gmail.com/Holidays skipped because it's blacklisted 15:28:37.431 [main] DEBUG n.f.g.u.c.CalendarManager - Reminder Method: 1, Minutes: 60 15:28:37.437 [main] INFO n.f.g.e.CalendarReceiver - Syncing with calendar. 15:28:37.437 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=1 for device=Bangle.js 37cb 15:28:37.437 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=10 for device=Bangle.js 37cb 15:28:37.437 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=12 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=16 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=36 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=37 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=38 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=54 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=63 for device=Bangle.js 37cb 15:28:37.438 [main] INFO n.f.g.e.CalendarReceiver - insert null event for orphaned calendar id=222 for device=Bangle.js 37cb 15:28:37.464 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.465 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.465 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.465 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.465 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.466 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.466 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.466 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.466 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.466 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.delete_calendarevent 15:28:37.479 [main] INFO n.f.g.e.AlarmReceiver - won't send sunrise and sunset events (disabled in preferences) 15:28:42.279 [main] DEBUG n.f.g.a.DebugActivity - Flushing logs before sharing
"Sync calendar events" is enabled in Gadgetbridge. I have a few calendars black-listed, but I've also tried a sync with no calendars black-listed - same result.
There are no
{"t":"calendar"
lines (I assume in the Bangle's "device Debug log"). -
• #4
Ok, thanks - you should see a
UART TX
line in that same log you posted if anything was being sent to the Bangle...So it seems this is an issue with Gadgetbridge, just not getting your calendar events... And you're sure it's not just that you don't have anything? I think it only syncs 48 hours in advance or so.
If you go into
Apps
on your Android phone, have you given it all the relevant permissions? -
• #5
Yup, Gadgetbridge has all permissions. It also lists all available calendars under the blacklist selection. And I get the following log entries if I create a new event:
19:09:08.117 [main] INFO n.f.g.e.CalendarReceiver - event id=419 is yet unknown to device id=1 19:09:08.137 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.add_calendarevent
But not the
UART TX
lines you've mentioned.I'm not sure if this is related, but it's strange that only one of 4 black-listed calendars is mentioned in the logs:
19:09:07.873 [main] INFO n.f.g.u.c.CalendarManager - Loading calendars_blacklist 19:09:07.873 [main] INFO n.f.g.u.c.CalendarManager - Loaded calendars_blacklist has 4 entries 19:09:07.899 [main] DEBUG n.f.g.u.c.CalendarManager - calendar ...@gmail.com/Holidays skipped because it's blacklisted 19:09:08.005 [main] DEBUG n.f.g.u.c.CalendarManager - Reminder Method: 1, Minutes: 60
If I remove that calendar from the blacklist, the log correctly states
Loaded calendars_blacklist has 3 entries
, but there are no "skipped" log lines for the other 3 calendars. -
• #6
I've managed to compile the latest Gadgetbridge from source (banglejsDebug), and the calendar syncs fine with that version - all expected events show up on the Bangle, there are now
UART TX
lines and everything.Previously, I've had the latest version from F-Droid installed (0.81.0-banglejs). I didn't review the changes since then, so I can't tell exactly what could be the issue.
Anyway, maybe an update to the F-Droid version might be due.
-
• #7
Anyway, maybe an update to the F-Droid version might be due.
I believe it auto updates when the Gadgetbridge project tags a new stable release (which I suspect isn't very far off).
-
• #8
I could be wrong, but I think you can just download nightly builds from https://freeyourgadget.codeberg.page/fdroid/repo/ ?
-
• #9
Right - I had forgot about those.
Calendar events aren't syncing to with my Bangle.js 2 (it used to work a while back, but I didn't need them back then).
The GadgetBridge log looks promising:
and then one of the following lines per calendar event to be synced:
But nothing appears on the Bangle.js - the
android.calendar.json
remains empty.I've looked at the "device Debug log" (with "Debug" set to BOTH on the watch), but all I found related to calendar syncs was:
I've also tried to completely remove the device from Gadgetbridge and re-connect.
What else can I do to help with troubleshooting?