On Fri, August 8, 2008 11:15, Dave G wrote:
> Hi all
>
>
> I have been mucking around with a (very rough) bash script for a couple
> of days which I'm using to download the current real-time location from a
> Holux GPS
> data logger
<snip>

Seems a bit unnecessarily complicated.

Why not do it in Python?

1) Open a link to the GPS data source (either directly, or from gpsd)
2) Receive $GPRMC and $GPGGA strings.
3) Parse the strings to extract lat/lon (and anything else you need)
4) Write a GPX file, constructed exactly how you like it.

Also, you can leave gpsd running all the time, and the $GPRMC string is
sufficient just to get lat/lon.

Each of these steps is very simple, and whilst I appreciate that using
pre-built stuff like GPSBabel is attractive, I think it's not appropriate
for this problem.

Just my opinion of course.

Andrew

Reply via email to