Find my iDevices!

Posted on
Mon Dec 17, 2012 6:16 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find my iDevices!

And another... 'cause I know you love these. :-)

Code: Select all
2012-12-17 14:41:50   Find My IDevices      Retrieving location data
2012-12-17 14:41:51   Find My IDevices   Locating - ePhone, (ePhone)
2012-12-17 14:41:51   Find My IDevices   running with (2, 300) and None
2012-12-17 14:41:51   Find My IDevices   location: {'latitude': 36.xxxxxxxxxxxxxxx, 'timestamp': datetime.datetime(2012, 12, 17, 14, 12, 58), 'longitude': -119.xxxxxxxxxxxxxx, 'accuracy': 5.0}
2012-12-17 14:41:52   Find My IDevices         Done locating - ePhone
2012-12-17 14:43:09   Find My IDevices Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
 File "plugin.py", line 948, in runConcurrentThread
 File "plugin.py", line 847, in run_search_for_idevices
 File "plugin.py", line 693, in fetch_updated_MobileMe_Locations
 File "plugin.py", line 566, in login_to_FindMyiPhone
<type 'exceptions.NameError'>: global name 'urllib2' is not defined

2012-12-17 14:43:09   Find My IDevices Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Still running 1.71 on Indigo 6.0b3.

Posted on
Tue Dec 18, 2012 8:34 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find my iDevices!

Benjamin,

Playing around with FMID trying to get my wife's account setup as well and I have been running into this occasionally:

Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.FindMyiDevices for request CallPluginFunc

I'm running 5.1.7 of Indigo and 10.8.2 on my mac.

This error occurs once I've created the indigo device, chosen the idevice I want to track, and then I go back into the device to edit it.

Posted on
Tue Dec 18, 2012 10:17 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

nsheldon wrote:
And another... 'cause I know you love these. :-)

Code: Select all
2012-12-17 14:41:50   Find My IDevices      Retrieving location data
2012-12-17 14:41:51   Find My IDevices   Locating - ePhone, (ePhone)
2012-12-17 14:41:51   Find My IDevices   running with (2, 300) and None
2012-12-17 14:41:51   Find My IDevices   location: {'latitude': 36.xxxxxxxxxxxxxxx, 'timestamp': datetime.datetime(2012, 12, 17, 14, 12, 58), 'longitude': -119.xxxxxxxxxxxxxx, 'accuracy': 5.0}
2012-12-17 14:41:52   Find My IDevices         Done locating - ePhone
2012-12-17 14:43:09   Find My IDevices Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
 File "plugin.py", line 948, in runConcurrentThread
 File "plugin.py", line 847, in run_search_for_idevices
 File "plugin.py", line 693, in fetch_updated_MobileMe_Locations
 File "plugin.py", line 566, in login_to_FindMyiPhone
<type 'exceptions.NameError'>: global name 'urllib2' is not defined

2012-12-17 14:43:09   Find My IDevices Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Still running 1.71 on Indigo 6.0b3.


Try reinstalling the plugin, since urllib2 is bundled with the plugin. It seems like something is preventing it from accessing that library...

------
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 Dec 18, 2012 10:18 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

Dewster35 wrote:
Benjamin,

Playing around with FMID trying to get my wife's account setup as well and I have been running into this occasionally:

Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.FindMyiDevices for request CallPluginFunc

I'm running 5.1.7 of Indigo and 10.8.2 on my mac.

This error occurs once I've created the indigo device, chosen the idevice I want to track, and then I go back into the device to edit it.


Double check that your at the latest version of the plugin. It's now multithreaded, and should prevent those deadlocks...

https://dl.dropbox.com/u/241415/Find%20 ... 0v1.71.zip

------
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 Dec 18, 2012 10:59 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find my iDevices!

Ben,
I was running the current version. Went ahead and put the newest version in anyway overwriting anything I had already in there.

