Sporttracks fitlog import workout name

173 views
Skip to first unread message

Graham White

unread,
Apr 20, 2022, 12:26:04 PM4/20/22
to golden-cheetah-users
I've decided to move to GC. I've about 9 years of training files in Sporttracks (desktop version and the plugins continued to work but it is only a metter of time beore the PC tied to the licence gives up)
I use the Workout Name field to label activities, e.g. description of an intervals session or the course for a race. The .fitlog file stores this data in a field called <Name>. How do I pull this data into a metadata field I can use for searching for activities to compare, like races or fitness tests?

Thanks

Graham

Ale Martinez

unread,
Apr 20, 2022, 1:51:35 PM4/20/22
to golden-cheetah-users
Looking at the parser (https://github.com/GoldenCheetah/GoldenCheetah/blob/master/src/FileIO/FitlogParser.cpp), Sport, Device, Route, Equipment and Notes are imported as metadata. If you attach a sample file I can take a look for the “name” field.

Graham White

unread,
Apr 20, 2022, 4:46:37 PM4/20/22
to golden-cheetah-users
Attached a small sample file. <Name> is close to the start of the file. It is easy enough to create a file with multiple activities if it helps.

The text in the <Name> field does synch with sporttracks.mobi and the activity page there shows it as 'Workout name' if you click to edit it in mobi.

R

Graham
log to 20190824.fitlog

Ale Martinez

unread,
Apr 20, 2022, 5:17:20 PM4/20/22
to golden-cheetah-users
El miércoles, 20 de abril de 2022 a la(s) 17:46:37 UTC-3, gwhi...@gmail.com escribió:
Attached a small sample file. <Name> is close to the start of the file. It is easy enough to create a file with multiple activities if it helps.

The text in the <Name> field does synch with sporttracks.mobi and the activity page there shows it as 'Workout name' if you click to edit it in mobi.

That tag is ignored when importing fitlog files, but on download from sporttracks.mobi it is mapped to "Objectives" metadata field according to https://github.com/GoldenCheetah/GoldenCheetah/blob/98c22dc18536abec9a2ea0163fbdbb78be377e09/src/Cloud/SportTracks.cpp#L341, this looks like a typo since GC standard field is "Objective" (singular), you should find it in Extra tab after sync.

Ale Martinez

unread,
Apr 20, 2022, 5:20:06 PM4/20/22
to golden-cheetah-users
El miércoles, 20 de abril de 2022 a la(s) 18:17:20 UTC-3, Ale Martinez escribió:
El miércoles, 20 de abril de 2022 a la(s) 17:46:37 UTC-3, gwhi...@gmail.com escribió:
Attached a small sample file. <Name> is close to the start of the file. It is easy enough to create a file with multiple activities if it helps.

The text in the <Name> field does synch with sporttracks.mobi and the activity page there shows it as 'Workout name' if you click to edit it in mobi.

That tag is ignored when importing fitlog files

BTW, Name was not present in the sample we used to add Route and Equipment: https://groups.google.com/g/golden-cheetah-users/c/yRrbi_h_giM/m/hLIqox6RAwAJ 

Ale Martinez

unread,
Apr 20, 2022, 5:44:55 PM4/20/22
to golden-cheetah-users
El miércoles, 20 de abril de 2022 a la(s) 18:17:20 UTC-3, Ale Martinez escribió:
Perhaps "Workout Title" is a better match from predefined metadata fields. 

Ale Martinez

unread,
Apr 20, 2022, 7:30:05 PM4/20/22
to golden-cheetah-users
I you are using Windows, a v3.6 installer is available from https://ci.appveyor.com/project/Joern-R/goldencheetah-knhd8/builds/43295247/artifacts to import the Name element as Objective from fitlog files.

Graham White

unread,
Apr 21, 2022, 4:14:23 PM4/21/22
to golden-cheetah-users
Thanks, I'll try the installer at the link you provided at the weekend and post back how I get on.

Graham

Graham White

unread,
Apr 30, 2022, 2:25:42 PM4/30/22
to golden-cheetah-users
Ale

Thanks for this. Worked. Successfully imported 6 months of data in one download. 

Thanks again

Graham

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "golden-cheetah-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golden-cheetah-users/OoepyX4jDzE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/d3cc52df-377d-4f11-b1dc-2a8593bbd7een%40googlegroups.com.


--
Regards

Graham
Reply all
Reply to author
Forward
0 new messages