python-caldav / caldav

Apache License 2.0
312 stars 91 forks source link

How do I add the valarm component? #382

Closed RmzzzCode closed 4 months ago

RmzzzCode commented 4 months ago

I can't figure out the documentation. I'm trying to add it via event.vobject_instance, but it doesn't work.Can you help me figure it out?

tobixen commented 4 months ago

It's possible to add alarms by editing the raw icalendar, or editing it via the icalendar_instance properties. It's a bit outside the scope of the caldav library, as caldav is merely the transportation protocol for communicating with the calendar server, the valarm is inside the icalendar objects. That said, I'm considering adding high-level functions for dealing with alarms, see #132

I will close this issue, subscribe to #132 instead.

tobixen commented 4 months ago

I actually did write up some code in my own pull request #221 for adding alarms easily when creating an event - but then I got busy with other things.

I can try to prioritize to merge it in - problem is that I have rather a lot of things to get done those days so I'm not sure when I will get time to put time into this.