Find My iPhone implementation in LUA script

Moderator: leecollings

Irmin
Posts: 6
Joined: Friday 03 August 2018 16:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post 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.
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Find My iPhone implementation in LUA script

Post 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.
landaisbenj
Posts: 147
Joined: Wednesday 02 August 2017 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: France
Contact:

Re: Find My iPhone implementation in LUA script

Post by landaisbenj »

I try tomorrow or in 1 week
Platforme: Rpbi3b
Domoticz: Last stable
Bridge: RFLINK last stable
JohnBoy32
Posts: 16
Joined: Friday 04 March 2016 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post 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!
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Find My iPhone implementation in LUA script

Post by Egregius »

This is the php script I use, the solution is mentioned in this issue https://github.com/albeebe/PHP-FindMyiPhone/issues/16
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Find My iPhone implementation in LUA script

Post by Nautilus »

I changed to pyicloud (https://github.com/picklepete/pyicloud), a lot of additional functionalities implemented in this library...:)
Irmin
Posts: 6
Joined: Friday 03 August 2018 16:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post by Irmin »

I still do not have it working, can some help? :)
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Find My iPhone implementation in LUA script

Post by MarceldeJongNL »

I just added -k to every curl statement in the lua, and it works again
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Irmin
Posts: 6
Joined: Friday 03 August 2018 16:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post 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! :)
Hempie
Posts: 11
Joined: Wednesday 15 November 2017 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Aalsmeer
Contact:

Re: Find My iPhone implementation in LUA script

Post by Hempie »

Were in the line(s) will i add this -k :oops:
RFXTRX433E, Aeon Z-Stick Gen 5, Harmony Hub, Nefit Easy, Homebridge, Somfy RTS, Fibaro
landaisbenj
Posts: 147
Joined: Wednesday 02 August 2017 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: France
Contact:

Re: Find My iPhone implementation in LUA script

Post 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
Platforme: Rpbi3b
Domoticz: Last stable
Bridge: RFLINK last stable
Hempie
Posts: 11
Joined: Wednesday 15 November 2017 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Aalsmeer
Contact:

Re: Find My iPhone implementation in LUA script

Post by Hempie »

Thank You... 8-)
RFXTRX433E, Aeon Z-Stick Gen 5, Harmony Hub, Nefit Easy, Homebridge, Somfy RTS, Fibaro
niwreg
Posts: 25
Joined: Thursday 19 February 2015 11:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post 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
ropske
Posts: 483
Joined: Tuesday 12 August 2014 5:37
Target OS: Raspberry Pi / ODroid
Domoticz version: V3_8394
Location: Rumbeke,Belgium
Contact:

Re: Find My iPhone implementation in LUA script

Post by ropske »

is this still working for you guys?
Mine is not updated anymore for a month
Hempie
Posts: 11
Joined: Wednesday 15 November 2017 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Aalsmeer
Contact:

Re: Find My iPhone implementation in LUA script

Post by Hempie »

Mine also not working, any other script that will do the job?
RFXTRX433E, Aeon Z-Stick Gen 5, Harmony Hub, Nefit Easy, Homebridge, Somfy RTS, Fibaro
Superpjeter
Posts: 11
Joined: Wednesday 29 August 2018 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post by Superpjeter »

Mine works like a charm
Hempie
Posts: 11
Joined: Wednesday 15 November 2017 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Aalsmeer
Contact:

Re: Find My iPhone implementation in LUA script

Post 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:
RFXTRX433E, Aeon Z-Stick Gen 5, Harmony Hub, Nefit Easy, Homebridge, Somfy RTS, Fibaro
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Find My iPhone implementation in LUA script

Post 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 :)
Superpjeter
Posts: 11
Joined: Wednesday 29 August 2018 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post 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
Marcvdp
Posts: 3
Joined: Sunday 03 September 2017 11:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Find My iPhone implementation in LUA script

Post by Marcvdp »

I’m also interested in your script! Thank you in advance for sharing!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests