Using Garmin with linux and gpsbabel
This post if more for myself then for others because you can find this information on many places. I bought a Garmin GPS Map 60 some time ago. It works great with Linux and the GPSBabel software. In order to transfer the loc files from the Geocaching.com side you can use this script:
#!/bin/bash
rm a.csv
rm a.kml
rm a.gpx
for i in *.loc
do
gpsbabel -i geo -f $i -o csv,prefer_shortnames -F $i.csv
cat $i.csv >> a.csv
rm $i.csv
done
gpsbabel -i csv -f a.csv -o kml -F a.kml
gpsbabel -i csv -f a.csv -o gpx -F a.gpxsudo gpsbabel -i gpx -f a.gpx -o garmin -F usb:0
sudo gpsbabel -i garmin,power_off -f usb:0
This script converts all the *.loc files in one folder into one GPX and one KML file. the KML file can be placed on a webserver and then fiewed with google maps or via google earth. Here are some usefull commands:
Upload route:
sudo gpsbabel -r -i garmin -f usb:0 -o kml -F u.kml
Tracks downloaden from Garmin:
sudo gpsbabel -t -i garmin -f usb:0 -o gpx -F tracks.gpx
Switch the Garmin off:sudo gpsbabel -i garmin,power_off -f usb:0
Best Webpage I found for creating routes for bike tours is Marengo
And now have fun.










December 18th, 2008 at 13:26
First of all congratulation for such a great site. I learned a lot reading article here today. I will make sure i visit this site once a day so i can learn more.
December 20th, 2009 at 14:45
I feel so good when I read helpful articles like this on the internet.
January 28th, 2010 at 09:21
I’m amazed and happy to say that garmin products is of high quality albeit the price is also a bit high but it’s worth paying.
March 6th, 2010 at 16:26
Great Blog! We have a similar site, and obtain a lot of spam. Do you face such problems? Can you please recommend some steps I decide to try combat spam. Thanks.
April 15th, 2010 at 02:47
That’s incredible and so nicely written. Generally I tend not to make comments on post on blogs, Then again I have got to give you props on this one. Great article