Pytrainer in Ubuntu 9.10, Karmic Koala
I have had problems with Pytrainer in both Ubuntu 8.04 and 8.10, but have manage to get it working. I did not use Pytrainer in 9.04, because I got a little tired of looking at graphs and was following a running program where it was not necessary.
If have been injured for some month now, but hoping to be ready for Copenhagen Marathon 2010, and would therefore like to examine my last marathon using Pytrainer. I therefore installed it, and hoped it would work out of the box - but no :)
Runningstats and goals – 2009
| Dist | Time | Date | Min/km | "Proof" | ||||
| 5 km | 0:20:55 | 21. Aug 2008 | 4:11 | Garmin Forerunner 305 | ||||
| 10 km | 0:45:59 | 5. Feb 2009 | 4:36 | Garmin Forerunner 305 | ||||
| 15 km | 1:11:05 | 16. Apr 2008 | 4:44 | Nike Marathontest 2 | ||||
| ½ MAR | 1:37:43 | 27. Apr 2008 | 4:38 | BT ½ MAR | ||||
| 1 MAR | 3:41:46 | 18. May 2008 | 5:15 | CPH MAR |
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
