It's 10pm, do you know where your iPhone / iPodTouch are?

Posted on
Thu Jun 24, 2010 1:47 pm
five337 offline
Posts: 52
Joined: Jun 21, 2010

Re: It's 10pm, do you know where your iPhone / iPodTouch are

I found the two missing CSS files and copied them over to the proper place. Now I get this:


Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
cherrypy.response.body = self.handler()
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/findmyiphone/reqhandler.py", line 138, in index
find_my_iphone_data = findmyiphone.find_my_iphone (mobile_me_username, mobile_me_password)
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/findmyiphone/findmyiphone.py", line 46, in find_my_iphone
if json.loads(content)['status'] == 0:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Posted on
Thu Jun 24, 2010 8:33 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: It's 10pm, do you know where your iPhone / iPodTouch are

five337 wrote:
I found the two missing CSS files and copied them over to the proper place. Now I get this:


Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
cherrypy.response.body = self.handler()
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/findmyiphone/reqhandler.py", line 138, in index
find_my_iphone_data = findmyiphone.find_my_iphone (mobile_me_username, mobile_me_password)
File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/findmyiphone/findmyiphone.py", line 46, in find_my_iphone
if json.loads(content)['status'] == 0:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


I have confirmed that Apple has changed the process for getting this data from MobileMe... That's isn't so suprising since Apple never officially intended it to be used outside of Apple....

For now, thisplugin isn't going to work, since it is essentially getting bad data back from MobileMe.... (Technically, it's now requesting bad data, and MobileMe is being sensible and tell it to get lost...)

The python module I was using hasn't been updated yet, but the old Sosumi perl script has been updated with the new MobileMe code... So I'll have to retool and use that instead....

In otherwords, it's a complete rewrite... I hope to have it done soon, but I'm seriously hampered at the fact that I don't have cell coverage at my desk....

I will keep you informed...

------
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 Jul 02, 2010 12:16 am
five337 offline
Posts: 52
Joined: Jun 21, 2010

Re: It's 10pm, do you know where your iPhone / iPodTouch are

Thank you so much - you gave me the hint I needed. The sosumi script works perfectly and very quickly now that they updated it.

I didn't need the web stuff, I just needed a way to have indigo poll mobileme every few minutes and see how far away from the house I was. Since everyone here has iphones I can determine if everyone is gone, turn up thermostats, turn on some random lights, determine who is home based on polling the mobileme account when the garage is opened, etc.. Its getting to be a little big brother-ish, but oh well... ;)

Thanks for the hint and thanks for the idea in the first place. I would have never thought to track the phones via indigo without your scripts in the first place.

Posted on
Mon Aug 30, 2010 9:01 am
ethank offline
Posts: 55
Joined: Oct 12, 2006

Re: It's 10pm, do you know where your iPhone / iPodTouch are

I have this library working (http://github.com/tylerhall/sosumi), and hacked it to return JSON. I know JSON is not really supported by APplescript, so not sure the preferred format to return? I want to populate variables in Indigo with a few different variables, including long/lat, and distance from house to my phone.

Posted on
Thu Oct 21, 2010 10:46 am
FaTMax offline
Posts: 134
Joined: Feb 01, 2007
Location: Haugesund, Norway

Re: It's 10pm, do you know where your iPhone / iPodTouch are

Is this working now?

Posted on
Thu Oct 21, 2010 11:49 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: It's 10pm, do you know where your iPhone / iPodTouch are

FaTMax wrote:
Is this working now?


I haven't been able to work on this again... So I may wait until Indigo v5, unless there is a huge demand for it...

------
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 31, 2010 1:55 pm
hammer32 offline
Posts: 66
Joined: May 13, 2006
Location: Copperas Cove, TX

Re: It's 10pm, do you know where your iPhone / iPodTouch are

I'd love to see this working again. :)

Posted on
Fri Dec 31, 2010 2:27 pm
five337 offline
Posts: 52
Joined: Jun 21, 2010

Re: It's 10pm, do you know where your iPhone / iPodTouch are

The sosumi php code has been updated to work again since Apple changed the mobileme site in late november.

https://github.com/tylerhall/sosumi

Getting it to work with indigo takes some apple scripting - but its pretty reliable . I would say it is the #1 most important thing in my home automation setup now.

Is there any information for the v5 plugins ? I would like to work or help work on a plugin for this.

Posted on
Fri Dec 31, 2010 4:20 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: It's 10pm, do you know where your iPhone / iPodTouch are

five337 wrote:
Is there any information for the v5 plugins ? I would like to work or help work on a plugin for this.

Not yet, but we are working on it. :-)

