Geotagging images with Garmin Forerunner in Ubuntu
This guide will show how to geotag images in Ubuntu using GPS data from Garmin Forerunner 305. The software used is gpsbabel and gpscorrelate.
Start by capturing data from the watch, using
gpsbabel -t -r -w -i garmin -f usb: -o gpx -F data.gpx
which will get all data from the watch, and a XML file.
GPScorrelate can be used both in console and GUI mode, using the console tool on a collection of images is done like
gpscorrelate -g data.gpx *.jpg
Opening one of the images with for instance eog, it can be seen that the GPS data has been added to the EXIF info.

The result can be shown in various programs and web application, for instance PicasaWeb
http://picasaweb.google.com/ostehamster/Fotosafari
NB: Remember to select the correct time zone!
Pytrainer in Ubuntu 8.10, Ibex Intrepid
I just use the Gutsy binary, which works fine in Ibex.
echo "deb http://www.e-oss.net/ubuntu/gutsy/ ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install pytrainer
sudo apt-get install python-gnome2-extras
To get the Garmin kernel driver working in user space, make an udev rule in /etc/udev/rules.d/51-garmin.rules with this content
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"
Pytrainer is made to use path like /dev/ttyUSBX to connect to the Garmin watch. I believe the right way is to use Garmin usb driver directly, hence usb: in the config. Therefore you have to open /usr/share/pytrainer/plugins/garmin-hr/main.py and change
if not os.path.exists(options.device):
to
if (not os.path.exists(options.device) and not options.device == "usb:"):
In Tools -> GPS Device Plugins -> Garmin* ->Preferences change device to [usb:] and status to [Enable].
Thats it, have fun :)
Updated: 11 January 2009:
- Quotes in code-blocks is now "copy/paste enabled"
- Pauls comment from December 31st, 2008 at 14:22 added to the text
Word-wrap in LaTeX \table?
I am trying to make word-wrap in a table, which isn't going that well :)
I found a solution at this blog, which uses
\begin{tabular}{|c|p{5cm}|p{5cm}|}
to set the width of the two last columns to 5 cm. It is futhermore possible to use
p{\linewidth-2cm}
which for me is better, but I still would prefere not to have any fixed width in my docmument.
Any ideas?

