Find my iDevices!

Posted on
Fri Nov 02, 2012 4:01 pm
wiery offline
Posts: 288
Joined: Jun 02, 2008
Location: Ireland

Re: Find my iDevices!

Hey Benjamin, i'm using the latest version of the plugin and using it in a trigger to send a message to my phone when the washing is finished. That part works great, but i keep getting an email from iCloud to say a sound has been played on my phone.

Can that be turned off ?

Posted on
Fri Nov 02, 2012 7:00 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

wiery wrote:
Hey Benjamin, i'm using the latest version of the plugin and using it in a trigger to send a message to my phone when the washing is finished. That part works great, but i keep getting an email from iCloud to say a sound has been played on my phone.

Can that be turned off ?


What version of iOS are you using? With v5, FMIP would allow you to select to play a sound or not. With v6, FMIP doesn't give you that option... So I need to do some testing, but it appears (at least at first glance) that Apple has decided to always play a sound...

- 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
Sat Nov 03, 2012 2:33 am
wiery offline
Posts: 288
Joined: Jun 02, 2008
Location: Ireland

Re: Find my iDevices!

Benjamin, running ios 6.0.1 as of the update the other day

Posted on
Sat Nov 03, 2012 7:38 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

wiery wrote:
Benjamin, running ios 6.0.1 as of the update the other day


Yes, then that appears to be a change in iOS behavior, and I don't see any way to turn it off...

- 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 Nov 16, 2012 10:07 pm
Snakesitter offline
Posts: 218
Joined: Feb 25, 2008
Location: Los Angeles, CA

Re: Find my iDevices!

I’m currently testing out Find My iDevices to see if it meets my needs, and had two (hopefully easy) questions.

One, is there a set of example scripts somewhere to use with the plugin? I’d like to use the value of DistanceAway in an Applescript. I tried coding it as a variable at first, then realized it is a state...I’m not quite sure how to handle that without an example. I basically need the iPhone location to set a variable to one of three values: A (distance less than X), B (distance between X and Y), and C (distance greater than Y), and would prefer it to do this based on one trigger rather than three...which I think will require a script of some type.

Two, I’d like to make my alarms trigger the plugin automatically to check and see if an “intruder” is me. My best guess is that I would have the alarm (the trigger) always (the condition) take the action of Plugin/Find My iDevices/Update iDevice Status. I would then "add new" to add a second action, and make that my usual applescript sequence, which would run only after a short (two to three minute?) delay. Am I approaching that right?

Thank you for your help,

--Cliff

Posted on
Sun Nov 18, 2012 4:55 pm
wmcorbin offline
Posts: 70
Joined: Aug 07, 2003
Location: State College, PA

Re: Find my iDevices! - Indigo 6.0

I upgraded to Indigo 6.0 today and noticed the following error from v1.71 of Find my iDevices. Not sure if it's related to the upgrade or not:

Nov 18, 2012 5:12:00 PM
Enabling plugin "Find My IDevices 1.71"
Starting plugin "Find My IDevices 1.71" (pid 2089)
Started plugin "Find My IDevices 1.71"
Find My IDevices Find My iDevice Plugin Loaded...
Find My IDevices Registering Find My iDevice - Bill's iPhone (1523106669)
Find My IDevices Done registering Device ID
Find My IDevices Registering Find My iDevice - Cindy's iPhone (321666843)
Find My IDevices Done registering Device ID
Find My IDevices Done registering Apple ID
Find My IDevices Done registering Apple ID
Find My IDevices Done registering Apple ID
Find My IDevices Registering Find My iDevice - Station 2 iPhone (927485599)
Find My IDevices Done registering Device ID
Find My IDevices Retrieving location data
Find My IDevices Locating - Bill's iPhone, (Will's iPhone)
Find My IDevices running with (3, 300) and None

...brief period of time...then this....

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 - Cindy's iPhone, (Cindy's iPhone)
Find My IDevices running with (1, 300) and None
Find My IDevices location: {'latitude': 40.dxxxx, 'timestamp': datetime.datetime(2012, 11, 18, 17, 30, 1), 'longitude': -78.xxxx, 'accuracy': 10.0}
Find My IDevices testing
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 701, in fetch_updated_MobileMe_Locations
File "plugin.py", line 782, in process_device
<type 'exceptions.KeyError'>: key TestType not found in dict

Posted on
Mon Nov 19, 2012 9:45 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

Snakesitter wrote:
I’m currently testing out Find My iDevices to see if it meets my needs, and had two (hopefully easy) questions.

One, is there a set of example scripts somewhere to use with the plugin? I’d like to use the value of DistanceAway in an Applescript. I tried coding it as a variable at first, then realized it is a state...I’m not quite sure how to handle that without an example. I basically need the iPhone location to set a variable to one of three values: A (distance less than X), B (distance between X and Y), and C (distance greater than Y), and would prefer it to do this based on one trigger rather than three...which I think will require a script of some type.

