Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffvestal/ifittcxpowerfromcsv
Add Watts power reading to tcx file from csv file exports
https://github.com/jeffvestal/ifittcxpowerfromcsv
Last synced: 5 days ago
JSON representation
Add Watts power reading to tcx file from csv file exports
- Host: GitHub
- URL: https://github.com/jeffvestal/ifittcxpowerfromcsv
- Owner: jeffvestal
- License: gpl-3.0
- Created: 2021-04-18T18:13:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T00:59:38.000Z (about 3 years ago)
- Last Synced: 2024-10-29T23:43:42.388Z (about 2 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ifitTcxPowerFromCsv
Add Watts power reading to tcx file from csv file exportsAuthor : Jeff Vestal - github.com/jeffvestal
iFit refuses to include Watts in the workout export tcx file for some reason
Watts is included in the csv but that can't be used for Strava or other fitness sitesThis script :
1. creates a dictionary of time(offset from start) : Watts for lookup
2. Converts the tcx (xml) file to a dict for ease of use in python
3. For each trackpoint:
1. Calculate the offset from the start
2. use that offset to lookup the watts reading
3. add an Extensions dict that includes Watts to the trackpoing
4. Write the updated data back to a file in tcx (xml) format
Input:the basename of the ifit export.
NOTE: the tcx and csv are assumed to have the same basename, just different file extensions
The csv and tcx files can be manually exported from the workout summary screen on iFit's website.
Output:1. File named: basename-combined.tcx
2. Dump of any skipped trackpoints just for referenceRunning
`./ifitTcxPowerFromCsv `eg.
tcx and csv downloaded files for 1 workout:
2021_10_21_06_10_Nesjavallavegur_Interval_Climb,_South_Iceland,_Iceland.csv
2021_10_21_06_10_Nesjavallavegur_Interval_Climb,_South_Iceland,_Iceland.tcxCommand to Run:
`./ifitTcxPowerFromCsv ./2021_10_21_06_10_Nesjavallavegur_Interval_Climb,_South_Iceland,_Iceland`