GPS - how to get lat lon and time from a bash script file ?

Timo Juhani Lindfors timo.lindfors at iki.fi
Sun Feb 22 14:43:40 CET 2009


kimaidou <kimaidou at gmail.com> writes:
> * know when I got a fix
> * put the latitude, longitude and time into variables (and why not the
> precision too : hdop)

$ cat bin/gps-get-position
#!/bin/sh
echo p | nc -w1 0 gpsd | tr -d '\r\n' | cut -d'=' -f2






More information about the community mailing list