thoughts scribbles images from silicon plateau
RSS icon Home icon
  • TweetALoc – Sync your geocoded tweets to FireEagle

    Posted on November 29th, 2009 jebu Comments

    tweetaloc_logoThis was always there at the back of my mind ever since Twitter announced they were adding geo tagging to status updates. So here it is TweetALoc.

    Once you authorize it by linking your Twitter account and your FireEagle account, it will listen to your tweet stream, if geo information is present in any of your tweets it sends it along to FireEagle. The updates occur usually under 20secs from you tweeting. No polling involved here. Once authorized your twitter id is added to tweetaloc’s follow list within 5 minutes. So the first update will be only after that, and continuous from then on. I guess right now there are only a handful of Twitter clients which add location to your tweets, Twitter blog post on geotagging release has a list. I use one of my own which is why you see my tweets signed from nowwhat.in.

    Just in case you feel that you need to stop updating into FireEagle, I have also provided for a de-authorizing facility. FireEagle tokens associated with your Twitter id are removed and your id is removed from the follow list. You can of-course go into FireEagle and remove the permissions to TweetALoc.

    Behind the scenes this extends on the Erlang Twitter stream boiler plate that I had talked about in a previous post. I have used the Erlang OAuth library for talking OAuth to FireEagle and the PHP OAuth libraries for the web interface portions. That logo was GIMPed by me :)

  • Fireeagle location updater

    Posted on September 2nd, 2008 jebu Comments

    I have been running it for a while now and things look pretty good. The python script which updates my Fireeagle location does a couple of things.

    • Watches the cell tower that the phone is connected to, queries Google cell mapping webservices (using the script detailed in previous post)and caches the location information of the cell tower in a local db on the phone
    • Optionally uses GPS to get the current location
    • If current location, determined by above positioning methods with preference to GPS, is more than a configurable distance away from my last updated location, update Fireeagle
    • Optionally when doing a cell tower lookup also looks up geonames.org for the nearest neighborhood to give a meaningful place name to the cell location
    • Oh yeah of course does a mobile auth with Fireeagle first time and stores the authorization key for future access.

    Why one more updater? Navizon does a good job but i wanted it to do the distance based update, if i am within a certain radius, say 1 Km, of my location i really am not bothered about it getting reflected on Fireeagle. Making it configurable tunes it to the users taste. Also in an urban area cell towers keep hopping even though i have not moved. Dont bother updating in those cases. Not sure if Navizon caches the cell lookup information locally, but i feel its one piece that should be really cached. Why waste my mobile bandwidth doing the same cell lookup calls. Persisting this in a DB is really efficient. And last I would really like to have my location to be at one place.

    The J2ME updater is a perfectly simple GPS updater but GPS is too power hungry and useless indoors. I really dont want to always keep my phone such that GPS signals are available (you know the belt pouch). This one too a distance based decision to update Fireeagle or not would be great in addition to time based.

    So yeah i wanted a mix of the two mentioned above and with Python on S60 what better way to get it done that writing my own. The pain point to get this working was to port the existing oAuth and fireeagle libraries to python 2.2. The fireeagle libraries i just switched it to talk json and used the python-json module. Doing XML DOM parsing was really useless. The oAuth libraries needed some tinkering but manageable. The dependencies were the problem most of them were resolve by installing the mobile web server for s60 which has a bunch of python libraries like the cgi stuff.

    After all this rambling where is the stuff? Well I have not bothered to package it into a standalone sis. If anyone is interested let me know i will put the bunch of scripts out with hopefully some sensible instructions to get it running. Download the source here GTower FireEagle Updater

  • Eagleeye – Fireeagle and Bangalore traffic

    Posted on May 23rd, 2008 jebu Comments

    I have been using Fireeagle (FE), the location platform from Yahoo!, for some time and its great. It is a one stop place for location aware apps to take off. There are a dozen apps which update your FE location on a periodic basis, Navizon works great. But the real power of FE is going to be services powered by location information from FE. Take for example wikinear, wonderful stuff which gives you places of interest around your current location.

    So then inspired by wikinear i have a mash up of FE and btis.in to give you a view of the traffic hot spots around your current location. This queries your FE location and then gets the live traffic data from btis for the current city that you are in. It orders the traffic information based on the distance and then presents it on a map in 3 sections. Hopefully that should give some warning of the spots to avoid when you are planning to go out. Traffic information for cities supported by the Mapunity API’s will be given out. So this is not Bangalore specific. Best used from a mobile device. Feedback welcome.

    Here’s a snapshot

    Eagleeye snapshot