abranson / rockpool

Pebble client application for Sailfish OS
41 stars 19 forks source link

Calendar: sync all calendars? #88

Closed rubdos closed 3 years ago

rubdos commented 4 years ago

It seems rockpoold is only pushing a single calendar to my Pebble Time. I have five different calendars that I have enabled, and it would be nice to be able to select which ones to have on the watch (or at least sync all of them already).

Do you have some pointers for me? I'd be happy to file the necessary pull request.

abranson commented 4 years ago

I have five calendars on my device, one exchange and four caldav, and they all sync to the timeline. Is this when running rockpoold as a service, or on the cmdline? Remember it only has access to PIM data if you're running it in the privileged group - either with devel-su -p or with the service. Also make sure it has its file in /usr/share/mapplauncherd/privileges.d/

rubdos commented 4 years ago

On 12/10/19 9:53 PM, Andrew Branson wrote:

I have five calendars on my device, one exchange and four caldav, and they all sync to the timeline. Is this when running rockpoold as a service, or on the cmdline? Remember it only has access to PIM data if you're running it in the privileged group - either with devel-su -p or with the service. Also make sure it has its file in /usr/share/mapplauncherd/privileges.d/

Hmm, it seems like it's missing certain events, not calendars (although I'm only seeing some events from my Work calendar). All of them I'm running with the service usually, although occasionally I start in on cli to debuy my berail integration.

I'm using the RPM from OpenRepos, and the privileges.d file is present.

rubdos commented 4 years ago

Managed to catch one. They all give "existing pin, skipping", eg

2019-12-11T22:03:19 [D] :0 Inserting pin "{\n    \"actions\": [\n        {\n            \"title\": \"Open\",\n            \"type\": \"open\"\n        },\n        {\n            \"title\": \"Snooze\",\n            \"type\": \"snooze\"\n        }\n    ],\n    \"allDay\": true,\n    \"createTime\": \"2019-12-07T17:59:47Z\",\n    \"dataSource\": \"calendarEvent:ed429c16-f674-4220-95da-454f303f15e2\",\n    \"guid\": \"NBUID:665467fe-9c3c-41b8-9f9e-c22d0f9a2767:1de286b5-50d7-453a-9d3f-1f64a8f78875\",\n    \"id\": \"NBUID:665467fe-9c3c-41b8-9f9e-c22d0f9a2767:1de286b5-50d7-453a-9d3f-1f64a8f78875\",\n    \"layout\": {\n        \"backgroundColor\": \"#e78601\",\n        \"headings\": [\n            \"Calendar\",\n            \"Comments\"\n        ],\n        \"paragraphs\": [\n            \"Work\",\n            \"buteo:caldav:uri:/remote.php/caldav/calendars/rsmet/work/1de286b5-50d7-453a-9d3f-1f64a8f78875.ics;buteo:caldav:etag:\\\"d4d7ffcb603a2cd189d628b57d1bf119\\\"\"\n        ],\n        \"title\": \"~~~~~~~~\",\n        \"type\": \"calendarPin\"\n    },\n    \"time\": \"2019-12-13T23:00:00Z\",\n    \"updateTime\": \"2019-12-07T17:59:50Z\"\n}\n"
2019-12-11T22:03:19 [D] :0 Existing pin, refreshing and skipping

is this because the calendar item was created before I even had the watch? :'-)

rubdos commented 3 years ago

After resetting the whole of rockpool, this seems to be fixed.