Skip to content
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

GPX files from Suunto and TomTom not recognised by Laufhelden #149

Open
ncartron opened this issue Jan 9, 2019 · 14 comments
Open

GPX files from Suunto and TomTom not recognised by Laufhelden #149

ncartron opened this issue Jan 9, 2019 · 14 comments

Comments

@ncartron
Copy link

ncartron commented Jan 9, 2019

Hi,

in my effort to get rid of my non-SailfishOS phones, I am trying not to use Android or iOS to sync with Strava, and therefore wants to use Laufhelden to upload my activities to Strava.

It works well when running with Laufhelden, or with an Amazfit Bip (thanks to Amazfish app), however when download a GPX file from Suunto (via their Movescount.com website) or Tomtom, the GPX file is not recognised by Laufhelden and is just displayed as "0 kms".

I did some quick "debugging" and found out that by removing the "activity" which follows the "" section, it works well and Laufhelden recognises the GPX file (displays map, charts and info).

I have added the below screenshot to explain, but basically removing this line fixes the issue - the highlighted line is the one to be deleted:

screenshot_2019-01-09_15-55-02

@jdrescher2006
Copy link
Owner

Hi Nico,
can you send that GPX file to me? I would try and make Laufhelden compatible to it.

@ncartron
Copy link
Author

I sent you a message using the contact form on Openrepos - i don't have your email address :)

@jdrescher2006
Copy link
Owner

Interesting file, thanks for that. It is good to make Laufhelden compatible to that type of file.
It would be interesting how the keywords (RUNNING) are for other workout types in that file type. Maybe you have a few examples?

@ncartron
Copy link
Author

ncartron commented Jan 11, 2019 via email

@jdrescher2006
Copy link
Owner

That would be good. That way we could raise compatibility to this format.

@martonmiklos
Copy link
Collaborator

martonmiklos commented Jan 21, 2019

Btw. if we are talking about XML files. There is an XML parser generator tool called KODE:
https://github.com/cornelius/kode

If I see correctly from the posted image: the garmin provides the XSD files, so it would be pretty straightforward to generate the parser code.

@jdrescher2006
Copy link
Owner

The file is basically a GPX standard file. With only one difference and that is the highlighted line in the posted image.
I do not think we need a new parser for this file, we just have to tweak the old parser and everything will be fine. I am working on that right now.

@ncartron
Copy link
Author

I agree, that's a super small difference, both for Suunto and Tomtom.
@jdrescher2006 I have not yet done workouts with other types of sport, but that's on my todo list for the coming days :)

@berndhahnebach
Copy link

any news on this?

@martonmiklos
Copy link
Collaborator

martonmiklos commented Feb 23, 2021

any news on this?

Not really. Jens abandoned the project, and there were not much development since then. If you could post an example GPX I might be able to look into it.

Edit: By looking into the actual code and the screenshot in the original issue described by @ncartron it should just work.
The parser looks for the trk tag, and reads the childs of that until the trkpt or trkseg is not found. The tags with other keys are simply ignored.

@berndhahnebach
Copy link

berndhahnebach commented Jul 6, 2022

I just wanted to know about this because this could be a game changer if it does not work. But as you wrote it should work.
Offtopic ...
Does it still run on latest Sailfish 4.5.x ?
Is it worth giving it a try?

cheers bernd

@martonmiklos
Copy link
Collaborator

Hi @berndhahnebach
Is Sailfish 4.5.x released already?

@berndhahnebach
Copy link

@martonmiklos
Copy link
Collaborator

martonmiklos commented Jul 6, 2022

Is it worth giving it a try?

I used to use it on my XA2, however the GPS lock time got irregularly long thanks to some software bug in the system itself (not in Laufhelden), and I have not used it recently. Takes ages to get GPS fix. But give it a try an report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@martonmiklos @berndhahnebach @jdrescher2006 @ncartron and others