View Single Post
Old 08-20-19 | 02:11 AM
  #13  
bhugh
Junior Member
 
Joined: Aug 2019
Posts: 8
Likes: 1
My long post above is a lead-up to: I've been working on a solution to prune & trim those TCX files so the routes with work with Lezyne units:
  • TCX Prune - TCX file pruner/splitter. Runs as windows .exe, python script, OR online web script to prune & split .tcx files
    • Download here github. com/bhugh/tcxprune/releases
    • You can also try it online here: repl. it/@bhugh/TCXPrune
    • (sorry, I can't post live links yet)
I could find plenty of programs that would trim & prune GPX files but none for TCX.

So I made this script.

HOW TO USE UNDER WINDOWS

If you want to run it windowed under windows, just download vprune.exe file, save it to a directory, double click to run it, and then select the file using the window/buttons and press "Process file".

It has many options you can play with but for basic use with Lezyne units you can just accept the default values.

You'll end up with 2 or 4 or 8 or so files named vp_1_myfile.tcx, vp_2_myfile.tcx, and so on. They overlap just a little and each is small enough to actually upload (in reasonable time) and work with Lezyne units.

HOW TO USE UNDER WINDOWS COMMAND LINE

More details in the readme file at github.com/bhugh/tcxprune - but to use it under windows, if you're comfortable with command line programs just download vprune-console.exe, open cmd and type:
Code:
vprune-console.exe myfile.tcx
Similar to above, you'll end up with several files in the same directory as your original file, that are pruned and split. As above, there are many possible options but you can just ignore them unless you want to dig into the details.

HOW TO USE UNDER PYTHON (including on Android)

The script will run on any platform that has python installed. If you have python installed you probably don't need me to tell you more.

FYI I've been running it on my android phone under Termux+python - a portable solution to pruning/trimming those .tcx files that doesn't even need an internet connection.

DOWNLOAD - FREE, OR TRY ONLINE

Download windows .exe or python version here: github.com/bhugh/tcxprune/releases

Or try it online here: You can also try the app on repl.it at repl.it/@bhugh/TCXPrune (Please fork the repl first, then run--it works a lot better that way. Giant button up top: "FORK". Click it.)
bhugh is offline  
Reply