thoughts scribbles images from silicon plateau
RSS icon Home icon
  • Fireeagle location updater

    Posted on September 2nd, 2008 jebu 8 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

    • aria

      hai jebu,
      i read your article, and yes i don’t understand python at all but it sounds very promising to me :)

      maybe you could kindly share your code (.py is okay, zipped rite? :P ) (my cellphone doesn’t have gps).. and a maybe a brief introductions how to get it running ;)

      ok, thanks :)

    • http://blog.jebu.net jebu

      here you go, have updated the post with the necessary scripts, see how it goes

    • http://blog.jebu.net jebu

      here you go, have updated the post with the necessary scripts, see how it goes

    • http://www.cheapbootsforsale.us ugg boots

      “Well , the view of the passage is totally correct ,your details air jordan 19 is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!

    • http://www.cheapbootsforsale.us ugg boots

      “Well , the view of the passage is totally correct ,your details air jordan 19 is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!

    • http://www.cheapbootsforsale.us ugg boots

      “Well , the view of the passage is totally correct ,your details air jordan 19 is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!

    • http://www.air-jordan-15.com air jordan 15

      Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or
      gucci store
      If its common it might be difficult to get, however, be creative and you can usually find something.

    • http://www.moncler-down-jackets.com air jordan 8

      The post of content is very interesting and exciting. I learned a lot from here.The content from simple to complex, air jordan 8 so all of you can come in .ugg boots for sale No matter you want to see what can be found.By the way ,there are some websites is also very wonderful,you can go and see.such asair force 1 shoes