A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

Post on 13-Dec-2015

213 views 1 download

Transcript of A Mobile App for the Poor (Or the technology disabled) SMS + Gmail + Latitude = API Location Hack.

A Mobile App for the Poor (Or the technology disabled)

SMS + Gmail + Latitude = API Location Hack

The players

• How do you get your location from SMS via Gmail to Google Latitude?

Hack it together

• Hack something together with Python and Oauth

Steps to complete• Check out trunk:

– svn checkout http://gmail-location-for-latitude.googlecode.com/svn/trunk/ gmail-location-for-latitude-read-only

• Run three-legged-dance.py– This setups of the Oauth tokens for Gmail and Latitude

• Schedule glfl_run.py– Accesses Gmail via RSS– Looks for location pattern– If found, location is checked to make sure its newer then the most recent

Latitude update• If newer, geocode the location and set as Latitude position• Else, disregard

– Else, exit and don’t do anything

Running – 1 (In Chantilly, VA)

Running – 2 (Folly Beach, SC)

• Text “Loc 29439”• Now check Gmail• Run glfl_run.py

Now I am on vacation

Why?

• I was bored• I don’t have an internet enabled phone• I don’t want an internet enabled phone

because I would just check work email• Google Code?– I don’t like to leave any code unshared– Easily setup source control and documentation