O'Reilly logo
  • Hector Serrano thinks this is interesting:

This script will continuously fetch data from gpsd, and write it in the KML format, to /tmp/nmea.kml.


Cover of Raspberry Pi for Secret Agents - Third Edition


The gegpsd.py script generates an error: pi@raspberrypi:~ $ python ~/gegpsd.py Traceback (most recent call last): File "/home/pi/gegpsd.py", line 12, in <module> latitude = report['lat'] File "/usr/lib/python2.7/dist-packages/gps/client.py", line 211, in getitem return self.dict[key] KeyError: 'lat'

This also happens if running the HTTP server in tandem. Could be no GPS fix when run. 20180517,HFS Indeed, it runs when the GPS has a fix. Just ran at 9:55PM, and saw the house location in Google Earth. 20180517,HFS