Author Topic: Plugin - IPhone Locator  (Read 270065 times)

Online rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1691
  • Karma: +93/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Plugin - IPhone Locator
« Reply #975 on: September 20, 2018, 11:42:22 am »
I am seeing this problem too. I am wondering if there is an alternative to the google map API.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Plugin - IPhone Locator
« Reply #976 on: September 20, 2018, 11:54:34 am »
I am seeing this problem too. I am wondering if there is an alternative to the google map API.
what problem ? the polling or the map ?
for the map v2.48 gives you the ability to enter your key. I am monitoring my own consumption and gave numbers in the PDF file, it is going to be "free" according to my forecast in my case
at this point I have no plan for another map & distance route api change ( esp with the support of the traffic aware mode ) but if somebody wants to contribute to the plugin, why not, I can integrate some proposed changes

Online rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1691
  • Karma: +93/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Plugin - IPhone Locator
« Reply #977 on: September 20, 2018, 03:23:13 pm »
The problem is the google quota exceeded for the time/distance and address measurement.
I have upgraded to v2.48 but not have not created a key for google map yet. Can you share your settings to keep it free?
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Plugin - IPhone Locator
« Reply #978 on: September 20, 2018, 05:14:15 pm »
The problem is the google quota exceeded for the time/distance and address measurement.
I have upgraded to v2.48 but not have not created a key for google map yet. Can you share your settings to keep it free?

Cf http://forum.micasaverde.com/index.php/topic,107473.0.html
It is in the pdf , toward the end.
You can also set max quotas in google console if you want to be sure

Online rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1691
  • Karma: +93/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Plugin - IPhone Locator
« Reply #979 on: September 20, 2018, 06:06:56 pm »
After looking at it closer, the API remains free for as long as we probe <40000 calls a month. This averages to about 1/min. I think it would be fairly easy to keep it free.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline cafri

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
Re: Plugin - IPhone Locator
« Reply #980 on: September 26, 2018, 02:10:17 am »
I am thinking of using the iPhone Locator plugin, but have a question first:

We are 4 family members with 4 iCloud accounts, defined as a family.

I know I can create 4 instances of the plugin, each will use a different iCloud account, and provide the location of the devices of that family member.

Is it possible, however, to use only 1 iCloud account, and be able to see the devices of all family members?
(When each family member family uses the "Find my iPhone" app, he can see the location of all devices of all family members)

The reason I want to use this approach is as a precaution, in case the iCloud credentials are being hacked.
This way, not all iCloud accounts data will be leaking, but only the data of the iCloud account I used for this plugin.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Plugin - IPhone Locator
« Reply #981 on: September 26, 2018, 02:24:05 am »
I am thinking of using the iPhone Locator plugin, but have a question first:

We are 4 family members with 4 iCloud accounts, defined as a family.

I know I can create 4 instances of the plugin, each will use a different iCloud account, and provide the location of the devices of that family member.

Is it possible, however, to use only 1 iCloud account, and be able to see the devices of all family members?
(When each family member family uses the "Find my iPhone" app, he can see the location of all devices of all family members)

The reason I want to use this approach is as a precaution, in case the iCloud credentials are being hacked.
This way, not all iCloud accounts data will be leaking, but only the data of the iCloud account I used for this plugin.

the api I am using does not report the location of family members. it must be some other internal apple apis that they  uses but since they are not documented I do not have a solution for this request, sorry

Offline cafri

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
Re: Plugin - IPhone Locator
« Reply #982 on: September 26, 2018, 02:42:20 am »
Thanks for the quick reply.

Can you please share some information about whether / how the iCloud credentials are being stored?
Are they stored locally on my controller? Somewhere else?
Are they stored in plane text? Hashed? Encrypted in some way?

Edit: I am aware of this, and the quote from the version log (below) but wanted to know if anything changed, or whether there is an ETA for the encryption.

Encryption of iCloud password is ready but I will enable it in a future version, just to seperate issues & concerns for testing this version
« Last Edit: September 26, 2018, 04:17:30 am by cafri »

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Plugin - IPhone Locator
« Reply #983 on: September 26, 2018, 06:05:05 pm »
Thanks for the quick reply.

Can you please share some information about whether / how the iCloud credentials are being stored?
Are they stored locally on my controller? Somewhere else?
Are they stored in plane text? Hashed? Encrypted in some way?

Edit: I am aware of this, and the quote from the version log (below) but wanted to know if anything changed, or whether there is an ETA for the encryption.

Encryption of iCloud password is ready but I will enable it in a future version, just to seperate issues & concerns for testing this version
This statement is a bit old :-) it did not work well, plus , being JavaScript there was no real strong way to guarantee proper protection,  so it is stored in a device variable, but encoded so that it is not readable directly. But it is not real encryption.

Offline sagos

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Plugin - IPhone Locator
« Reply #984 on: September 27, 2018, 02:14:24 am »
Hi. Help to connect the plugin. I did everything according to the instructions .Just not working.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Plugin - IPhone Locator
« Reply #985 on: September 28, 2018, 01:52:14 pm »
Hi. Help to connect the plugin. I did everything according to the instructions .Just not working.

