[Nottingham] Calendar (SabreDAV) export date range

Martin martin at ml1.co.uk
Wed Jul 2 10:08:54 UTC 2014

On 02/07/14 10:45, Jason Irwin wrote:
> On 02/07/14 10:00, Martin wrote:

>> For online calendars such as the Google calendars, the webserver system
>> SabreDav can be given such as:
>> https://cloud.example.com/remote.php/caldav/calendars/someuser/defaultcalendar?export
>> to export an ".ics" of their entire calendar.
>> What's the magic extra bits to only export for a date range?
> "start" and "end"?
> https://cloud.example.com/remote.php/caldav/calendars/someuser/defaultcalendar?export&start=1391707119&end=1391707215
> From: http://sabre.io/dav/ics-export-plugin/

Thanks for that.

Hence the example becomes:

-d 'now' +%s)\&end=$(date -d 'next month' +%s)

Note the "\" to escape the "&" to have bash ignore them.

That gives the actual address:


Trying that on ownCloud 6 gives:

ERROR 404: Not Found


works fine but outputs the entire (very large) calendar...

So... Looks like the "iCalendar Export Plugin" needs adding.

That may well be an experiment for tonight... ;-)


- ------------------ - ----------------------------------------
-    Martin Lomas    - OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7
- martin @ ml1 co uk - Import from   hkp://subkeys.pgp.net   or
- ------------------ - http:// ml1 .co .uk/martin_ml1_co_uk.gpg

More information about the Nottingham mailing list