[OSM-talk] OT: gpsbabel frontend
Ed Davies
osm at edavies.nildram.co.uk
Fri Nov 24 11:27:47 GMT 2006
Christoph Eckert wrote:
> I wonder if gpsbabel was used by some people on this list (I guess,
> surely you do :) . A small survey: Do you use it?
Yes.
> On which machine?
My computer :-) Ubuntu.
> Do you use a frontend?
Just a shell script (/usr/local/bin/suck-garmin):
#!/bin/sh
PORT=${1:-/dev/ttyS0}
TARGET=${2:-~/projects/gpslogs}
STAMP=${3:-`date --utc +%Y%m%dT%H%M`}
echo Stamp $STAMP
echo Reading waypoints...
gpsbabel -i garmin -f $PORT -o gpx -F "$TARGET/${STAMP}waypoint.gpx"
echo Reading tracklogs...
gpsbabel -t -i garmin -f $PORT -o gpx -F "$TARGET/${STAMP}tracklog.gpx"
# echo Reading routes...
# gpsbabel -r -i garmin -f $PORT -o gpx -F "$TARGET/${STAMP}route.gpx"
gpsbabel -i garmin,power_off -f $PORT
Thanks to somebody else on this list (Rob Hart???), who posted
a similar script, for the ideas of using the default parameter
forms and switching the garmin off at the end.
> Which one? Are you missing something in it?
Currently I trim out the bits of the tracklog I want to upload
to OSM using a text editor, without bothering to update the
bounding box. It would be nice if JOSM or some other application
could do this graphically. Am I missing something?
I have some thoughts on writing a little program for this but
I've plenty of other uses for the relatively small amount of
time I want to spend on programming just now.
Ed.
More information about the talk
mailing list