one more remark. If Daniel's tool does not work for you or if you don't want to use it you also can assemble the URL by yourself if you have a Mac. The URL has to follow this scheme:
you find the id's by crawling thorough the directories and files in your /Users/<youruser>/Library/Calendars/...
The servername prefix (e.g. p01-) seems no to be important. It even can be omitted.
After all you find on the web is only half the truth, here's the real deal:
(that much is true (iWolfgang - thanks!))
Find out which of the xxx.caldav-Folders it the one of your iCloud-calendar (if you have multiple calendars like me):
The contained "Info.plist"-file should contain something like this:
(if it contains something like "group.calendar.google.com" you're in the wrong folder ;-) )
Found the right folder? Fine!
So this is the URL to start (not ready yet!):
(The "X" should be a number, and "1234567890" should be some different ID (your ID))
Now check the sub-folders of the main-folder you found. Open the "Info.plist"-file again. You will find something like this:
(Example for your "work" folder)
Combine the infos you found to this URL:
This is the URL you got to use with Lightning (New calendar -> network -> choose "CalDAV" / address: see above)!
your instruction works excellent. Thank you very much. I was able to setup my iCould calendars working with Lightning in minutes. I am lucky as I have MAC and use with iCould .... but friend of my owns only iPhone and PC. Any method of browsing calendar files on iPhone directly or from a Windows PC?
I don't know about iCloud on Windows, but I would first search my home-directory for a file containing "PrincipalURL" or "CalendarPath".
If this doesn't work there is a way to at least find out your "p0X"-Server and ID:
Use Safari and surf to the icloud.com Website. Log in and browse to the calendar. Now check the activity-window to find out about the URLs you are surfing.
You will find something like this:
(maybe you got to open the "https://www.icloud.com/applications/calendar/en-us/"-folder to find this link)
Once again you got to copy the "p0X"- and user-info to the target-URL:
Don't know how to find out about the calendar-name this way. Default for work is "work", default for home is "home"...
With this said: Tell your friend to buy a Mac.
I was rather thinking about browsing (e.g. searching for PrincipalURL match) iPhone files using Windows (iTunes-like) application (what I am not aware of :-;) instead of fighting with Windows PC local environment. Then one may use iCloud on iPhone and synchronized Lightning on any other system (Windows, Linux, etc)
thanks for your answers so far. Thanks to Stephan we are pretty close to the solution.
I was able to create the (probably) correct calendar URL by using the Safari activities way.
When using https://p0X-caldav.icloud.com/1234567890/calendars/#name#/ make sure to replace the "p0X" by the number you see in the activities windows (e.g. "p06"). As "#name" just use the name you gave to the respective calendar (e.g. "home", "work", "birthdays"). Case sensitivity is crucial at this point.
With this I get Lightning to even ask me about my AppleID and password (you might have to restart TB). Unfortunately that's the end of the line so far. No data is imported and lightning marks the calendars as "currently not available".
Any more ideas?