Find My iDevices! (April 2013+)

Posted on
Wed Apr 03, 2013 1:15 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Find My iDevices! (April 2013+)

Folks,

The Find My iDevices forum has grown too large, so I have decided to lock the old forum, and open a new one.

Please post any Find My iDevices! comments here, until I need to lock and rotate this Forum.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Apr 03, 2013 2:22 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find My iDevices! (April 2013+)

Hi Ben.

Yea, that other thread was getting pretty long.

I hope you don't mind me continuing the FMID discussion from that thread. I can always take it to a private message if you prefer.

I installed the 1.713 plugin and updated IWS plugin. The IWS plugin page now shows my iOS device information, but the Google map doesn't appear at all. There are now 2 errors shown in the Safari inspector.

  1. "Semantic Issue: Unexpected EOF." This error is on line 11 of the HTML source code which is
    Code: Select all
    var Nathan's_Work_Locationlocation = new google.maps.LatLng(36.<obscured for privacy>, -119.<obscured for privacy>);
    I'm thinking the unescaped apostrophe taken from my location device's name is causing that error. (I replaced the exact coordinates with "<obscured for privacy>" when posting this message).

  2. "Reference Issue: Can't find variable: initialize." This is the same error as before, found on line 214 of the web page HTML source code which shows
    Code: Select all
    <body style="margin:5px; padding:0px;" onload="initialize()">

Nathan

Posted on
Wed Apr 03, 2013 2:33 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find My iDevices! (April 2013+)

Hi Ben,
Just curious if the last update was supposed to fix the manual trigger for an iDevice update?

Posted on
Wed Apr 03, 2013 5:16 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

Dewster35 wrote:
Hi Ben,
Just curious if the last update was supposed to fix the manual trigger for an iDevice update?


This update should only deal with Indigo v6 functionality... So, no other changes have been added.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Apr 03, 2013 5:17 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

nsheldon wrote:
Hi Ben.

Yea, that other thread was getting pretty long.

I hope you don't mind me continuing the FMID discussion from that thread. I can always take it to a private message if you prefer.

I installed the 1.713 plugin and updated IWS plugin. The IWS plugin page now shows my iOS device information, but the Google map doesn't appear at all. There are now 2 errors shown in the Safari inspector.

  1. "Semantic Issue: Unexpected EOF." This error is on line 11 of the HTML source code which is
    Code: Select all
    var Nathan's_Work_Locationlocation = new google.maps.LatLng(36.<obscured for privacy>, -119.<obscured for privacy>);
    I'm thinking the unescaped apostrophe taken from my location device's name is causing that error. (I replaced the exact coordinates with "<obscured for privacy>" when posting this message).

  2. "Reference Issue: Can't find variable: initialize." This is the same error as before, found on line 214 of the web page HTML source code which shows
    Code: Select all
    <body style="margin:5px; padding:0px;" onload="initialize()">


It's possible that the unescaped quote is breaking the javascript.

Send me an email directly @ benjamin AT schollnick DOT net, and I'll send you a test version that will strip the quote(s) out of the location.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu Apr 04, 2013 1:23 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find My iDevices! (April 2013+)

Direct email sent. :-)

Posted on
Thu Apr 04, 2013 11:30 am
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: Find My iDevices! (April 2013+)

I'm not sure this addressed the n-1 problem and after having spent countless hours tracing through Ben's code, it seemed to me that it's an FMID issue rather than the plugin.
I ran a test case with the new version and got the following. You can see it always reports location[n-1].
Apr 4, 2013 10:21:12 AM
Starting Indigo Server version 6.0.0 b3
Loading attachments
"device target attachment.scpt" script loaded
"group target attachment.scpt" script loaded
"growl attachment.scpt" script loaded
"iTunes attachment.scpt" script loaded
"scenes attachment.scpt" script loaded
"time stamp attachment.scpt" script loaded
Loading plugin "Action Collection 1.3.0"
Starting plugin "Action Collection 1.3.0" (pid 5641)
Loading plugin "Airfoil 1.0.5"
Starting plugin "Airfoil 1.0.5" (pid 5642)
Loading plugin "Find My IDevices 1.713"
Starting plugin "Find My IDevices 1.713" (pid 5643)
Loading plugin "Group Trigger 0.9.15"
Starting plugin "Group Trigger 0.9.15" (pid 5644)
Loading plugin "Thermostat Enhancement Add-On 1.11"
Starting plugin "Thermostat Enhancement Add-On 1.11" (pid 5645)
Found disabled interface "INSTEON Commands 2.0.1"
Found disabled interface "Z-Wave 1.0.15"
Found disabled plugin "Device Collection 1.0.1"
Found disabled plugin "DIRECTV DVR Control 1.0.0"
Found disabled plugin "EasyDAQ Relay Card 1.0.12"
Found disabled plugin "Growl 1.0.5"
Found disabled plugin "iCal Alarm Processor 1.0.3"
Found disabled plugin "iTunes 1.0.15"
Found disabled plugin "NOAA Weather 1.0.1"
Found disabled plugin "SQL Logger 1.1.5"
Found disabled plugin "Timers and Pesters 1.0.0"
Found disabled plugin "Weather Conditions 0.98"
Found disabled plugin "WeatherSnoop 1.1.1"
Bonjour registered "Indigo - My House 1"
Indigo Cocoa client connected
Group Trigger Meta Triggers Plugin Initialized