Same thing is happening... add my account, my device, add my wife's account, her device... go to edit her device and I get that message.

Posted on
Wed Dec 19, 2012 4:51 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

Dewster35 wrote:
Ben,
I was running the current version. Went ahead and put the newest version in anyway overwriting anything I had already in there.

Same thing is happening... add my account, my device, add my wife's account, her device... go to edit her device and I get that message.


Can you email me directly so that we can try to figure this out? benjamin AT schollnick DOT net... Thanks...

------
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 Dec 20, 2012 8:26 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: Find my iDevices!

I have a strange interaction between the EventLog viewer and the FMiD.
The Indigo log file looks like:
Find My IDevices Locating - iPhone - Yvonne (Yvonnes iPhone)
Trigger FMiD iPhone DeviceStateChangedYvonne
Trigger FMiD iPhone DistanceAwayChanged Yvonne
Find My IDevices Done locating - iPhone - Yvonne
Find My IDevices Done Locating all iDevices
Find My IDevices Manual iDevice Update Requested
Find My IDevices Retrieving location data
Schedule FMiD iPhone DistanceAwayChanged Yvonne (delayed action)


However, the Eventlog plugin replicates the Trigger FMiD iPhone DistanceAwayChanged Yvonne 3 times.

2012-12-20 18:19:50 Schedule FMiD iPhone DistanceAwayChanged Yvonne (delayed action)
2012-12-20 18:19:50 Find My IDevices Manual iDevice Update Requested
2012-12-20 18:19:50 Find My IDevices Manual iDevice Update Requested
2012-12-20 18:19:50 Find My IDevices Locating - iPhone - Alan (Alan's 5)
2012-12-20 18:19:49 Trigger FMiD iPhone DistanceAwayChanged Yvonne
2012-12-20 18:19:49 Trigger FMiD iPhone DistanceAwayChanged Yvonne
2012-12-20 18:19:49 Trigger FMiD iPhone DistanceAwayChanged Yvonne
2012-12-20 18:19:49 Trigger FMiD iPhone DeviceStateChangedYvonne


It looks like 2 of the Find My iDevices lines get interpreted as the original DistanceAwayChangedYvonne Trigger.
No big issue really, but thought you'd be interested.

Posted on
Fri Dec 21, 2012 12:48 pm
puppycrack offline
Posts: 60
Joined: Dec 04, 2012
Location: Rochester, NY

Re: Find my iDevices!

I just updated to 1.71, running on Indigo 6.0b3. I've noticed a new things (some were there in v1.6, some are new to the current release):

1) I have a schedule setup to force an iDevice update at certain intervals, as I only want to track the iPhone during certain times. The update is not happening anymore. I see "Manual iDevice Update Requested (from Trigger)" in the event log, but it doesn't actually do anything. This is also the case when I select "Force iDevice Status Update" from the menu.

*** However, if I reload the plugin, then it will update the location once, but never again according to the schedule or the menu.

2) It appears that both this version, and version 1.6 seem to lag one step behind. By this, I mean, if I do the following:
1pm - at home
1:10pm - 2 miles away from home
1:25pm - 4 miles away from home
1:40pm - 2 miles away from home
1:50pm - at home

If I update every 15 mins, it would report this:
1pm - at home
1:15pm - at home from home
1:30pm - 2 miles away from home
1:45pm - 4 miles away from home
2pm - 2 miles away
2:15pm - at home

3) Lastly, and this may be a byproduct of how SQL logger works, but I sometimes see up to 8 records created in the device history table for every iDevice update.

Please let me know if I can expound further on any of this, and thanks for a cool plugin!

Thanks,
-pc

Posted on
Fri Dec 21, 2012 12:56 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find my iDevices!

puppycrack wrote:
I just updated to 1.71, running on Indigo 6.0b3. I've noticed a new things (some were there in v1.6, some are new to the current release):

