A Clojure program to convert MyWellness® json training data to Training Center XML.
The resulting tcx file can then be uploaded to other sites such as stava.com.
I've developed a webversion that converts the raw data in the browser. https://alsterman.github.io/wellness2tcx-cljs/ The code runs in your browser and the data never leaves your machine.
The source code is available at https://github.com/alsterman/wellness2tcx-cljs
Getting the raw data from mywellness.com
- Open up Google Chrome.
- Log in to mywellness.com and navigate to the workout you want to convert.
- Open the chrome developer tools and navigate to the network tab.
- Refresh the page
- Filter the requests by
Details?
- Right click the last response and
Copy -> Copy respose
- The raw data is now on the clipboard.
- Save it to a file.
The latest jar file can be downloaded here: wellness2tcx-0.1.1-standalone.jar Place the downloaded file in the same directory as the raw data file.
Make sure you have Java 8 installed.
- Open a terminal and move to the directory where you placed the downloaded the jar file and raw data file.
- Run the program with the following command. Replace
readfilename
with the name of the saved file,hh:mm:ss
with the time you started the exercise andwritefilename
with the desired save filename, ending with .tcx
$ java -jar wellness2tcx-0.1.0-standalone.jar readfilename hh:mm:ss writefilename
Example
$ java -jar wellness2tcx-0.1.0-standalone.jar input-viktor.json 12:00:00 output-viktor.tcx
The resulting file can be found in the folder and can be uploaded to another site such as Strava.
Copyright © 2019 Marcus Alsterman