<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Christoffer Kjølbæk &#187; Running</title>
	<atom:link href="http://ostehamster.dk/blog/index.php/tag/running/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostehamster.dk/blog</link>
	<description>I have a blog, therefore I am…</description>
	<lastBuildDate>Sun, 18 Jul 2010 12:16:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pytrainer in Ubuntu 9.10, Karmic Koala</title>
		<link>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:43:46 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Løb]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Running]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=573</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>I have had problems with Pytrainer in both Ubuntu <a href="http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/">8.04</a> and <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, 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.</p>
<p>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 :)<br />
<span id="more-573"></span><br />
Enabling the Garmin HR plugin, restarting Pytrainer and clicking "Import from Garmin" did nothing, not even a warning or error in the terminal. Looking at my old post from <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, I opened <code>/usr/share/pytrainer/plugins/garmin-hr/main.py</code> to see what was going on.</p>
<p>Pytrainer is using gpsbabel like <code>gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr</code>, where <code>%s</code> is the device, <code>usb:</code>. But running</p>
<blockquote><p>gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr</p></blockquote>
<p> in a terminal give this result:</p>
<blockquote><p>Claim interfaced failed: could not claim interface 0: Operation not permitted</p></blockquote>
<p>It is therefore still required to make a udev rule for the device.</p>
<p><strong>How to get it working</strong><br />
Make the rule file</p>
<blockquote><p>sudo gedit /etc/udev/rules.d/51-garmin.rules</p></blockquote>
<p>add the below and close:</p>
<blockquote><p>SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666" </p></blockquote>
<p>restart udev:</p>
<blockquote><p>sudo /etc/init.d/udev restart</p></blockquote>
<p>Now Pytrainer can start gpsbabel, and retrieve data from the watch, which unfortunately just leads to another problem:</p>
<blockquote><p>Traceback (most recent call last):<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/main.py", line 166, in runPlugin<br />
    self.record.importFromGTRNCTR(gtrnctrFile)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/record.py", line 410, in importFromGTRNCTR<br />
    listTracksGPS = xmlParser.shortFromGPS(gtrnctrFile, True)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/lib/xmlUtils.py", line 127, in shortFromGPS<br />
    tree = xml.etree.cElementTree.parse(gtrnctrFile).getroot()<br />
  File "<string>", line 45, in parse<br />
  File "</string><string>", line 32, in parse<br />
