This object is in archive! 

TCX export as Activity rather than as Course

Daniel Aschauer shared this idea 8 years ago
Completed

TCX export is now exporting a Course. It would be helpful to export as Activity, so the tcx can be uploaded to Garmin connect and/or other platforms that support tcx (e.g. Runalyze: https://runalyze.com/index.php)

Schema: http://www8.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd

Replies (10)

photo
2

100% agree! If all sensor data (collected from "ant" compatible devices) could be recorded and exported to Garmin Connect, I would leave my dedicated GPS at home for city walks and hikes (Garmin Oregon 600). Would like to output speed, distance, heart rate, elevation, temperature, and cadence (from bicycle, or or pod). Calculation and recording of Calories would be icing on the cake! GPX file exports to Garmin Connect correctly, but lacks much of the desired sensor data. Everything displays correctly during activity, but does not export to file without error from Garmin Connect. Love Locus Pro!

photo
1

Looks like importing a tcx file to Garmin Connect is still a problem? I don't blame Menion for not forking over $5000 to Garmin to do this! Is there a backdoor fix for this (to get ANT sensor data uploaded)?

photo
1

Hello guys,

is anyone of You willing to provide me some TCX file with these "activities" as a sample? I'm not promising, but at least I may look how complicated is it. Thanks

photo
1

Just voted for this. And there:

http://help.locusmap.eu/topic/tcx-and-gpx-export

I gave a step-by-step guidance what to change at the current Locus TCX format to get an activity-based file.

(by looking at TCX schema .xsd and a Garmin .tcx - and the result could be imported to SportTracks program)

photo
1

Hi guys,

you may thanks (me too) @HyPhan for extra work he had with precise description of what change to allow export to "Activity" as well.

Idea will be implemented in next version.

EDIT: One note. Because I do not use TCX , if anyone found any tags, content that may be improved in this export, please write me precise changes here, I'll gladly improve it!

photo
1

Used new version for the first time yesterday evening.

After I realized you have to choose the new activity sub-type in TCX export, the resulting file could successfully be imported (to ST). In comparison to the GPX export (where I still need to change a schema version of an include, so TCX is now my format of choice) the track, Heartrate and speed diagrams look identical.

Only the "paused" duration (actually I did not stop, only shows a few seconds) and the "fastest time" (probably searching for the fastest km anywhere in the run) differ a bit - but these are probably not included pre-calculated in the exports, but calculated by ST.


So - it worked - Thanks again!


A next step could be to include lap information in the Activity TCX (every 1km by default, or what is defined for the audio coach).

And it would be perfect if one could have multiple formats for auto-export (I guess GPX is still better suitable than TCX for non-running-activities like mountain hikes or skiing for import in Google Earth or such).

photo
1

Since the newest version, TCX is broken.

Calories are given as '0.0', but the field is an Integer. So the XML is not valid according to its xsd.

An online validator said this: (after changing this back to '0' the import worked again)

--------

Not valid.

Error - Line 11, 28: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 28; cvc-datatype-valid.1.2.1: '0.0' is not a valid value for 'integer'.

Error - Line 11, 28: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 28; cvc-type.3.1.3: The value '0.0' of element 'Calories' is not valid.

photo
1

Thank you, this happen without proper testing.

Issue will be fixed in next version.

photo
1

Tried TCX export as activity (Track with HRM). Import to Runalyze gave over 60.000 kcals !?

Exporting and importing same track as GPX gave correct value 324kcal

photo
1

Good day,

and how me may help here? Calories are not directly transfered in TCX files, but are calculated on side of service, in this case on side of Runalyze web service. There is probably a) problem in exported HR value from Locus Map ( you may check it on your own), or b) problem on Runalyze service.

Suggest to write them on support to check it (together with your TCX file) or simple use GPX files.

photo
1

This entry is found in the TCX:

<Calories>369310</Calories>


If it's kcal, it would fit, as locus itself is states 369kcal


From Runalyze support it is confirmed that it's kcal

photo
1

Ah thanks, my bad, calories are in-deed transfered in TCX files. Does anyone had an idea, which are correct units for <calories> in TCX? Because as you may see, Locus correctly included consumed calories in real "calories" , not in kcal or joules and as I see, in TCX spec is not directly wrote about units.

photo
1

Calories (with capital) = kcal ?

photo
1

Hmm oki, let's try it with value divided by 1000, so with kcal and we will see if someone else will complain because of other web service that needs different units. Hope it will also solve weird 60.000 kcals value that @Uatschitchun mentioned before. Thanks

photo
1

Info by Google search.

Small & large calories. (calorie & Calorie)

http://www.rapidtables.com/convert/energy/Calorie_to_kCal.htm#converter

photo
1

Ah very good information, thanks Willy!!

photo
2

That 60.000+ was because largest possible value in runalyze is 65535. So the 369.000 were shortened

Replies have been locked on this page!