vdirsyncer icon indicating copy to clipboard operation
vdirsyncer copied to clipboard

Generate birthday calendar from the vcf contact files

Open pprw opened this issue 7 years ago • 4 comments

This is a question, not a bug report.

Instead of relying upon the Nextcloud (no customizable) birthday calendar, I would like to generate one from the BDAY field of my contacts. I have one .vcf file per contact, I am looking for a script to extract the birthday information and generates a single .ics file with it.

Do someone know such a tool (I believe to have seen one some time ago but I cannot find it anymore)?

pprw avatar Dec 17 '18 21:12 pprw

Pretty sure I searched for this, and did not find anything worthwhile.

polyzen avatar Dec 26 '18 03:12 polyzen

I believe khal can generate calendar entries for your contacts, but I'm not sure if it'll export ICS entries for them.

WhyNotHugo avatar Dec 26 '18 15:12 WhyNotHugo

I believe khal can generate calendar entries for your contacts, but I'm not sure if it'll export ICS entries for them.

No, it doesn't export them.

But something like this could be quickly done with https://github.com/collective/icalendar

geier avatar Jan 04 '19 17:01 geier

Solution I've found with Thunderbird:

  1. Create <calendars dir>/birthdays
  2. vdirsyncer discover to create that calendar on your server
  3. Use the Thunderbird CardBook extension to sync your contact's birthdays (also supports anniversaries and such) with the birthdays calendar

Having a separate calendar for this is a personal preference. It can sync the events to any calendar/s of your choice.

polyzen avatar Dec 24 '23 07:12 polyzen