Skip to content

CLI application to view information like heart rate, run cadence and others from a TCX-file.

Notifications You must be signed in to change notification settings

tderflinger/tcx-ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Futuristic runner

Logo tcx-ls

This is a command line tool to view information from a TCX-file. It displays information like accumulated time, accumulated distance, maximum speed, average pace, maximum run cadence, and more.

Furthermore, export the tracks as a GeoJSON file or the lap information as a CSV file.

The TCX file format is used by Garmin devices and other devices to store data such as GPS coordinates, heart rate, and other sensor data. You can export it for example from the Garmin Connect application.

The TCX file format schema is described on this page: https://www8.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd

Binary Release

You can download the binary version of the CLI tool from the releases page. The binary is compiled for x86 Linux.

First, make it executable, like so:

chmod +x ./tcx-ls

Start the application via:

./tcx-ls /path/to/your/file.tcx

In order to view the lap details, use the '-l' flag:

./tcx-ls -l /path/to/your/file.tcx

You can also export the tracks as a GeoJSON file:

./tcx-ls --geojson output.json /path/to/your/file.tcx

In order to export the laps as a CSV file:

./tcx-ls --csv laps.csv /path/to/your/file.tcx

Command Options

Option Description
-l View the lap details
-c View the creator data
-a View the author data
--geojson Export the tracks as a GeoJSON file
--csv Export the laps as a CSV file

Source Installation

As a pre-requisite for running tcx-ls from source, you need to have Deno installed.

Then, install the dependencies using the following command:

deno install 

Usage

Specify the TCX file as an argument to view the sports activity information.

deno run --allow-read main.ts /path/to/your/file.tcx

If you want to export GeoJSON or CSV data you need to add --allow-write.

License

This project is licensed under the MIT License.

About

CLI application to view information like heart rate, run cadence and others from a TCX-file.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published