1) I have a schedule setup to force an iDevice update at certain intervals, as I only want to track the iPhone during certain times. The update is not happening anymore. I see "Manual iDevice Update Requested (from Trigger)" in the event log, but it doesn't actually do anything. This is also the case when I select "Force iDevice Status Update" from the menu.

*** However, if I reload the plugin, then it will update the location once, but never again according to the schedule or the menu.

2) It appears that both this version, and version 1.6 seem to lag one step behind. By this, I mean, if I do the following:
1pm - at home
1:10pm - 2 miles away from home
1:25pm - 4 miles away from home
1:40pm - 2 miles away from home
1:50pm - at home

If I update every 15 mins, it would report this:
1pm - at home
1:15pm - at home from home
1:30pm - 2 miles away from home
1:45pm - 4 miles away from home
2pm - 2 miles away
2:15pm - at home

3) Lastly, and this may be a byproduct of how SQL logger works, but I sometimes see up to 8 records created in the device history table for every iDevice update.

Please let me know if I can expound further on any of this, and thanks for a cool plugin!

Thanks,
-pc



I'm seeing the same thing on my end. Finally was able to setup both me and my wife's icloud accounts.

Posted on
Tue Dec 25, 2012 7:28 pm
philc offline
Posts: 156
Joined: May 17, 2011

Re: Find my iDevices!

Benjamin,
Just slicked my Mac Mini Server and reloaded (almost) everything. FMID isn't working too well, keep getting this error:

Traceback (most recent call last):
File "plugin.py", line 948, in runConcurrentThread
File "plugin.py", line 852, in run_search_for_idevices
File "plugin.py", line 873, in create_pickled_data_for_web
File "plugin.py", line 881, in save_pickle
<type 'exceptions.IOError'>: (2, 'No such file or directory', '/library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/plugins/find-my-idevices/pickled_data')


And it's right... there is no such directory (folder)...cause I don't have Indigo 5 installed any more. Does the plugin have to look for a specific folder or can it just look for the IWS folder under the current Indigo install. Seems like every time there's an upgrade, the plugin will break.

Thanks,
Phil

Posted on
Tue Dec 25, 2012 10:15 pm
puppycrack offline
Posts: 60
Joined: Dec 04, 2012
Location: Rochester, NY

Re: Find my iDevices!

Changing the reference in: /Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/find-my-idevices/reqhandler.py

Code: Select all
static_webpage_root = r"/library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/plugins/find-my-idevices/"


from 'Indigo 5' to 'Indigo 6' will fix it.

Posted on
Fri Dec 28, 2012 9:05 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

philc wrote:
Benjamin,
Just slicked my Mac Mini Server and reloaded (almost) everything. FMID isn't working too well, keep getting this error:

Traceback (most recent call last):
File "plugin.py", line 948, in runConcurrentThread
File "plugin.py", line 852, in run_search_for_idevices
File "plugin.py", line 873, in create_pickled_data_for_web
File "plugin.py", line 881, in save_pickle
<type 'exceptions.IOError'>: (2, 'No such file or directory', '/library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/plugins/find-my-idevices/pickled_data')


And it's right... there is no such directory (folder)...cause I don't have Indigo 5 installed any more. Does the plugin have to look for a specific folder or can it just look for the IWS folder under the current Indigo install. Seems like every time there's an upgrade, the plugin will break.


Well, when the path's are changed, the software currently doesn't know what to do with it.

I will be working on updating my plugins for Indigo v6, and using some code that should be more version independent....

But I need to stress, once Matt and Jay are done with bringing IWS into the Indigo v5 / v6 IOM, this kludge will not be needed. The only reason for the pickle file, is to allow Indigo Web Services, to be able to have access to the device information.

- Benjamin

------
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
Fri Dec 28, 2012 2:47 pm
AussiePete offline
Posts: 2
Joined: Dec 27, 2012

Re: Find my iDevices!

Hi,