Are you sure use and pwd is correct. Check it with a browser on a Mac pc connecting to iCloud web site.
Did you go to settings / iCloud and entered use pwd and refresh. Do you see your devices ?

Otherwise does your pwd contains special character

Finally enable debug mode , reload Luup wait a little and share the log file With me in private mode

Offline TinCup

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +2/-0
Re: Plugin - IPhone Locator
« Reply #986 on: October 13, 2018, 10:12:40 pm »
Hi amg0 ...

Just upgraded to 2.48 on UI5, added the Google API key and the plugin is working fine.  However, I can't seem to change any of the polling settings.  I make the change, tab away, and don't get the red save button or anything.  If I change anything in the Advanced settings, the save works but can't get any of the polling settings to change. 

Any thoughts?
Vera 3 UI5 | Homewave | Amazon Echo | BWS HA Bridge | PLEG/PLTS | OpenSprinkler | AD2USB | GE/Jasco | Schlage BE469 | Kwikset 912 | ecobee3 | SONOS + TTS | Aeotec 4-in-1 | EcoLink | Everspring ST812 | Remotec ZFM-80 | Evolve LRM-AS/LFM-20 | Hikvision DS-2CD2332 Turret | Dahua IPC-HFW4300S Bullet

Offline TinCup

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +2/-0
Re: Plugin - IPhone Locator
« Reply #987 on: October 13, 2018, 10:24:09 pm »
Hi amg0 ...

Just upgraded to 2.48 on UI5, added the Google API key and the plugin is working fine.  However, I can't seem to change any of the polling settings.  I make the change, tab away, and don't get the red save button or anything.  If I change anything in the Advanced settings, the save works but can't get any of the polling settings to change. 

Any thoughts?

Never mind ... fixed my problem after I saw the polling time was set in the Advanced Settings area.  All good now!
Vera 3 UI5 | Homewave | Amazon Echo | BWS HA Bridge | PLEG/PLTS | OpenSprinkler | AD2USB | GE/Jasco | Schlage BE469 | Kwikset 912 | ecobee3 | SONOS + TTS | Aeotec 4-in-1 | EcoLink | Everspring ST812 | Remotec ZFM-80 | Evolve LRM-AS/LFM-20 | Hikvision DS-2CD2332 Turret | Dahua IPC-HFW4300S Bullet

Offline tamorgen

  • Full Member
  • ***
  • Posts: 119
  • Karma: +2/-0
Re: Plugin - IPhone Locator
« Reply #988 on: December 19, 2018, 01:14:35 pm »
Amg0,
I really appreciate your plugin.  I had used it several years ago until Vera "fixed" their Geofencing.   Well, their Geofencing isn't fixed, and I've gone back and forth with them over a year and it still doesn't work reliably, so I'm going back to iPhoneLocator, which I rarely had problems with.

The one issue I had before, was that I had created a PLEG to change the status of my Home Mode and alarm system for when I left the home.  This was great 99% of the time.  Where we ran into problems is when we had guests staying, and all the tagged iPhones were away from the house.  It would shut everything down like it was supposed to, but left the home alarm armed and lights out, and the thermostat in Eco mode.

I've come up with a way to fix that, but I'm wondering if there might be a better way:

I installed the Virtual Switch app, which, is just a binary switch that can be used as a trigger
Using PLEG, I created a trigger based upon the VirtualSwitch.  I then created two conditions, 1 for the virtual switch being on (Guest at home), one for it being off (No Guests).  The action I came up with was to SetPresent to one or both of the iPhoneLocators (mine, and my wife's) to 1, when Guest is at home, then 0 when No guests.  The only potential wrinkle I see is that if one of is turning off the guest status, it will mark us as not home, changing the home state, until the polling state locates our location again.  This could potentially turn off all of our lights after we get home from a date night and the baby sitter leaves.

Any comments or ideas?

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1443
  • Karma: +39/-36
Re: Plugin - IPhone Locator
« Reply #989 on: December 19, 2018, 09:28:27 pm »
I have an occasional guest and I have thought of using a virtual switch. But there are times the guest leaves and I would hate for Vera not to go to Away mode. I wanted to add this guest to Vera as another iPhone but the person claims to not remember their iCloud credentials. I have tried the Ping Sensor plug-in but Vera cycles the device in and out based upon the IP address disappearing when the phone goes idle. What I settled on is knowing the person's schedule, roughly, and when I get a notification the garage door has opened, I check the cameras and manually set mode to Away. And when the person  returns and I get motion notifications, I check the cameras and place Vera back to Home mode. That was for a week or two. If longer than that, I will have to rethink this.
Vera 3, 1.7.1030, CT101, Everspring motion sensor, GE/Jasco switch, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, Weatherunderground, LB60Z-1 bulb, Hue, Alexa