SyntaxError: unbound prefix: line 13, column 8</string></p></blockquote>
<p>According to this <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536572">bug report</a>, it is a problem between Pytrainer and gpsbabel 1.3.6. Luckily it is still possible to get gpsbabel 1.3.5 at <a href="http://packages.debian.org/lenny/i386/gpsbabel/download">http://packages.debian.org/lenny/i386/gpsbabel/download</a>, which I downloaded and installed, and it worked with Pytrainer.</p>
<p>However, Pytrainer imports all data from today back to 24 May 2009, the date of the marathon, and stops without any error. It might be because this record has 43 laps, but I do not know. Anyway, it is quite useless if it is not possible to retrieve all data from the watch.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Runningstats and goals &#8211; 2009</title>
		<link>http://ostehamster.dk/blog/index.php/2009/02/07/runningstats/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/02/07/runningstats/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 21:44:41 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Løb]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Running]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=248</guid>
		<description><![CDATA[

Dist
&#160;&#160;
Time
&#160;&#160;
Date
&#160;&#160;
Min/km
&#160;&#160;
"Proof"


5 km
&#160;&#160;
0:20:55
&#160;&#160;
21. Aug 2008
&#160;&#160;
4:11
&#160;&#160;
 Garmin Forerunner 305


10 km
&#160;&#160;
0:45:59
&#160;&#160;
5. Feb 2009
&#160;&#160;
4:36
&#160;&#160;
 Garmin Forerunner 305


15 km
&#160;&#160;
1:11:05
&#160;&#160;
16. Apr 2008
&#160;&#160;
4:44
&#160;&#160;
]]></description>
			<content:encoded><![CDATA[<table>
<tr style="font-weight: bold;">
<td>Dist</td>
<td>&nbsp;&nbsp;</td>
<td>Time</td>
<td>&nbsp;&nbsp;</td>
<td>Date</td>
<td>&nbsp;&nbsp;</td>
<td>Min/km</td>
<td>&nbsp;&nbsp;</td>
<td>"Proof"</td>
</tr>
<tr>
<td>5 km</td>
<td>&nbsp;&nbsp;</td>
<td>0:20:55</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">21. Aug 2008</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">4:11</td>
<td>&nbsp;&nbsp;</td>
<td> Garmin Forerunner 305</td>
</tr>
<tr>
<td>10 km</td>
<td>&nbsp;&nbsp;</td>
<td>0:45:59</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">5. Feb 2009</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">4:36</td>
<td>&nbsp;&nbsp;</td>
<td> Garmin Forerunner 305</td>
</tr>
<tr>
<td>15 km</td>
<td>&nbsp;&nbsp;</td>
<td>1:11:05</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">16. Apr 2008</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">4:44</td>
<td>&nbsp;&nbsp;</td>
<td "><a href="http://sparta.dk/spartalob/resultater/383we.aspx">Nike Marathontest 2</a></td>
</tr>
<tr>
<td>½ MAR</td>
<td>&nbsp;&nbsp;</td>
<td>1:37:43</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">27. Apr 2008</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">4:38</td>
<td>&nbsp;&nbsp;</td>
<td><a href="http://results.ultimate.dk/liveappc/front/person.php?eventid=500&#038;template=bthalv2006.htm&#038;from=search&#038;Pid=3511&#038;Bib=&#038;FirstName=&#038;LastName=kj%F8lb%E6k&#038;Club=">BT ½ MAR</a></td>
</tr>
<tr>
<td>1 MAR</td>
<td>&nbsp;&nbsp;</td>
<td>3:41:46</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">18. May 2008</td>
<td>&nbsp;&nbsp;</td>
<td style="text-align: right;">5:15</td>
<td>&nbsp;&nbsp;</td>
<td><a href="http://www.copenhagenmarathon.dk/resultatsider/DKmarathon2008Maend.htm">CPH MAR</a></td>
</tr>
</table>
<p><span id="more-248"></span><br />
I have no official 5 km run, and my best official 10 km was 46:18, 1. Feb 2009 at <a href="http://sparta.dk/Resultatsider/nikemarathontest1test1maend10km2009.htm">Nike Marathontest 1</a></p>
<p>Short-term goals (2009):</p>
<table>
<tr style="font-weight: bold;">
<td>Dist</td>
<td>&nbsp;&nbsp;</td>
<td>Time</td>
</tr>
<tr>
<td>5 km</td>
<td>&nbsp;&nbsp;</td>
<td>&lt;0:20:00</td>
</tr>
<tr>
<td>10 km</td>
<td>&nbsp;&nbsp;</td>
<td>&lt;0:42:00</td>
</tr>
<tr>
<td>15 km</td>
<td>&nbsp;&nbsp;</td>
<td>&lt;1:05:00</td>
</tr>
<tr>
<td>½ MAR</td>
<td>&nbsp;&nbsp;</td>
<td>&lt;1:30:00</td>
</tr>
<tr>
<td>1 MAR</td>
<td>&nbsp;&nbsp;</td>
<td>&lt;3:30:00</td>
</tr>
</table>
<p>Long-term goals:</p>
<ul>
<li>Marathon &lt;3:00:00 </li>
<li>100 km</li>
<li>Try 24 hours run</li>
<li>Survive an Ironman</li>
<li><a href="http://www.worldmarathonmajors.com/">World Marathon Majors</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/02/07/runningstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pytrainer in Ubuntu 8.04 Hardy Heron</title>
		<link>http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/</link>
		<comments>http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/#comments</comments>
		<pubDate>Sat, 03 May 2008 14:02:56 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Running]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pytrainer.e-oss.net/index.php">Pytrainer</a> didn’t work for me under Ubuntu 8.04, because my Garmin Forerunner wasn’t attached to /dev/ttyUSBx something which Pytrainer assumes.</p>
<p>To use gpsbabel and Garmin Forerunner, a command like the one below is used</p>
<blockquote><p>gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr</p></blockquote>
<p>“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 <code>/usr/share/pytrainer/plugins/garmin-hr/main.py</code> and change</p>
<blockquote><p>if not os.path.exists(options.device):</p></blockquote>
<p>into</p>
<blockquote><p>if (not os.path.exists(options.device) and not options.device == "usb:"):</p></blockquote>
<p><strong>Updated 04-05-08 12:41:</strong><br />
<a href="http://sourceforge.net/mailarchive/message.php?msg_name=ddc176860805040155k303152d2wda9ab73cd0a33481%40mail.gmail.com">Philippe Piquer</a> 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<br />
<blockquote># most apps now use garmin usb driver directly (<a href="https://bugs.launchpad.net/ubuntu/+source/module-init-tools/+bug/114565">Ubuntu: #114565</a>)</p></blockquote>
<p><strong>Updated 04-05-08 21:21:</strong><br />
There must be a file <code>/etc/udev/rules.d/51-garmin.rules</code> containing</p>
<blockquote><p>SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", GROUP="plugdev", MODE="660"</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
	</channel>
</rss>