Started plugin "Thermostat Enhancement Add-On 1.11"
Started plugin "Airfoil 1.0.5"
Started plugin "Group Trigger 0.9.15"
Group Trigger Plugin startup.
Started plugin "Action Collection 1.3.0"
WebServer client connected
WebServer started on port 8176 -- authentication disabled
WebServer loaded plugin "Find My iDevices"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/css"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/images"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/js"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/static"
Group Trigger Your plugin version, v0.9.15, is current
Find My IDevices Debug Version Check Server reports 1.30 is available for Find My IDevices.
Find My IDevices Debug You are currently running the release version, or a newer version, of Find My IDevices
Find My IDevices Debug Version Check Server reports 1.41 is available for the Find My iPhone Engine.
Find My IDevices Debug FMID 1.41
Find My IDevices Debug FMID loaded 1.41
Find My IDevices Debug You are currently running the release version, or a newer version, of the Find My iPhone Engine
Started plugin "Find My IDevices 1.713"
Find My IDevices Find My iDevice Plugin Loaded...
Find My IDevices Debug UpdateTime - 10080
Find My IDevices Debug Debug Mode is On (Only recommended for Testing Purposes)
Find My IDevices Debug Apple ID Login Information - [Username - XXX@me.com, Password - XXX!]
Find My IDevices Done registering Apple ID
Find My IDevices Registering Find My iDevice - iPhone - Alan (1817110696)
Find My IDevices Debug Registering Find My iDevice - iPhone - Alan (1817110696)
Find My IDevices Done registering Device ID
Find My IDevices Debug # 1 - Device Name - Alan's 5 UID - QVBTOjMzOGZkZTY4ODE4ZWNlNmFmZDljZDhmYTFkNGQ0MGNiZGJjZTIzYWY~ Account - XXX@me.com
Find My IDevices Debug Running Concurrent Thread
Find My IDevices Retrieving location data
Find My IDevices Debug Logging into Find My iPhone with Apple ID Account (XXX@me.com)
Group Trigger Meta Triggers Plugin Initialized

