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.04 Hardy Heron
Pytrainer didn’t work for me under Ubuntu 8.04, because my Garmin Forerunner wasn’t attached to /dev/ttyUSBx something which Pytrainer assumes.
To use gpsbabel and Garmin Forerunner, a command like the one below is used
gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr
“usb:” is the input device. The problem is that Pytrainer checks if the device exists as a file/directory, which it doesn’t. The workaround is to open /usr/share/pytrainer/plugins/garmin-hr/main.py and change
if not os.path.exists(options.device):
into
if (not os.path.exists(options.device) and not options.device == "usb:"):
Updated 04-05-08 12:41:
Philippe Piquer just pointed out that the reason it don't work in Ubuntu 8.04, is that the garmin_gps module has been blacklisted. According to /etc/modprobe.d/blacklist because
# most apps now use garmin usb driver directly (Ubuntu: #114565)
Updated 04-05-08 21:21:
There must be a file /etc/udev/rules.d/51-garmin.rules containing
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", GROUP="plugdev", MODE="660"