I've installed gpsd on my RPi3. Everytime I want to use it, I have to manually enter
"sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock". Is there a way to start the daemon automatically or with help of a python script?
And maybe one could help me with another problem:
To access gpsd I have installed "gps3 0.33.3" from https://pypi.python.org/pypi/gps3/.
When I'm trying to read the time-Information and output it, it seems like python misses two to three seconds from time to time.
What could be the reason?
from gps3 import gps3
gps_socket = gps3.GPSDSocket()
data_stream = gps3.DataStream()
for new_data in gps_socket:
data = data_stream.TPV['time']
Thank you in advance,