Page 5 of 7

Re: Find My iDevices! (April 2013+)

PostPosted: Wed Aug 28, 2013 12:49 pm
by marcinzk
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!

Re: Find My iDevices! (April 2013+)

PostPosted: Wed Aug 28, 2013 4:17 pm
by Dewster35
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.

Re: Find My iDevices! (April 2013+)

PostPosted: Wed Aug 28, 2013 11:54 pm
by nsheldon
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.

Re: Find My iDevices! (April 2013+)

PostPosted: Sat Aug 31, 2013 5:50 pm
by Seeker
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)

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Sep 06, 2013 6:37 am
by bschollnick2
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

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Sep 06, 2013 6:40 am
by bschollnick2
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

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Sep 06, 2013 7:04 am
by bschollnick2
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?

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Sep 06, 2013 7:08 am
by Dewster35
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 :)

Re: Find My iDevices! (April 2013+)

PostPosted: Sat Oct 19, 2013 11:54 am
by macpro
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.

Re: Find My iDevices! (April 2013+)

PostPosted: Sat Oct 19, 2013 4:56 pm
by Seeker
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.

Re: Find My iDevices! (April 2013+)

PostPosted: Sun Oct 20, 2013 12:34 am
by AndrewGWalsh
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

Re: Find My iDevices! (April 2013+)

PostPosted: Mon Oct 21, 2013 9:29 am
by bschollnick2
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

Re: Find My iDevices! (April 2013+)

PostPosted: Wed Dec 11, 2013 10:04 pm
by artpics
EDIT think i fixed it :lol:

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Dec 20, 2013 2:45 pm
by bschollnick2
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.

Re: Find My iDevices! (April 2013+)

PostPosted: Fri Dec 20, 2013 10:41 pm
by artpics
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