Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import gps3; print(gps3.__file__)
- from gps3 import gps3
- gps_socket = gps3.GPSDSocket()
- data_stream = gps3.DataStream()
- gps_socket.connect()
- gps_socket.watch()
- for new_data in gps_socket:
- if new_data:
- data_stream.unpack(new_data)
- print(" --- ")
- for key, value in data_stream.TPV.items():
- print( "%s: %s" % (key, value) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement