in reply to Using Perl to add entries in iCal Calendar
See also same for HTTP::DAV -> dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Perl to add entries in iCal Calendar (cpan secrets)
by hoschi (Initiate) on May 01, 2014 at 13:46 UTC | |
Thanks for your reply. I played around with the sniplets I could find there but I am afraid Cal::DAV is not working for me here asnew <args> Must have at least user, pass and url args where url is the url of a remote, DAV accessible .ics file. The Baikal server stores everything in a mysql database. I can connect with my iPad to the baikal server and update stuff in the 2 calendars I created there. I don't see a way with the modules in question to connect w/o having an ics file ? edit: Checking the mysql database for baikal server it shows the following in "calendarobjects" table: where calendarid 2 reflects the "testshift" calendar. It also shows an *.ics is there but this one can not be found in filesystem. Seems the server sends the "fake ics" to the client somehow, so maybe there is a chance for Cal::DAV .. but I'm lost again. "My" google doesnt know much about perl and baikal :-/ | [reply] [d/l] |
by Anonymous Monk on May 02, 2014 at 08:40 UTC | |
I don't see a way with the modules in question to connect w/o having an ics file ? Um, but I thought you already connected, you gave it a url, thats all you had to do to make a connection, the url is the file, it doesn't matter how the webserver stores it on the webserver, the url is what you're getting/editing/updating... Try this next print Dumper( $cal->cal ); this should fetch the calendar from the webserver, so you can read it update program for you
Then to add entries call add_entries ... to figure out what you need add print Dumper( make_entry() ); to Cal-DAV-0.6/t/01basics.t and examine the output (show me) Also try dave , CalDav is just WebDav which is just HTTP get :)
This should download the testshift database and save it in -tmpdir (or cwd) | [reply] [d/l] [select] |
by hoschi (Initiate) on May 12, 2014 at 17:56 UTC | |
Also with my script I dumped the complete stuff and found the following errors: and So there is any issue with not authenticating (properly) or proper handling as put does not seem to be allowed there. For whatever reason. I never dealt with caldav before, but i dont see any problems in the baikal setup itself. I connected my iPad to this and could update entries. Seems not to be an perl script issue, its more like the interaction between "cal" modules and the baikal server. The dave-Part was also not successfull: There are no *.ics files stored, its somehow virtual. As I am out of ideas I think i try another caldav server and see how this works out. | [reply] [d/l] [select] |