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

Edit swimming activity #221

Open
hadim opened this issue Sep 10, 2024 · 3 comments
Open

Edit swimming activity #221

hadim opened this issue Sep 10, 2024 · 3 comments

Comments

@hadim
Copy link

hadim commented Sep 10, 2024

Is that possible to edit an activity from the Garmin API?

I am trying to remove a few laps from a swimming workout and tried using the FITCSVTool.jar method but the generated FIT file from the edited CSV does not seem to be valid when I try to upload it on Garmin Connect.

See https://forums.garmin.com/developer/fit-sdk/f/discussion/383704/how-to-edit-a-fit-file-swimming-activity

@psdupvi
Copy link
Contributor

psdupvi commented Oct 4, 2024

I see a way to edit the number of laps through the Garmin UI, which suggests that we can edit things like that through the UI (check out this PR: #224 - which adds some activity update capability and you can probably tweak to edit lap numbers).

However, I don't see a way to truly remove laps and their data. The Fit method is probably your best bet, but that's not an area of my expertise -- I see you sort of had a solution but not really in that Garmin Forum thread

@cyberjunky
Copy link
Owner

@hadim Latest version contains the activity update calls, if you need or discovered anything let us know!

@hadim
Copy link
Author

hadim commented Nov 10, 2024

Thank you. Can you give more details or an example how to update a swimming activity given its id?

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

3 participants