Hi all,
I have finished installing my USB GPS dongle and I'm happy its stable. This took a bit of sorting as it wasn't picking up the dongle on startup, but all sorted now.
So, my plan is for the pi to site on the parcel shelf of my car, and start logging when the pi starts up, ie when I start the ignition. I'm going to power it from a cigarette lighter, so thats the on/off sorted.
I don't need a network connection as I simply want it to log where I've been. I can then upload the files later either using rSync or manual upload.
What I can't seem to get sorted is the logging facility. I want it to log from when the pi is started. How do I do this? I've searched through the forum, but nothing seems to solve the problem. I've written a command into rc.local that is meant to start the logging, but it isn't working.
The commands are:
sudo killall gpsd
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
sudo service ntp restart
gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
gpxlogger -m -f /home/pi/gpslog'%Y%m%d%H%M'
Can anyone help me solve this simple problem?
P