advancedcaching
advancedcaching copied to clipboard
Support gpsd 2.95
gpsd 2.95, the default in Ubuntu 11.04, have switched to a json-based protocol. The old implementation in agtl have stopped working. I have a patch that I will attach shortly.
I couldn't attach the patch here, but created a gist instead: https://gist.github.com/1273398 Comments are welcome! I first tried to use the "gps" Python module to interface gpsd but I found it hard to use.
It would be nice to keep support for the existing GPSD. It's not only used on desktop systems, but for example on the openmoko freerunner as well.
I have recently updated modRana to work with the new protocol. Startup: http://modrana.org/trac/browser/trunk/modules/mod_location.py#L79 A thread reading position data from the new GPSD interface (it runs every time some new data is available): http://modrana.org/trac/browser/trunk/modules/mod_location.py#L260 Shutdown: http://modrana.org/trac/browser/trunk/modules/mod_location.py#L92 Hope it helps. :)