I’m not sure if it is a bug, or a feature request.
I used the TrainerDay App for some workouts and the sync to Strava works great.
I also connected Dropbox to get the TCX Files in a handy folder to upload them to Garmin Connect … but Garmin Connect refused the TCX Files with an error.
When I download the FIT Format from the website everything uploads fine.
You know what is interesting Frank is that my developer downloaded your TCX and uploaded to his GC account with no problem. He did it from both web and dropbox. He said if you could provide the error it would help
@Alex Is there a particular reason why TCX rather than FIT activity files are sent to Dropbox?
I use Dropbox to send activities to Intervals.icu and they have a neat function to extract the workout structure from FIT files to create a workout in Intervals. It needs a FIT files and the workout data (as in structure) is stored in the file.
I’m not sure if this is something you are interested in doing or not, but no harm in asking the question.
Just putting a note here as this is not just our fit files that David would need, he would also need the original planned workout added to the fit file which we currently don’t do.
Fit files for Dropbox would be really cool as importing the .tcx files from trainerday results in a loss of distance in Garmin Connect. There is also a trackpoint entry in the .tcx file with only zeros, which makes no sense and destroys charts/metrics depending on the importing service.
Okay i found the last bug in the tcx file preventing garmin connect from having distance, etc. The following needs to be fixed:
Remove the trackpoint entry (last one) with only zeros
Before the <Track> tag is used there must be a <DistanceMeters>x</DistanceMeters> entry which specifies the distance. There also other tags missing btw
By adding TrainerRoads or a Garmin device, such as a watch or edge, as Author/Creator Garmin Connect will also contribute the distance to challenges / badges and maybe also calculate training stress
Yeah. I uploaded the original tcx file + a fix for distance and graphs + a garmin spoof (vivoactive as example (UnitID needs to be replaced with a garmin device though)) for badges, etc
Fixes for distance:
The last trackpoint entry needs to be removed since it only contains zeros
The <DistanceMeters> value can simply be extracted from the last correct trackpoint entry.
I also found following:
Garmin also adds a <MaximumSpeed> tag below the <DistanceMeters> e.g: <MaximumSpeed>8.550999641418457. But i think it isnt needed since garmin automatically extracts max speed from the trackpoints
<TotalTimeSeconds> is off by 2 seconds (in comparison to trainerday website and the provided trackpoints). Correct would be x - 2 for correct avg calculations by garmin connect
Garmin and the Tacx Training app also provide following after the trackpoints:
<Extensions>
<ns3:LX>
<ns3:AvgSpeed>7.612491716368456</ns3:AvgSpeed>
<ns3:MaxBikeCadence>69</ns3:MaxBikeCadence>
<ns3:AvgWatts>114</ns3:AvgWatts>
<ns3:MaxWatts>183</ns3:MaxWatts>
</ns3:LX>
</Extensions>
but i dont think it’s needed distance_graph_fix.tcx (594.9 KB) garmin_spoof.tcx (595.3 KB) original.tcx (595.5 KB)
I just found another bug in the tcx exports: when doing a workout with multiple intervals the total stats of the workout are only based on the first interval. for example if i had a warmup of 5 minutes, only the stats of this warmup would be represented in the total stats and the remaining intervals wont be included in the total stats (e.g. 50km in total but only the stats of the 2km warmup are given in the total stats (e.g. 5min, 2km, average heart rate, etc))
Thanks so much… I don’t think we have changed this in a long time, surprising no one caught it. We will try to fix the main issues here soon. We could probably inject everything but faking the device although in the future we could see if we can read someones device info or add them to add it, and then we could automatically add it possibly. The someone just needs to build a simple process to import from dropbox to Garmin. Cloud based would be nice.
Since Garmin doesn’t provide any api the process/program would have to have access to the login information (username/password) to login into garmin connect and upload the activity.
I don’t think a cloud based solution would be good considering that it would need the password in plain text.
Maybe a garmin iq app would be an option which curls done-activities from trainerday and then saves them as regular garmin activities. I haven’t looked into the garmin iq docs though, so i don’t know if activities from iq apps count for badges, etc
Yes, other apps do this now but I agree it’s not good and we are not willing to do this, due to both security as well as our reputation. But if someone else did it, I don’t mind telling people it is a solution
That’s a fun/interesting idea with Garmin IQ. Then you solve what I assume Garmin’s biggest problem is, which is people using their platform without using their hardware or very old expired hardware. I think Garmin needs to approve IQ apps so if you were transparent what it does they might block it. Seem worth researching though.
Okay, i just checked. It seems like activities recorded with Connect IQ Apps count towards badges, etc.
I will see if I will find time in my semester break to develop an prototype.
I dont think the approval will be a problem since other apps like Connect IQ Store | Free Watch Faces and Apps | Garmin are getting approved and harm garmin’s revenue (this app in particular enables all activities of high end devices on almost every device (even low end))
+1 for .fit to dropbox automation option. I know very little, but I think GPT told me that .fit includes more/better data, or is otherwise superior, in some way?
I’ve been using .fit to analyze segments in other software (which I could do this natively in TD!), but feel free to let me know if .tcx is literally as good or better and GPT got it wrong.