View unanswered posts | View active topics It is currently Thu May 23, 2013 11:56 pm



Reply to topic  [ 4 posts ] 
 Find My iDevices -- Next Step Poll 

Would you like to see Google Latitude support added?
Yes!!!! ... And I would donate if it was added. 9%  9%  [ 1 ]
Yes, it would be nice. 36%  36%  [ 4 ]
I don't care. 18%  18%  [ 2 ]
No.... 9%  9%  [ 1 ]
I positively hate the idea... 18%  18%  [ 2 ]
What's Android? And what is Google Latitude? 9%  9%  [ 1 ]
Total votes : 11

 Find My iDevices -- Next Step Poll 
Author Message

Joined: Oct 17, 2004
Posts: 1115
Location: Rochester, Ny
Post Find My iDevices -- Next Step Poll
The Current Find My iDevice, uses the MobileMe service, exclusively...

Do you think that Google Latitude would be a useful alternative, the major obvious benefit, is that this could be used to support the display of non-iDevices...

What do you think?

_________________
------
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


Wed Aug 10, 2011 12:30 pm
Profile WWW

Joined: Dec 20, 2010
Posts: 399
Post Re: Find My iDevices -- Next Step Poll
I used Google Latitude to convert coordinates for each iPhone I track to a physical address. It was just a few lines of code to address their API. I think it would be a simple and useful addition to the plugin.


Tue Dec 20, 2011 8:18 am
Profile WWW

Joined: Oct 17, 2004
Posts: 1115
Location: Rochester, Ny
Post Re: Find My iDevices -- Next Step Poll
nlagaros wrote:I used Google Latitude to convert coordinates for each iPhone I track to a physical address. It was just a few lines of code to address their API. I think it would be a simple and useful addition to the plugin.


Feel like posting an example? It certainly would be a useful addition....

_________________
------
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


Tue Dec 20, 2011 7:07 pm
Profile WWW

Joined: Dec 20, 2010
Posts: 399
Post Re: Find My iDevices -- Next Step Poll
I have a variable iPhone_xxx that is populated with the full address from querying Google Latitude. Code below:

Code: Select all
import urllib2
from xml.etree import ElementTree as ET

dev = indigo.devices["iPhone - xxx"]
latitude = str(dev.states["Latitude"])
longitude = str(dev.states["Longitude"])

theUrl = u"http://maps.googleapis.com/maps/api/geocode/xml?latlng=" + latitude+ "," + longitude + "&sensor=false"


f = urllib2.urlopen(theUrl)
theXML = f.read()

GEO = ET.parse(urllib2.urlopen(theUrl))
GEO_results = GEO.find('result')
FA = GEO_results.findtext('formatted_address')

indigo.variable.updateValue("iPhone_xxx", FA)


Wed Dec 21, 2011 7:17 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.