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

Suggestion: Baikal Data export to *.ics and *.vcf file #257

Closed
rudi48 opened this issue Jul 3, 2014 · 5 comments
Closed

Suggestion: Baikal Data export to *.ics and *.vcf file #257

rudi48 opened this issue Jul 3, 2014 · 5 comments
Assignees

Comments

@rudi48
Copy link

rudi48 commented Jul 3, 2014

Hello,
I have seen in the SabreDAV documentation, that it is possible with a plugin to export your calendar and contacts data to an *.ics and *.vcf file.
See: http://sabre.io/dav/ics-export-plugin/
http://sabre.io/dav/vcf-export-plugin/
A one line patch gives this possibility to Baikal.
Edit cal.php
near the end of the file add to the plugins:
$server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin());
Edit card.php
near the end of the file add to the plugins:
$server->addPlugin(new \Sabre\CardDAV\VCFExportPlugin());

URL in the web browser:
http(s)://SERVER/baikal/cal.php/calendars/USER/default?export
http(s)://SERVER/baikal/card.php/addressbooks/USER/default?export
This will download a file, you have to name it.

Regards, Rudolf

@herriett
Copy link

This sounds like it would be nice to add to the admin interface. In/Export between cal/carddav is always a hassle nowadays.

@brutus
Copy link

brutus commented Aug 4, 2014

What's the state of this? I would love to sync with those formats, since I'm using Rainlendar and it only supports plain ical format, no CalDav.

I'm more than a little rusty on PHP; what's to do to have Sabre export as ical instead of giving the normal response only when the GET parameter is export? Would it also be possible to push ical to the server (eg. on a POST request or similar)?

Or any other hints, how to sync plain ical with Baikal?

@brutus
Copy link

brutus commented Aug 14, 2014

Thx @rudi48 , it worked. I now have a cron job that grabs the export and feeds it to Rainlendar. Kinda crude and only one way, but hey...

Pull request can be found here: #272

@netgusto
Copy link
Member

netgusto commented Nov 4, 2014

Hey ! Export will be featured out of the box in the upcoming release of Baïkal (branch branch-2 of this repo). See #282

@thijstriemstra
Copy link

With Baikal 0.4.6 you can use this url to export contacts:

https://dav.example.com/card.php/addressbooks/username/default?export

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