Git Product home page Git Product logo

tcx-merger's Introduction

merge_tcx

This script was develop with the very specific purpose of merging HeartRate data from one .tcx-file into another .tcx-file.

However... The class ParseTcx.py is a generic class that can parse any .tcx-file. This can be very useful if one would like to use Python to analyze the data in one way or another.

Background

I use a Tacx Bushido trainer and a Garmin 920XT. I get almost all the data collected in the files that are exported from the Tacx Cycling App, but since my HeartRate monitor only connects to my watch (Garmin 920XT) a need to merge that data into the file from the Tacx Cycling App.

Usage

Edit: Config.py

# Add .tcx file from the Tacx trainer and your Garmin device to a new row
...
config['2016-02-18'] = Session('BRH-16-Full course(6).tcx', 'activity_1055207164.tcx')
config['2016-02-09'] = Session('BRH - 17 - Full course(1).tcx', 'activity_1045149528.tcx')
...

Edit: run.py

# 1) Add current date to MergeTcx('date')
# 2) Run run.py

merged = MergeTcx('2016-02-01')
tcx = ParseTcx(merged.file_name)
tcx.parse()
tcx.plot_signal('HeartRateBpm')

This will give you a new file 2016-02-01_merged.txt with to original .tcx from the trainer merged with HeartBeatData from your Garmin device.

Upload to Strava

Goto: https://www.strava.com/login to upoad the merged file.

tcx-merger's People

Contributors

trieb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.