View Single Post
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#28
Originally Posted by vabgeo View Post
What kind of mounting do you have to keep the N800 on the handlebars?

if you have gpsd and python, here is the python code to get the gps data

import gps, os, time
session = gps.gps()
while 1:
os.system('clear')
session.query('admos')
# a = altitude, d = date/time, m=mode,
# o=postion/fix, s=status, y=satellites
print
print ' GPS reading'
print '----------------------------------------'
print 'latitude ' , session.fix.latitude
print 'longitude ' , session.fix.longitude
print 'time utc ' , session.utc, session.fix.time
print 'altitude ' , session.fix.altitude
print 'eph ' , session.fix.eph
print 'epv ' , session.fix.epv
print 'ept ' , session.fix.ept
print 'speed ' , session.fix.speed
print 'climb ' , session.fix.climb

time.sleep(1)
Wow, super simple. Didn't realise it was so easy to get gps data. I feel a coding session coming on for me to have a play with this somemore.
__________________
LinuxUK.org - http://www.linuxuk.org