Forget to reset your Garmin between workouts?
I love my Garmin Forerunner 305 – I never run / bike / hike without it. I usually download my workout while I stretch, but sometimes that isn’t convenient (especially when traveling) so I just leave the workout on the watch to download later. Whenever I do this I inevitably forget to reset the watch before my next workout … and end up with two (or more) workouts grouped together as one when I finally get around to downloading the data from my watch.
Unfortunately, none of the tools I’ve used to import my data provide a way for me to split this combined “workout” into separate workouts. To overcome this, I wrote a little script which reads a tcx file and splits it up into separate workouts based on the amount of time between one lap stopping and the next starting. You can use it online at my Garmin Workout Splitter page.
The source code for the site is included below. It is quite reliant on the structure of Garmin’s tcx files -mostly because Garmin seems to be a bit overly sensitive about capitalization (and maybe spacing too) which meant I couldn’t use BeautifulSoup to do the parsing (I tried, and then realized Garmin wouldn’t have any of that, doh).

