Read the statement by Michael Teeuw here.
CalDAV
-
Hey @poekel,
You can limit the export with some options. Since baikal uses sabre/dav you can use the options provided on the sabre/dav website here.
Maybe it is helpful for you, if you limit the export with the
start
and/orend
options. You have to use unix timestamps for this. Converters can be found easily via a google search.Here’s an example:
http://dav.example.org/calendars/user1/mycalendar?export&start=1391707119&end=1391707215
Maybe you just want to use the
start
option with today’s value. This would suffice for now I think… -
Hi,
Thanx for all the help. It looks like a short workshop Baikal :)
I dont know if i am on the right track. I want to automate it. That is that items in the calendar show up on the mirror.
Is’nt there a simple way ? ( Export to some ics file ?)Thanx!
Poekel -
@poekel I don’t know, if I understand this right. But the
?export
option already triggers a download for an.ics
file (with all calendar events). I’m using this on my mirror with baikal and it works fine… -
Hi,
The command works fine and i converted the time/datestamps. I think there is something wrong with the stamps, because
i get a file of 146 bytes whatever i do…
I have to play with it. :)
How do you keep the calendar up-to-date on the mirror ?
( my wife holds the calendars for all the family members so …) -
Hi,
How do you append the username and password ?
I think it works but it gives me a Authorization failed.Poekel
-
Beh,
I think i have got the right syntax to retrieve the ics files from baikal.
Can you explain how you did it on the mirror? -
I have read your workaround…
I am using Baikal on my synology.
i do NOT have this > https://dav.example.org/dav.php/calendars/[username]/Events?export folderhttp://192.168.1.xx/baikal/html/dav.php/calendars/xxxx/calendar-name?export&startdate=1488672000 (=example)
How do i get the record from Baikal in 1 file given a certain start-end date in a file from the command line.
If that works i can change the url in the MM2 config.js file and point to that created file
Please help … -
Hey @poekel
you have to use the keywordstart
instead ofstartdate
.
It’s described in thesabre/dav
documentation here: http://sabre.io/dav/ics-export-plugin/So your request should look like this:
http://192.168.1.xx/baikal/html/dav.php/calendars/xxxx/calendar-name?export&start=1488672000
You can use this URL in your MM2 config file. It returns a valid
.ics
file. I’m using this on my mirror too.And please note, that your
calendar-name
must be the internal name in Baikal (you can look this name up in the admin settings when you edit a calendar) -
Thanx for the link!.
It works, it creates a file with nothing more than this:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//SabreDAV//SabreDAV 3.1.3//EN
X-WR-CALNAME:XXXXXXXXXXXX
X-APPLE-CALENDAR-COLOR:#FF2968
END:VCALENDAR164 bytes
How do you handle the username and password that goes with the calendar in baikal?
Does the link in the config.js not ask for a username and password for the baikal calendar ? -
I will try a request with a
start
parameter when I’m home and test if it works with my Baikal server.For user credentials:
Just add
user
andpass
to your calendar config like this:config: { calendars: [ { url: 'http://192.168.1.xx/baikal/html/dav.php/calendars/xxxx/calendar-name?export&start=1488672000', symbol: 'calendar', user: 'USERNAME', pass: 'PASSWORD' }, ], }
Additionally, Baikal uses Digest authentication. To use this, you have to change the
sendImmediately
option in thecalendarfetcher.js
tofalse
. (As I already described above)The option is located here. The file is located in
MagicMirror/modules/default/calendar/calendarfetcher.js
In a future version of MM2, there will be an option for this directly in the config file so you don’t have to change this in
calendarfetcher.js
. I already submitted a pull request for that.