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

[Feature Request] Accept FitoTrack HTTP POST #64

Closed
wills106 opened this issue Apr 7, 2024 · 9 comments
Closed

[Feature Request] Accept FitoTrack HTTP POST #64

wills106 opened this issue Apr 7, 2024 · 9 comments

Comments

@wills106
Copy link

wills106 commented Apr 7, 2024

FitoTrack has the ability to automatically export a GPX workout at the end of the workout and send it to a server.

Would it be possible to accept these requests?
I have my Workout-Tracker behind a Nginx proxy so I can securely expose Workout-Tracker to the outside world.

I think this would be a cleaner solution than exporting to a folder and then having an additional app running to export it to the server. You wouldn't need something running on the server to except file uploads either.

@jovandeginste
Copy link
Owner

I never saw that option in fitotrack; thanks for telling me about this! I'm using syncthing for this, but will look into the post! The API is now usable (to fetch statistics), adding a Post route should be easy.

@jovandeginste
Copy link
Owner

Just noticed fitotrack does not support adding headers; I'm curious if it supports basic auth in the URL...

@wills106
Copy link
Author

wills106 commented Apr 7, 2024

I don't know if this helps, but it seems to be a relay for accepting FitTrack POST and forwarding the GPX on to Nextcloud?
https://github.com/StratusFearMe21/fittotrack-sync

Edit:
This is the commit on FitoTrack https://codeberg.org/jannis/FitoTrack/commit/d13673068af10352150a4a7d69dafc481b051a93

@jovandeginste
Copy link
Owner

@wills106 please test and give feedback!

@wills106
Copy link
Author

wills106 commented Apr 16, 2024

Tried single user so far and it's fine, still need to check a second user to confirm their API key redirects their workout to them and not me for example.

But I have noticed a change in the last 24hrs seems to have decoupled the start and end times for workout.

This was ok yesterday before I updated. But the speed doesn't start with the elevation.

image

First test of the HTTP upload
image

Also noticed on "branch master 8175c70" there is a bit of lag moving the mouse up and down on the workouts page.

@wills106
Copy link
Author

Also noticed on "branch master 8175c70" there is a bit of lag moving the mouse up and down on the workouts page.

Just on e820e48 now and I'm still getting the Speed / Elevation mismatch.

On the workouts page you can initially move the mouse up and down and it doesn't highlight a row in the yellowish colour. It will then register on one and a few seconds later start to catch-up and highlight other rows.

@jovandeginste
Copy link
Owner

The mismatch is fixed in #121; I can't seem to reproduce the lag... Could it be related to browser?

@wills106
Copy link
Author

Thanks, I'll test the update later today as I don't have a way to update the container at the moment.

@wills106
Copy link
Author

Just letting you know the two graphs match up now.
Thanks

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