Page 13 of 14

Re: Find My iPhone implementation in LUA script

Posted: Friday 03 August 2018 19:54
by Irmin
I tried it with a script with just the curl and the output just gives a nil. 1 thing I noticed that I dont even get a error if I use wrong username or password.

If you can make a script whenever you have time please do so.

Re: Find My iPhone implementation in LUA script

Posted: Friday 03 August 2018 21:28
by Egregius
Apple changed something in their ssl. I had to add a option to disable the ssl check to get it working again in my php script.

Re: Find My iPhone implementation in LUA script

Posted: Friday 03 August 2018 23:43
by landaisbenj
I try tomorrow or in 1 week

Re: Find My iPhone implementation in LUA script

Posted: Saturday 04 August 2018 21:03
by JohnBoy32
Egregius wrote: Friday 03 August 2018 21:28 Apple changed something in their ssl. I had to add a option to disable the ssl check to get it working again in my php script.
Hi Egregius,

Can you give me a clue how to disable the SSL-check in the PHP script?

And on me search for a solution I walked into this solution for java: https://community.openhab.org/t/icloud- ... blem/48314
Maybe it's an option to add the certificate instead of disabling the SSL-check? What is your opinion on this? And do you foresee this is possible for our application?

Thanks in advance for your help!

Re: Find My iPhone implementation in LUA script

Posted: Saturday 04 August 2018 21:55
by Egregius
This is the php script I use, the solution is mentioned in this issue https://github.com/albeebe/PHP-FindMyiPhone/issues/16

Re: Find My iPhone implementation in LUA script

Posted: Sunday 05 August 2018 0:11
by Nautilus
I changed to pyicloud (https://github.com/picklepete/pyicloud), a lot of additional functionalities implemented in this library...:)

Re: Find My iPhone implementation in LUA script

Posted: Friday 10 August 2018 0:37
by Irmin
I still do not have it working, can some help? :)

Re: Find My iPhone implementation in LUA script

Posted: Friday 10 August 2018 8:34
by MarceldeJongNL
I just added -k to every curl statement in the lua, and it works again

Re: Find My iPhone implementation in LUA script

Posted: Friday 10 August 2018 9:07
by Irmin
MarceldeJongNL wrote: Friday 10 August 2018 8:34 I just added -k to every curl statement in the lua, and it works again
That did the trick, thanks! :)

Re: Find My iPhone implementation in LUA script

Posted: Tuesday 04 September 2018 21:27
by Hempie
Were in the line(s) will i add this -k :oops:

Re: Find My iPhone implementation in LUA script

Posted: Thursday 06 September 2018 13:15
by landaisbenj
Hempie wrote: Tuesday 04 September 2018 21:27 Were in the line(s) will i add this -k :oops:

Code: Select all

stage1command = "curl -sk -X POST
stage2command = "curl -sk -X POST

Re: Find My iPhone implementation in LUA script

Posted: Saturday 08 September 2018 9:12
by Hempie
Thank You... 8-)

Re: Find My iPhone implementation in LUA script

Posted: Saturday 22 September 2018 22:16
by niwreg
Anyway in this thread
https://community.openhab.org/t/icloud- ... m/48314/28

they extract the key and signed the certificate with the apple root CA

So if we use that as trusted CA (maybe trick Curl into to that) the ssl should work again

Re: Find My iPhone implementation in LUA script

Posted: Thursday 01 November 2018 17:40
by ropske
is this still working for you guys?
Mine is not updated anymore for a month

Re: Find My iPhone implementation in LUA script

Posted: Saturday 22 December 2018 16:35
by Hempie
Mine also not working, any other script that will do the job?

Re: Find My iPhone implementation in LUA script

Posted: Sunday 23 December 2018 11:24
by Superpjeter
Mine works like a charm

Re: Find My iPhone implementation in LUA script

Posted: Tuesday 25 December 2018 16:24
by Hempie
Superpjeter wrote: Sunday 23 December 2018 11:24 Mine works like a charm
Do u mind sharing your script? (without your credentials ofcourse) :lol:

Re: Find My iPhone implementation in LUA script

Posted: Tuesday 25 December 2018 21:24
by krizzz
Hempie wrote: Tuesday 25 December 2018 16:24
Superpjeter wrote: Sunday 23 December 2018 11:24 Mine works like a charm
Do u mind sharing your script? (without your credentials ofcourse) :lol:
I am curious also :)

Re: Find My iPhone implementation in LUA script

Posted: Wednesday 26 December 2018 17:26
by Superpjeter
I only skipped the google maps position name because that is not working anymore
Still interested in the script, just let me know

Re: Find My iPhone implementation in LUA script

Posted: Thursday 27 December 2018 10:52
by Marcvdp
I’m also interested in your script! Thank you in advance for sharing!