Two, I’d like to make my alarms trigger the plugin automatically to check and see if an “intruder” is me. My best guess is that I would have the alarm (the trigger) always (the condition) take the action of Plugin/Find My iDevices/Update iDevice Status. I would then "add new" to add a second action, and make that my usual applescript sequence, which would run only after a short (two to three minute?) delay. Am I approaching that right?


Cliff, for DistanceAway, use the Action Collection plugin, to copy that state into a variable for your Applescript. But if your making a trigger, you can just write the trigger against the Device State directly (use Device State Changed, and choose the device, and DistanceAway). Or alternatively, make a Map location, and test Distance Away from Location in the trigger....

But yes, if you want to test 3 distances from one trigger, you'll need to either use Python or Applescript to write a script to test it.

For your second, yes.... That would be the right way, but the poll could take a bit.... With Find My iPhone's web interface, the time it takes to poll, varies a lot.....

------
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 Nov 19, 2012 5:49 pm
dstrickler offline
User avatar
Posts: 340
Joined: Oct 08, 2010
Location: Boston, MA

Possible bug: FMiD not responding to Trigger

Benjamin,

I am running 1.71 in two locations, and am seeing the same behavior. FMiD works fine when polling on a regular interval, but when I tell it to poll, via a Trigger or from the Menu, it doesn't seem to poll. I don't see anything when debug is enabled, and after 3 minutes I don't see any updates.

Is this a known bug or am I doing something strange?

Code: Select all
  Reloading plugin "Find My IDevices 1.71"
  Stopping plugin "Find My IDevices 1.71" (pid 268)
  Find My IDevices Debug             # 1 - Device Name - Kathy Pattison’s   UID - xxxxxxxx~      Account - kathy@xxxxx
  Find My IDevices Debug             # 1 - Device Name - Kathy Pattison’s   UID - xxxxxxxx~      Account - kathy@xxxx
  Plugin "Find My IDevices" disconnected
  Starting plugin "Find My IDevices 1.71" (pid 9708)
  Plugin "Find My IDevices" connected


[edit November 19, 2012 6:52 PM] I am running Indigo 5.1.6

Dave

Posted on
Tue Nov 27, 2012 12:39 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Possible bug: FMiD not responding to Trigger

dstrickler wrote:
Benjamin,

I am running 1.71 in two locations, and am seeing the same behavior. FMiD works fine when polling on a regular interval, but when I tell it to poll, via a Trigger or from the Menu, it doesn't seem to poll. I don't see anything when debug is enabled, and after 3 minutes I don't see any updates.

Is this a known bug or am I doing something strange?

Code: Select all
  Reloading plugin "Find My IDevices 1.71"
  Stopping plugin "Find My IDevices 1.71" (pid 268)
  Find My IDevices Debug             # 1 - Device Name - Kathy Pattison’s   UID - xxxxxxxx~      Account - kathy@xxxxx
  Find My IDevices Debug             # 1 - Device Name - Kathy Pattison’s   UID - xxxxxxxx~      Account - kathy@xxxx
  Plugin "Find My IDevices" disconnected
  Starting plugin "Find My IDevices 1.71" (pid 9708)
  Plugin "Find My IDevices" connected

[edit November 19, 2012 6:52 PM] I am running Indigo 5.1.6


I am researching this.... Hopefully I'll have something shortly...

------
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 Dec 02, 2012 2:01 am
mda offline
Posts: 8
Joined: Nov 22, 2012

Re: Find my iDevices!

Hi Benjamin, noob here and i apologize if this is a dumb question... i am running indigo 6 beta 2 and installed v1.71 of Find my iDevices. When i restart the server it does not display a config dialog for me to enter my icloud login info. When i select "configure" from the plugin menu i only get a screen to select update frequency and lat/lon.

i believe i followed the installation instructions (and i even tried changing /indigo 5/ to /indigo 5/ in plugin.py in case the problem was that i had to /indigo 5/ directories because i am new with indigo 6) but that was not it. i am obviously doing something wrong. can you point me in the right direction?

Thanks!

log shows:


Code: Select all
tarted plugin "Find My IDevices 1.71"
  Find My IDevices                Find My iDevice Plugin Loaded...
  Find My IDevices                   Retrieving location data
  Find My IDevices                   Done Locating all iDevices
  WebServer client connected
  WebServer                       started on port 8176 -- digest authentication enabled
  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"

Posted on
Sun Dec 02, 2012 6:59 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

mda wrote:
Hi Benjamin, noob here and i apologize if this is a dumb question... i am running indigo 6 beta 2 and installed v1.71 of Find my iDevices. When i restart the server it does not display a config dialog for me to enter my icloud login info. When i select "configure" from the plugin menu i only get a screen to select update frequency and lat/lon.

