-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error when importing GPX 1.1 file from Opentracks #260
Comments
Hi Martin, could you please attach an example file for reproducing the problem and testing the fix? |
More infos here: OpenTracksApp/OpenTracks#249 |
I have just created a new export and send it to you by e-mail. I prefer not everyone to be able to see where I exactly live :-) |
Actually the correct issue for OpenTracks is: OpenTracksApp/OpenTracks#301 |
Thanks for sharing, will take a look on that in the next days. |
- added support for timestamps with timezone / offset info
Just fixed that by adding timezone / offset support in the GPX file importer. Bugfix is available on the main branch. Please be aware that the unreleased (but for my usage very stable) 8.0.0 release now stores its date in a SQLite database instead of XML files. Data migration will be done during initial start. |
@ssaring and @dennisguse Thanks for the quick action! Unfortunately it doesn't work for me at the moment using the current master branch. Opentracks allows export in several formats, plus it allows to export all tracks in 1 file, or 1 file per recorded track. KMZ seems not supported by Sportstracker, which is not a must have, but would be nice. When I try to open a GPX file that has all recorded tracks, it looks like it recognizes it as 1 track. When I try to open a GPX file from my latest recorded track only, it does show correct date and duration. Unfortunately when I click 'close', I expect the exercise to be added to the database, but no exercise is added at all. What i noticed is that when I open the file the Sport Type is n.a.. In Opentracks it is called 'hardlopen' (Dutch for running) and I have up front added that to the list of sport types. The gpx export does contain the sport type:
Console only says:
|
@MartinH80 the sport type is localized in OpenTracks and it also exported this way. However, exporting the localized version is not how it should be done as it makes it really complicated for applications to exchange data. So, this will be changed in OpenTracks in the future, so OpenTracks exports the sport type in English. See OpenTracksApp/OpenTracks#1608 |
SportsTracker does support only the import of files with one single activity. Multiple files does not make sense in ST as an file is directly attached to one single activity entry.
Opening a file is not importing, Open means simply show the content of the file in the ExerciseViewer window. For importing you need to drag and drop one activity file (GPX or FIT or any other supported format) from your OS file explorer to the Calender View of SportsTracker. You can either attach the file to an existing entry by dropping the file to it or you can import and add a new entry by dropping the file somewhere else on the calendar days. When importing new activities, a dialog will appear where the user needs to select the selected sport type or subtype. The sport types are not matched by name, this would be way to error prone. There's no standard definition of sport type names, in SportsTracker the user will create his own sport type list for his/her preferences. Users of Garmin (and some other) watches can be happy, the FIT standard and file format contains sport type and subtype information which can be mapped in SportsTracker to the sport types of the user. Then the sport type and subtype will be automatically in the import dialog. BTW, that's all described in the docs/README.txt. |
@ssaring and @dennisguse thanks again! @ssaring Your last comment hurts my ego a bit, happy to see that it is all explained in there :-) The import of a single gpx recorded track now works! Even with the localized sports type as this can be entered when importing the track. |
- added support for timestamps with timezone / offset info
I am using Opentracks to record my running sessions.
Opentracks allows export to GPX, which I try to import in Sportstracker for analysis on my desktop.
The import fails. The console says:
And later on:
This can be found at line 34 of the GPX file. The following snippet starts with the first line and ends at line 34:
Index 23 is the semicolon after 44.
I have compiled sportstracker 7.9.1 manually on my Suse Tumbleweed desktop using OpenJDK-17.
The text was updated successfully, but these errors were encountered: