Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EventCalendar] Akonadi / KDE Calendar Plugins Sync #12

Closed
bugzy opened this issue Apr 11, 2016 · 15 comments
Closed

[EventCalendar] Akonadi / KDE Calendar Plugins Sync #12

bugzy opened this issue Apr 11, 2016 · 15 comments

Comments

@bugzy
Copy link

bugzy commented Apr 11, 2016

Is there any chance of adding sync to caldav resources instead of just google calendar? The source code of the following projects may be of help to implement such a function:
-Google Calendar Agenda [1]
-Akonadi Calendar, Contacts, and Tasks [2]

[1] https://github.com/gjedeer/gcal-plasmoid
[2] https://quickgit.kde.org/?p=akonadi-google-applets.git&a=tree&hb=e381b18168d190a370d34350fe33fc10319b1091

@Zren
Copy link
Owner

Zren commented Apr 17, 2016

This is unlikely to happen. Especially not before the default applet supports it through Kontact. I really don't want to write a caldav parser, then try to build an abstract layer on top of the google calendar models to support it.

@Zren Zren added the wontfix label Apr 17, 2016
@Zren Zren changed the title [Feature Request] CalDAV sync CalDAV sync Apr 17, 2016
@Zren Zren changed the title CalDAV sync [EventCalendar] .ics Sync (aka iCalendar, ical, CalDAV) Jul 20, 2017
@Zren Zren removed the wontfix label Jul 20, 2017
@Zren Zren changed the title [EventCalendar] .ics Sync (aka iCalendar, ical, CalDAV) [EventCalendar] Akonadi / KDE Calendar Plugins Sync Jul 20, 2017
@Zren
Copy link
Owner

Zren commented Jul 20, 2017

Repurposing this issue for synching to the KDE Plasma calendar plugin for KDE PIM which uses Akonadi.

#57 will be for syncing an .ics without Akonadi py parsing/modifying the .ics files manually.

@danvratil
Copy link

You can check the current Digital Clock applet plugin that provides integration with Akonadi calendar. The code is here: https://cgit.kde.org/kdepim-addons.git/tree/plugins/plasma/pimeventsplugin - most of the code should be reusable for your purpose.

@Zren
Copy link
Owner

Zren commented Feb 27, 2018

Pinging @renyuneyun since he hasn't subscribed to this issue yet.

I've managed to implement showing the KHolidays plugin.

Zren/plasma-applet-eventcalendar@335b7b0

Right now it's hardcoded to point to the holidays plugin only.

I still need to add the config ui from digitalclock. Right now you can't select the region the holiday events are from without opening up digital clocks settings (the selection is saved to ~/.config/plasma_calendar_holiday_regions). I'd like to be able to have the plasma events plugins automatically selected by default, but might be more hassle than it's worth.

I'm going to need to figure out if I need to either bump the minimum plasma version for this feature. It'd be a hassle to use a Loader {} pattern where it fails gracefully if the events API is missing.

The most annoying part is probably that I'll need to install akonadi + PIM once I've finished the KHolidays config UI so I can test that.

@Zren
Copy link
Owner

Zren commented Mar 3, 2018

I've tested the holidays plugin, but you should be able to enable the KDE PIM plugin too from the generic new "Events" tab.

Gonna fire up a VM and install KDE PIM.

If you'd like to test yourself try the git master using:
https://github.com/Zren/plasma-applet-eventcalendar#update-to-github-master

@Zren
Copy link
Owner

Zren commented Mar 16, 2018

v54 released. Tell me if there's any issues with Kontact integration.

@bugzy
Copy link
Author

bugzy commented Mar 17, 2018

Working great. Thanks

@renyuneyun
Copy link

Works great 👍 Thanks a lot.

Only one feature lacking: using the color from KOrganizer :P

@Zren
Copy link
Owner

Zren commented Mar 19, 2018

Does the color show up in digitalclock? I though I was using the color provided by the plasma plugin.

@danvratil
Copy link

The Plasma plugin reads the colors from Akonadi Collection attributes and falls back KOrganizer settings otherwise, the relevant code is here: https://github.com/KDE/kdepim-addons/blob/master/plugins/plasma/pimeventsplugin/akonadipimdatasource.cpp#L74

@Zren
Copy link
Owner

Zren commented Mar 19, 2018

Hmmm, whoops. It appears I never bothered reading the CalendarEvents::EventData::eventColor() / dayItem.eventColor since it was an empty string for KHolidays.

I'll get right on that then.

Leaving some other links here for reference later.

@Zren
Copy link
Owner

Zren commented Mar 20, 2018

@renyuneyun
Copy link

It doesn't seem to work. All the colors are still the default one.

By the way, there is another bug: some duplicated entries (but not all entries have duplication) will be listed in the calendar after refresh. It may be related to "refresh", or something else (I remember last time each "fresh" I click, some duplications were created; but this time I only get 2 instances, i.e. 1 duplication).
Maybe you forgot to clear the list/vector (or something similar) after reloading?

@brainode
Copy link

brainode commented Jan 30, 2019

@Zren Where i can find you PayPal info? Want to send you few $.

@bugzy
Copy link
Author

bugzy commented May 1, 2019

Thanks for taking care of this

@bugzy bugzy closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants