-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
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. |
Just noticed fitotrack does not support adding headers; I'm curious if it supports basic auth in the URL... |
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? Edit: |
@wills106 please test and give feedback! |
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. 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. |
The mismatch is fixed in #121; I can't seem to reproduce the lag... Could it be related to browser? |
Thanks, I'll test the update later today as I don't have a way to update the container at the moment. |
Just letting you know the two graphs match up now. |
Can this be used with apple workouts and the automations app? I can automatically upload a gpx file once a workout ends on my apple watch but it seems you have tied up loading a gpx file to a specific type of program? Is there an endpoint to just upload a gpx file and have it processed? |
I added a "generic" import path: #185 |
Nice, will update my instance and give it a run (pun not intended) and let you know |
Probably a something simple, but would you mind sharing an example of using the API to upload/import a GPX file? I like the idea of automatically uploading a workout with the Apple Automations app, but don't want to screw things up with a bad API call. |
I added some examples to the README |
If anything special is needed for the Apple Automations, and it might be documented here, feel free to open an issue with the relevant details (or update the README and open a PR) |
Thanks for doing that. I figured out most of how to get the ShortCuts app to upload the data but there's still a few issues to work out. The file seems not be uploading. When I look at the workout, it show a little file icon with ".gpx" after it instead of the typical path that the other workouts show. Is there piece of the curl command that I'm missing? One question though, is there a way to specify the name of the workout. It just posts as a no-name workout. (The data shows up in the tracker just fine.) I tried looking at the Swagger docs, but couldn't sort out where to find the field options. |
The name is normally found inside the gpx file, but is sometimes missing; I will add an extra field to explicitly specify the name. |
See #237 |
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.
The text was updated successfully, but these errors were encountered: