Find My iDevices! (April 2013+)

Posted on
Wed Aug 28, 2013 12:49 pm
marcinzk offline
Posts: 11
Joined: Mar 09, 2012

Re: Find My iDevices! (April 2013+)

nsheldon wrote:
I din't think you're doing anything wrong. It's never worked for me either. I'm currently running version 1.715.



I'm on version 1.715 as well and I suppose I'm glad to hear that I'm not doing anything wrong! This would be a nice feature to have working, maybe when Benjamin finds time to update his great plugin it will work. Thanks for your prompt reply!

Posted on
Wed Aug 28, 2013 4:17 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find My iDevices! (April 2013+)

nsheldon wrote:
Dewster35 wrote:
Anyone on either of the above?

I think the best way to handle the inverse of that trigger is to use a "Device State Changed" type trigger for the specific iOS device you're wanting to track. Select the device associated with Cathy, then select the "Closest GeoLocated Street Address" state, and "Has Any Change" condition. Then set the condition in the Conditions tab to...

Code: Select all
   "All" "of the following rules are true"
      "If device" "(Cathy's iOS device)" "Closest GeoLocated Street Address" "does not contain" "Bridge Park Drive"

The "contains" and "does not contain" comparisons for device states is new with Indigo 6.0 (final release), so that version would be required for this condition to work.


Thanks Nathan! I had forgotten that devices got collapsed into actual devices in the UI... just gotta get up to speed. I forgot that I could trigger off of that because I only saw the two actions for FMID. All set now and working great!

Any ideas on how to reload the plugin from a script? Since a manual trigger update doesn't work right now and pinging the device every 10 minutes smokes the battery, I'm going to use this in place of a manual trigger update to try to just ping it frequently around the times where I know we're about to move.

Posted on
Wed Aug 28, 2013 11:54 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find My iDevices! (April 2013+)

Dewster35 wrote:
Any ideas on how to reload the plugin from a script? Since a manual trigger update doesn't work right now and pinging the device every 10 minutes smokes the battery, I'm going to use this in place of a manual trigger update to try to just ping it frequently around the times where I know we're about to move.

You can use the same script you posted earlier, replacing the Google Voice SMS plugin ID with the Find My iDevices plugin ID. The plugin ID is "com.schollnick.indigoplugin.FindMyiDevices". You can find the plugin ID by looking at the names of the preference files in the /Library/Application Support/Perceptive Automation/Indigo 6/Preferences/Plugins folder.

Posted on
Sat Aug 31, 2013 5:50 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Find My iDevices! (April 2013+)

I got this installed, created the Apple ID Login Device and iDevice Record. The webserver map works, but it is not updating with my location. I get repeated log errors as follows. Any ideas?

Code: Select all
Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Find My IDevices                   Retrieving location data
  Find My IDevices                Locating - find my iphone iphone5, (iPhone5)
  Find My IDevices                running with (1, 300) and None
  Find My IDevices                location: {'latitude': [removed], 'timestamp': datetime.datetime(2013, 8, 31, 18, 31, 8), 'longitude': [removed], 'accuracy': 10.0}
  Find My IDevices Error          Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 966, in runConcurrentThread
  File "plugin.py", line 865, in run_search_for_idevices
  File "plugin.py", line 712, in fetch_updated_MobileMe_Locations
  File "plugin.py", line 795, in process_device
<class 'Boost.Python.ArgumentError'>: Python argument types in
    ServerInfo.log(unicode)
did not match C++ signature:
    log(CCString message, CCString type='', bool isError=False)

  Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Fri Sep 06, 2013 6:37 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

Seeker wrote:
I got this installed, created the Apple ID Login Device and iDevice Record. The webserver map works, but it is not updating with my location. I get repeated log errors as follows. Any ideas?

Code: Select all
Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Find My IDevices                   Retrieving location data
  Find My IDevices                Locating - find my iphone iphone5, (iPhone5)
  Find My IDevices                running with (1, 300) and None
  Find My IDevices                location: {'latitude': [removed], 'timestamp': datetime.datetime(2013, 8, 31, 18, 31, 8), 'longitude': [removed], 'accuracy': 10.0}
  Find My IDevices Error          Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 966, in runConcurrentThread
  File "plugin.py", line 865, in run_search_for_idevices
  File "plugin.py", line 712, in fetch_updated_MobileMe_Locations
  File "plugin.py", line 795, in process_device
<class 'Boost.Python.ArgumentError'>: Python argument types in
    ServerInfo.log(unicode)
did not match C++ signature:
    log(CCString message, CCString type='', bool isError=False)

  Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Check your device names, the error here is crashing the plugin, and it's referring to an Unicode issue. Change your device name is be just pure ASCII text (no `' or other non-us symbols), and see if that resolves the issue.

If not, please email me a copy of your indigo database, to benjamin@schollnick.net, and I'll take a look to see if I can resolve the issue.

- 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 Sep 06, 2013 6:40 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

marcinzk wrote:
nsheldon wrote:
I din't think you're doing anything wrong. It's never worked for me either. I'm currently running version 1.715.



I'm on version 1.715 as well and I suppose I'm glad to hear that I'm not doing anything wrong! This would be a nice feature to have working, maybe when Benjamin finds time to update his great plugin it will work. Thanks for your prompt reply!


Sadly, I am busy with a remodeling project in the basement, that we have been working on for just over a year. We're adding 3 apartments and some living space for my sister-in-law.

Thankfully, we are almost done. I expect to have quite a bit of free time, within the next month or so.

Have I mentioned that I am really tired?

- 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
Fri Sep 06, 2013 7:04 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

Dewster35 wrote:
Anyone on either of the above?


Not really, I never considered testing *NOT* for an address.

Can you give me some idea of the scenario for this?

------
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 Sep 06, 2013 7:08 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Find My iDevices! (April 2013+)

bschollnick2 wrote:
Dewster35 wrote:
Anyone on either of the above?


Not really, I never considered testing *NOT* for an address.

Can you give me some idea of the scenario for this?


Nathan solved this for me... I was looking in the wrong place since the UI for plugins have changed a bit. Thanks for the followup! Have fun with the remodeling... likely going to completely finish my own basement this coming winter :)

Posted on
Sat Oct 19, 2013 11:54 am
macpro offline
User avatar
Posts: 765
Joined: Dec 29, 2005
Location: Third byte on the right

Re: Find My iDevices! (April 2013+)

bschollnick2 wrote:
Seeker wrote:
I got this installed, created the Apple ID Login Device and iDevice Record. The webserver map works, but it is not updating with my location. I get repeated log errors as follows. Any ideas?

Code: Select all
Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Find My IDevices                   Retrieving location data
  Find My IDevices                Locating - find my iphone iphone5, (iPhone5)
  Find My IDevices                running with (1, 300) and None
  Find My IDevices                location: {'latitude': [removed], 'timestamp': datetime.datetime(2013, 8, 31, 18, 31, 8), 'longitude': [removed], 'accuracy': 10.0}
  Find My IDevices Error          Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 966, in runConcurrentThread
  File "plugin.py", line 865, in run_search_for_idevices
  File "plugin.py", line 712, in fetch_updated_MobileMe_Locations
  File "plugin.py", line 795, in process_device
<class 'Boost.Python.ArgumentError'>: Python argument types in
    ServerInfo.log(unicode)
did not match C++ signature:
    log(CCString message, CCString type='', bool isError=False)

  Find My IDevices Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Check your device names, the error here is crashing the plugin, and it's referring to an Unicode issue. Change your device name is be just pure ASCII text (no `' or other non-us symbols), and see if that resolves the issue.

I had the same error, but it wasn't the device name. I had a trigger for a "Distance from Map Location" event and I didn't select a Map Location. Which means "map_point_to_check_against" had the value "None".
Somehow error handling on line 795 doesn't work the way it should and that is why the traceback occurs.

Posted on
Sat Oct 19, 2013 4:56 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Find My iDevices! (April 2013+)

I had the same error, but it wasn't the device name. I had a trigger for a "Distance from Map Location" event and I didn't select a Map Location. Which means "map_point_to_check_against" had the value "None".
Somehow error handling on line 795 doesn't work the way it should and that is why the traceback occurs.


THANK YOU, THANK YOU, THANK YOU!! All these months and it was something as simple as this.

Posted on
Sun Oct 20, 2013 12:34 am
AndrewGWalsh offline
Posts: 67
Joined: Feb 20, 2013

Re: Find My iDevices! (April 2013+)

I was having a similar problem - and it was caused by me having changed my iPhone, resulting in the registration for the iPhone device having nothing in it.

All good here :-)

Andrew

Posted on
Mon Oct 21, 2013 9:29 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

Seeker wrote:
I had the same error, but it wasn't the device name. I had a trigger for a "Distance from Map Location" event and I didn't select a Map Location. Which means "map_point_to_check_against" had the value "None".
Somehow error handling on line 795 doesn't work the way it should and that is why the traceback occurs.


THANK YOU, THANK YOU, THANK YOU!! All these months and it was something as simple as this.


I'll take a look at this. Overall, I want to completely rewrite FMID, but until the embedded python is raised to v2.6, I can't use the new FMIP libraries, which should help solve some of the complexity issues.

- 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 Dec 11, 2013 10:04 pm
artpics offline
Posts: 232
Joined: Feb 24, 2009
Location: Calabasas CA

Re: Find My iDevices! (April 2013+)

EDIT think i fixed it :lol:

Posted on
Fri Dec 20, 2013 2:45 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find My iDevices! (April 2013+)

artpics wrote:
EDIT think i fixed it :lol:


What was the problem?

Sorry, I just recovered from a week long cold and have been playing catch up at work.

------
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 20, 2013 10:41 pm
artpics offline
Posts: 232
Joined: Feb 24, 2009
Location: Calabasas CA

Re: Find My iDevices! (April 2013+)

Indigo lost one of the "device location" in the settings so it kept getting the error as reported a few posts back other than that the plugin is working rock solid since :D

Who is online

Users browsing this forum: No registered users and 1 guest