Image

Posted on
Fri Dec 31, 2010 5:28 pm
dstrickler offline
User avatar
Posts: 340
Joined: Oct 08, 2010
Location: Boston, MA

Re: It's 10pm, do you know where your iPhone / iPodTouch are

five337 wrote:
The sosumi php code has been updated to work again since Apple changed the mobileme site in late november.

https://github.com/tylerhall/sosumi

Getting it to work with indigo takes some apple scripting - but its pretty reliable . I would say it is the #1 most important thing in my home automation setup now.

Is there any information for the v5 plugins ? I would like to work or help work on a plugin for this.


I'm having trouble with the script (I'm a PHP programmer, so I doubt it's my PHP install). I'm running it from the CLI for easier debugging. Seems I am getting a bad JSON output.

I have tried usernames in the form "username" and "username@me.com", and I can't get it to work. As it's a JSON error, I really don't want to get into debugging it unless I need to.

TIA,

Dave

Posted on
Fri Dec 31, 2010 6:43 pm
five337 offline
Posts: 52
Joined: Jun 21, 2010

Re: It's 10pm, do you know where your iPhone / iPodTouch are

Are you sure you are using the most current version of the PHP script ? The JSON errors were fixed recently.

Posted on
Sat Jan 01, 2011 11:12 am
dstrickler offline
User avatar
Posts: 340
Joined: Oct 08, 2010
Location: Boston, MA

Re: It's 10pm, do you know where your iPhone / iPodTouch are

The script is dated "June 20, 2010" but doesn't have a version number. I got it from the GitHub repository.

Do you have a download link I should use instead? I tend to think you are right - I have the wrong version.

Dave

Posted on
Sat Jan 01, 2011 3:28 pm
dstrickler offline
User avatar
Posts: 340
Joined: Oct 08, 2010
Location: Boston, MA

Re: It's 10pm, do you know where your iPhone / iPodTouch are

Working now. I tried to log into my @me.com account, and someone is clearly trying to hack my accounts (oh joy). Apple showed too many bad password attempts.

When I reset my password, it appears to be churning. No data yet, but clearly it likes the data feeds so far...

Dave

Posted on
Sat Jun 18, 2011 7:01 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: It's 10pm, do you know where your iPhone / iPodTouch are

Good news...

I am now starting on the indigo v5 version of "Find my iPhone". I have a stable system for tracking and I will be keeping everyone abreast on this...

- 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
Sat Jun 18, 2011 12:11 pm
dstrickler offline
User avatar
Posts: 340
Joined: Oct 08, 2010
Location: Boston, MA

Re: It's 10pm, do you know where your iPhone / iPodTouch are

bschollnick2 wrote:
Good news...

I am now starting on the indigo v5 version of "Find my iPhone". I have a stable system for tracking and I will be keeping everyone abreast on this...

- Ben


Thanks! As a followup, I was using the "sosueme" PHP code to check MobileMe for GPS coordinates on my iPhone, but after Apple's announcement the other day, it stopped working. Now the only way I know how to do a check is via a network ping, and that's just not cutting it.

Looking forward to your code...

Dave

Who is online

Users browsing this forum: No registered users and 7 guests