Started plugin "Thermostat Enhancement Add-On 1.11"
Started plugin "Airfoil 1.0.5"
Started plugin "Group Trigger 0.9.15"
Group Trigger Plugin startup.
Started plugin "Action Collection 1.3.0"
WebServer client connected
WebServer started on port 8176 -- authentication disabled
WebServer loaded plugin "Find My iDevices"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/css"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/images"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/js"
WebServer enabled browser access to plugin path "plugins/Find-My-iDevices/static"
Group Trigger Your plugin version, v0.9.15, is current
Find My IDevices Debug Version Check Server reports 1.30 is available for Find My IDevices.
Find My IDevices Debug You are currently running the release version, or a newer version, of Find My IDevices
Find My IDevices Debug Version Check Server reports 1.41 is available for the Find My iPhone Engine.
Find My IDevices Debug FMID 1.41
Find My IDevices Debug FMID loaded 1.41
Find My IDevices Debug You are currently running the release version, or a newer version, of the Find My iPhone Engine
Started plugin "Find My IDevices 1.713"
Find My IDevices Find My iDevice Plugin Loaded...
Find My IDevices Debug UpdateTime - 10080
Find My IDevices Debug Debug Mode is On (Only recommended for Testing Purposes)
Find My IDevices Debug Apple ID Login Information - [Username - XXX, Password - XXX!]
Find My IDevices Done registering Apple ID
Find My IDevices Registering Find My iDevice - iPhone - Alan (1817110696)
Find My IDevices Debug Registering Find My iDevice - iPhone - Alan (1817110696)
Find My IDevices Done registering Device ID
Find My IDevices Debug # 1 - Device Name - Alan's 5 UID - QVBTOjMzOGZkZTY4ODE4ZWNlNmFmZDljZDhmYTFkNGQ0MGNiZGJjZTIzYWY~ Account - XXX@me.com
Find My IDevices Debug Running Concurrent Thread
Find My IDevices Retrieving location data
Find My IDevices Debug Logging into Find My iPhone with Apple ID Account (XXX@me.com)
Find My IDevices Locating - iPhone - Alan, (Alan's 5)
Find My IDevices running with (1, 300) and None
Find My IDevices location: {'latitude': 37.838189075736167, 'timestamp': datetime.datetime(2013, 4, 4, 10, 5, 27), 'longitude': -121.9492539671454, 'accuracy': 10.0}
Find My IDevices Debug Location - {'latitude': 37.838189075736167, 'timestamp': datetime.datetime(2013, 4, 4, 10, 5, 27), 'longitude': -121.9492539671454, 'accuracy': 10.0}
Trigger FMiD DeviceState->Variable DistanceAway Alan
Find My IDevices Done locating - iPhone - Alan
Find My IDevices Done Locating all iDevices
Find My IDevices Debug Sleep Time - Thu Apr 4 10:21:16 2013

Apr 4, 2013 10:25:00 AM
Schedule Get Locations
Find My IDevices Manual iDevice Update Requested (from Trigger)
Find My IDevices Retrieving location data
Find My IDevices Debug Logging into Find My iPhone with Apple ID Account (XXX@me.com)
Find My IDevices Locating - iPhone - Alan, (Alan's 5)
Find My IDevices running with (1, 300) and None
Find My IDevices location: {'latitude': 37.838150896167228, 'timestamp': datetime.datetime(2013, 4, 4, 10, 21, 18), 'longitude': -121.949115581924, 'accuracy': 10.0}
Find My IDevices Debug Location - {'latitude': 37.838150896167228, 'timestamp': datetime.datetime(2013, 4, 4, 10, 21, 18), 'longitude': -121.949115581924, 'accuracy': 10.0}
Trigger FMiD DeviceState->Variable DistanceAway Alan
Find My IDevices Done locating - iPhone - Alan
Find My IDevices Done Locating all iDevices

Posted on
Thu Apr 04, 2013 11:35 am
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: Find My iDevices! (April 2013+)

I should have added, that I worked around the [n-1] issue by simply doing back-to-back "update iDevice Status" actions. You can experiment with the delay needed between them as it depends on how many FMID devices you have.

Posted on
Fri Apr 12, 2013 10:03 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

I apologize about the delay, but this should fix the issue with the Javascript error.

https://dl.dropboxusercontent.com/u/241 ... v1.714.zip

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Apr 16, 2013 3:17 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find My iDevices! (April 2013+)

New version seems to work great. Thanks Ben!

Posted on
Wed May 01, 2013 11:47 pm
marcinzk offline
Posts: 11
Joined: Mar 09, 2012

Re: Find My iDevices! (April 2013+)

Let me preface this by saying I'm no expert at Indigo or programing. I've run into an error trying to add my iPhone devices in Indigo 6b7 that I can't figure out for the life of me. I setup the login info for my account, then when I go to add the devices Indigo becomes very sluggish and I receive the following errors:

WebServer Displaying Find My iDevices Web Page
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.FindMyiDevices for request CalcDeviceFunc
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.FindMyiDevices for request UiGetValues2
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.FindMyiDevices for request CallPluginFunc
Error (client) runDialogForDevice() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

This is way over my head so any help would be much appreciated.

Posted on
Thu May 02, 2013 10:23 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

marcinzk wrote:
Let me preface this by saying I'm no expert at Indigo or programing. I've run into an error trying to add my iPhone devices in Indigo 6b7 that I can't figure out for the life of me. I setup the login info for my account, then when I go to add the devices Indigo becomes very sluggish and I receive the following errors:


Okay. The log message doesn't help, but I want to ensure that your using the latest version of Find My iDevices, are you running v1.714? https://dl.dropboxusercontent.com/u/241 ... v1.714.zip

I just updated the master list of plugins in the forum.

Delete all the Find my idevice devices that you have added, and restart the plugin. Do you have any errors?

If you don't have any errors, Add in an AppleID Login device.

Do you have any errors there? If so, what information did you add to your AppleID Login device?

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu May 02, 2013 7:16 pm
marcinzk offline
Posts: 11
Joined: Mar 09, 2012

Re: Find My iDevices! (April 2013+)

bschollnick2 wrote:
marcinzk wrote:
Let me preface this by saying I'm no expert at Indigo or programing. I've run into an error trying to add my iPhone devices in Indigo 6b7 that I can't figure out for the life of me. I setup the login info for my account, then when I go to add the devices Indigo becomes very sluggish and I receive the following errors:


Okay. The log message doesn't help, but I want to ensure that your using the latest version of Find My iDevices, are you running v1.714? https://dl.dropboxusercontent.com/u/241 ... v1.714.zip

I just updated the master list of plugins in the forum.

Delete all the Find my idevice devices that you have added, and restart the plugin. Do you have any errors?

If you don't have any errors, Add in an AppleID Login device.

Do you have any errors there? If so, what information did you add to your AppleID Login device?

- Ben


Tried to get this up and running but still no luck. I deleted all the iDevice devices, created a new AppleID Login Device and the received the following errors:

May 2, 2013 8:14:00 PM
Find My IDevices Done registering Apple ID
Find My IDevices Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "plugin.py", line 444, in deviceUpdated
File "plugin.py", line 431, in deviceStartComm
File "plugin.py", line 384, in update_AppleID_and_GeoTriggers
File "plugin.py", line 466, in Return_device_by_Apple_UID
<type 'exceptions.KeyError'>: key id 1367257942 not found in database

Find My IDevices Done registering Apple ID
Find My IDevices Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "plugin.py", line 444, in deviceUpdated
File "plugin.py", line 431, in deviceStartComm
File "plugin.py", line 384, in update_AppleID_and_GeoTriggers
File "plugin.py", line 466, in Return_device_by_Apple_UID
<type 'exceptions.KeyError'>: key id 1367257942 not found in database


Deleted the AppleID Login and then restarted again. This time I managed to add a new AppleID Login, however, when I went to add an iDevice Registration I get the following errors:

Find My IDevices Registering Find My iDevice - new device 1 (1721149133)
Find My IDevices Done registering Device ID
Find My IDevices Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "plugin.py", line 444, in deviceUpdated
File "plugin.py", line 431, in deviceStartComm
File "plugin.py", line 384, in update_AppleID_and_GeoTriggers
File "plugin.py", line 466, in Return_device_by_Apple_UID
<type 'exceptions.KeyError'>: key com.schollnick.indigoplugin.FindMyiDevices not found in dict

Find My IDevices Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 527, in Return_List_of_iDevices_from_Apple_IDS_for_entry_screen
<type 'exceptions.KeyError'>: key AppleID not found in dict



I'm not sure what I'm doing wrong :cry:

Posted on
Fri May 03, 2013 6:26 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

marcinzk wrote:
Deleted the AppleID Login and then restarted again. This time I managed to add a new AppleID Login, however, when I went to add an iDevice Registration I get the following errors:

Find My IDevices Registering Find My iDevice - new device 1 (1721149133)
Find My IDevices Done registering Device ID
Find My IDevices Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "plugin.py", line 444, in deviceUpdated
File "plugin.py", line 431, in deviceStartComm
File "plugin.py", line 384, in update_AppleID_and_GeoTriggers
File "plugin.py", line 466, in Return_device_by_Apple_UID
<type 'exceptions.KeyError'>: key com.schollnick.indigoplugin.FindMyiDevices not found in dict

Find My IDevices Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 527, in Return_List_of_iDevices_from_Apple_IDS_for_entry_screen
<type 'exceptions.KeyError'>: key AppleID not found in dict



I'm not sure what I'm doing wrong :cry:


It maybe that you've run into an issue with Indigo v6 and Find My iDevices. I have done some basic changes to FMID to allow it to work in v6, but I have not completely certified it to work in v6.

I will try to take a look and see if I can figure out what is happening this weekend.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon May 13, 2013 3:07 pm
marcinzk offline
Posts: 11
Joined: Mar 09, 2012

Re: Find My iDevices! (April 2013+)

bschollnick2 wrote:

It maybe that you've run into an issue with Indigo v6 and Find My iDevices. I have done some basic changes to FMID to allow it to work in v6, but I have not completely certified it to work in v6.

I will try to take a look and see if I can figure out what is happening this weekend.

- Ben


I'm glad to hear that at least I wasn't doing something wrong! I appreciate you looking into this!

Who is online

Users browsing this forum: No registered users and 2 guests