I'm new to Indigo, but I've trying to get the plugin up and running and I get the following error:

-----------
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)
Find My IDevices Locating - Pete's iPhone (iCloud), (Pete's iPhone)
Find My IDevices running with (3, 300) and None
Find My IDevices location: {'latitude': XXX, 'timestamp': datetime.datetime(2012, 12, 27, 21, 40, 15), 'longitude': XXX, 'accuracy': 10.0}
Find My IDevices Debug Location - {'latitude': XXX, 'timestamp': datetime.datetime(2012, 12, 27, 21, 40, 15), 'longitude': XXX, 'accuracy': 10.0}
Find My IDevices Done locating - Pete's iPhone (iCloud)
Find My IDevices Done Locating all iDevices
Find My IDevices Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 948, in runConcurrentThread
File "plugin.py", line 852, in run_search_for_idevices
File "plugin.py", line 864, in create_pickled_data_for_web
<type 'exceptions.KeyError'>: key id 92023234 not found in database
Find My IDevices Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
-----------

It seems some of the fields in Indigo are getting updated, but not all so I'm a little unsure whats wrong. Running the Indigio 6 B3 under Mountain Lion talking to an iPhone 5. Any help would be great!

Thanks,
Pete

PS. Great plugin! I love it already!

Posted on
Thu Jan 03, 2013 12:54 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

AussiePete wrote:
Hi,

I'm new to Indigo, but I've trying to get the plugin up and running and I get the following error:

-----------
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)
Find My IDevices Locating - Pete's iPhone (iCloud), (Pete's iPhone)
Find My IDevices running with (3, 300) and None
Find My IDevices location: {'latitude': XXX, 'timestamp': datetime.datetime(2012, 12, 27, 21, 40, 15), 'longitude': XXX, 'accuracy': 10.0}
Find My IDevices Debug Location - {'latitude': XXX, 'timestamp': datetime.datetime(2012, 12, 27, 21, 40, 15), 'longitude': XXX, 'accuracy': 10.0}
Find My IDevices Done locating - Pete's iPhone (iCloud)
Find My IDevices Done Locating all iDevices
Find My IDevices Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 948, in runConcurrentThread
File "plugin.py", line 852, in run_search_for_idevices
File "plugin.py", line 864, in create_pickled_data_for_web
<type 'exceptions.KeyError'>: key id 92023234 not found in database
Find My IDevices Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
-----------

It seems some of the fields in Indigo are getting updated, but not all so I'm a little unsure whats wrong. Running the Indigio 6 B3 under Mountain Lion talking to an iPhone 5. Any help would be great!

Thanks,
Pete

PS. Great plugin! I love it already!


Well, it could be an Indigo v6 bug. I have seen some reports of an issue with Beta 3. Try restarting the plugin, or stopping, and restarting the Indigo Server. Does that resolve the issue?

------
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
Sun Jan 06, 2013 9:42 pm
puppycrack offline
Posts: 60
Joined: Dec 04, 2012
Location: Rochester, NY

Re: Find my iDevices!

bschollnick2 wrote:
Well, it could be an Indigo v6 bug. I have seen some reports of an issue with Beta 3. Try restarting the plugin, or stopping, and restarting the Indigo Server. Does that resolve the issue?


Just thought I'd mention that the 1.6 version of plugin worked for me, albeit with the caveats I've previously mentioned, under Indigo 6b3. But when I upgraded to 1.71, it stopped working altogether.

In looking through the code, it seems that when a manual or trigger induced update occurs, you create a thread to handle the request. You pass a queue into the Thread, and the thread works off the queue (looks like a producer/consumer model).

The problem I'm seeing is that the queue is empty when it is passed to the thread. So the thread just sits and waits on the get() method of the queue.

Again, if I reload the plugin, an update occurs; but forced Manual updates and schedule induced updates, are not working for me.

Regards,
-pc

Who is online

Users browsing this forum: No registered users and 19 guests