i believe i followed the installation instructions (and i even tried changing /indigo 5/ to /indigo 5/ in plugin.py in case the problem was that i had to /indigo 5/ directories because i am new with indigo 6) but that was not it. i am obviously doing something wrong. can you point me in the right direction?
Code: Select all
tarted plugin "Find My IDevices 1.71"
  Find My IDevices                Find My iDevice Plugin Loaded...
  Find My IDevices                   Retrieving location data
  Find My IDevices                   Done Locating all iDevices
  WebServer client connected
  WebServer                       started on port 8176 -- digest authentication enabled
  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"


You need to create an Apple ID Login device, and create a device for each iDevice you wish to track...

Steps to Create an Apple ID Login device
Click New Device
Change the Type to Plugin
Change the plugin to ”Find My IDevices”
Change Model to ”Apple ID Login information (For MobileMe & iCloud)”
Fill in your Apple ID username and password

Steps to Create an iDevice Record
Create an iDevice Record
Click New Device
Change the Type to Plugin
Change the plugin to ”Find My IDevices”
Change Model to ”iDevice Registration”
Choose the Apple ID Associated with the iDevice
Choose the iDevice name
Please note: If this is a new device, the iDevice name will not show up, instead it’ll prompt you to close the device. Close the Device record, and exit back to Indigo’s main window. (Make sure to save, and not cancel). This is due to new device’s not having an Indigo device number until the device is initially saved…. FMID needs that Device number.

If necessary, Re-open the iDevice record, and choose the iDevice name.

------
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 Dec 03, 2012 12:05 am
mda offline
Posts: 8
Joined: Nov 22, 2012

Re: Find my iDevices!

thanks.

i have setup the 2 devices and the Login device works, but the iPhone device populates only device number (2) and AppleID (correctly) fields. i confirmed icloud has a location for my iPhone so not sure what i am still missing.

when i open and close the iphone device, the event log shows:

Code: Select all
  Find My IDevices                    Registering Find My iDevice - mda xxxxxxx (3xxxxxxx)
  Find My IDevices                Done registering Device ID
Attachments
login device.png
login device.png (70.54 KiB) Viewed 5003 times
device variables.png
device variables.png (15.89 KiB) Viewed 5003 times
device more.png
device more.png (10.48 KiB) Viewed 5003 times

Posted on
Mon Dec 03, 2012 4:40 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

mda wrote:
thanks.

i have setup the 2 devices and the Login device works, but the iPhone device populates only device number (2) and AppleID (correctly) fields. i confirmed icloud has a location for my iPhone so not sure what i am still missing.

when i open and close the iphone device, the event log shows:

Code: Select all
  Find My IDevices                    Registering Find My iDevice - mda xxxxxxx (3xxxxxxx)
  Find My IDevices                Done registering Device ID


From the plugin menu, choose restart Find My iDevice. It sounds like FMID has not polled the FMIP service. Most of that data is gathered from Apple's servers....

- 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
Mon Dec 03, 2012 11:27 am
mda offline
Posts: 8
Joined: Nov 22, 2012

Re: Find my iDevices!

worked. thanks!

Posted on
Mon Dec 10, 2012 11:56 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Find my iDevices!

Hey Benjamin.

First off, great plugin! Thanks for making it available.

I'm using FMID version 1.7.1 on Indigo 6 beta 3. Occasionally I'll see errors like the one below in the Indigo log
Code: Select all
2012-12-10 09:16:08   Find My IDevices      Retrieving location data
2012-12-10 09:16:08   Find My IDevices   Locating - ePhone, (ePhone)
2012-12-10 09:16:08   Find My IDevices   running with (2, 300) and None
2012-12-10 09:16:08   Find My IDevices   location: {'latitude': 36.xxxxxxxxxxxxxxx, 'timestamp': datetime.datetime(2012, 12, 10, 8, 46, 10), 'longitude': -119.xxxxxxxxxxxxxx, 'accuracy': 10.0}
2012-12-10 09:16:09   Find My IDevices         Done locating - ePhone
2012-12-10 09:16:10   Find My IDevices   Locating - nPhone, (nPhone)
2012-12-10 09:16:10   Find My IDevices   running with (2, 300) and None
2012-12-10 09:16:10   Find My IDevices   location: {'latitude': 36.xxxxxxxxxxxxxxx, 'timestamp': datetime.datetime(2012, 12, 10, 8, 48, 11), 'longitude': -119.xxxxxxxxxxxxxx, 'accuracy': 65.0}
2012-12-10 09:16:10   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 701, in fetch_updated_MobileMe_Locations
 File "plugin.py", line 754, in process_device
 File "plugin.py", line 673, in fetch_geoaddress_from_lat_long
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 124, in urlopen
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 387, in open
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 498, in http_response
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 425, in error
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 360, in _call_chain
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 506, in http_error_default
<class 'urllib2.HTTPError'>: HTTP Error 500: Internal Server Error

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

(x's substituted above in location for privacy). It looks as though the HTTPError exception isn't being caught. I'm sure the HTTP error has little or nothing to do with the plugin, but I thought you might want to see the error so you could write in an exception to catch it so it doesn't crash the runConcurrentThread thread every time an HTTP error is encountered.

Who is online

Users browsing this forum: No registered users and 23 guests