muhlba91/icloud-caldav-urls

Can we use this in windows?

Closed this issue · 9 comments

I'm using an iPhone, and wanna sync the calendar to my desktop which uses windows instead. May i ask do I have to use Mac to use you script or what?

It is a PHP script. You can run it on Windows/Mac OS/Linux. @tyluckyma

Hi,

if you have Java installed, you can download the GUI version (https://github.com/muhlba91/icloud/raw/master/groovy_java/cmdline-2.1.0.zip) and execute the batch script inside the 'bin' folder. Or if you prefer the PHP version, you can run it through a XAMPP (https://www.apachefriends.org/index.html) instance, for example. ;)

Hope this helps,
Daniel

Yeah, I've tried both. But met the following problem. For the xampp I met:
default

For the command line verison, I met:
default

Any idea? @muhlba91 @saqibomer

I've tried to uncomment the "curl" in php.ini, but found the following problem:

default

It seems like the following code has some problem:
$principal_url=$response->response[0]->propstat[0]->prop[0]->{'current-user-principal'}->href;

Hi,

re the Java cmdline issue: hat Java version are you running? :)
Because those zipped versions are compiled using Java 8, meaning if you want to run them with Java 7 or earlier you could get exactly this error. In case you are using, for example, Java 7 and don't want to upgrade the easiest solution is simply:

Awesome!!

Thanks for the reply. Upgrade Java to the latest version, and get the URL!!!

Already stared!

Hi,

that sounds perfect! Happy to hear that... :)

(btw, I'm closing this issue now, in fact)

May I ask is this url do not support writing? I've tried add new events/tasks in my windows calendar (rainlendar), but it is not synced in my phone. Any idea?

Hi,

they should support writing - at least they did till some time ago but who knows what Apple changes in the CalDAV standard. ^^
However, I am quite certain that they should adhere to the standardised way of writing events - can you try it with a different application (e.g. Sunbird) to check whether your used application does not send all the required information to the Apple CalDAV server? :)