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 file add fails #96

Closed
Fmstrat opened this issue Oct 12, 2021 · 6 comments
Closed

GPX file add fails #96

Fmstrat opened this issue Oct 12, 2021 · 6 comments

Comments

@Fmstrat
Copy link
Contributor

Fmstrat commented Oct 12, 2021

An error is received when trying to upload a GPX file of error during gpx file parsing. There is nothing showing up in the logs to identify why this would occur. Attached is a sample GPX file that causes the error (renamed TXT to allow upload). This may be because the GPX does not contain time information? It was created using https://gpx.studio

Camp Saratoga Loop.txt
.

@Fmstrat
Copy link
Contributor Author

Fmstrat commented Oct 12, 2021

After some digging, the exception:

unsupported type for timedelta seconds componentfalse NoneType

@SamR1
Copy link
Owner

SamR1 commented Oct 13, 2021

Hi,

Yes, time is missing, this information is needed in order to calculate speed.
You can add it with gpx.studio (with a start time and an average pace):

Screenshot 2021-10-13 at 08-21-07 gpx studio — the online GPX file editor

Then the gpx file can be imported.

@Fmstrat
Copy link
Contributor Author

Fmstrat commented Oct 13, 2021

@SamR1 Thanks. Would there be any objections to a PR to add this in if I did it? I'm also thinking of adding some features like a display card for elevation, imperial units, and a map showing all activities.

@SamR1 SamR1 closed this as completed Oct 13, 2021
@SamR1
Copy link
Owner

SamR1 commented Oct 13, 2021

No objections :)

Elevation chart is available:

Are you looking for something different?

For map showing data, an issue already exists: #39

Feel free to open new issues or update existing ones :)
(just FYI, I'm currently working on rewriting the UI, with major changes)

@Fmstrat
Copy link
Contributor Author

Fmstrat commented Oct 13, 2021

@SamR1 What kind of timeframe on the new UI? Would hate to do things to have you change them up. Is there a beta branch?

Primarily I'm looking for a view that shows all activities on one giant map, with an icon that you can hover over to see the activity.

For the time inserts, the gpx.studio times didn't work out well, they played havok on the average speed calculations. I threw this together and it seems to work nicely: https://github.com/Fmstrat/gpx-time. I set it up to also potentially add in "fake" points if a GPX is getting calculated on lack of points, but this didn't seem to be needed for your tool.

@SamR1
Copy link
Owner

SamR1 commented Oct 16, 2021

@SamR1 What kind of timeframe on the new UI? Would hate to do things to have you change them up. Is there a beta branch?

To be honest, I don't know. I'm working on it on my free time amongst other projects. There is a branch (new-ui), I update the related issue with the progress. It remains some views to migrate and improvements/fixes (and I'm learning vue3 with typescript in the same time), so it might take some time.

Primarily I'm looking for a view that shows all activities on one giant map, with an icon that you can hover over to see the activity.

I had the same idea in mind with the heatmap. But for this feature, I think it may have to wait for the new UI.

For the time inserts, the gpx.studio times didn't work out well, they played havok on the average speed calculations. I threw this together and it seems to work nicely: https://github.com/Fmstrat/gpx-time. I set it up to also potentially add in "fake" points if a GPX is getting calculated on lack of points, but this didn't seem to be needed for your tool.

I'm using another online tool for that, it is not very accurate either (but it allows to fix missing parts in gpx files).

Do you have in mind to port it in python?

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

2 participants