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

Getting time for each length in swimming #151

Open
tamkaho opened this issue Feb 24, 2022 · 5 comments
Open

Getting time for each length in swimming #151

tamkaho opened this issue Feb 24, 2022 · 5 comments

Comments

@tamkaho
Copy link

tamkaho commented Feb 24, 2022

Is there any way to get the time of each length (not each lap) from swimming activities? This is something I can download from the Garmin Connect website.

@tcgoetz
Copy link
Owner

tcgoetz commented Mar 5, 2022

If that data doesn't come from laps, then I'm not sure what it comes from. Can you give me some example data? Screen capture of what Garmin connect shows and the FIT file that goes with it?

@tamkaho
Copy link
Author

tamkaho commented Mar 5, 2022

My main interest is how to get these blue bar plots. I'm not familiar with how to obtain them from the FIT file, or whether they are saved in the FIT files at all.
https://imgur.com/a/jvpWp3o

Garmin Connect -> Export Splits CSV:
https://imgur.com/LV1r9J3

activity_details:
https://pastebin.com/raw/jp4FWVqS

activity:
https://pastebin.com/raw/ffHSYvD4

@tcgoetz
Copy link
Owner

tcgoetz commented Mar 5, 2022

Everything in Garmin Connect should be coming from the FIT file for the activity.

For the blue bar, Pace, the average value is the average pace for the whole activity. The instantaneous values in the blue bar graph come from the speed field of the activity records. garmindb has conversion function to go from speed to pace.

If you view you activity records table and filter on activity_id == 8352829530, do the records look like the splits?

@tamkaho
Copy link
Author

tamkaho commented Mar 5, 2022

activity.ipynb does give the splits but I'm not sure how to tap into the instantaneous values.
For swimming, splits are defined by whenever I press pause on the watch. Whereas the instantaneous values are the times each time I turn around.
I'm interested in the instantaneous values because Garmin sometimes mistook me overtaking other people in the pool as one length so I'd like to do my own processing to get a more accurate total swim distance.

@tcgoetz
Copy link
Owner

tcgoetz commented Mar 5, 2022

You need to look at the activity_records table with a tool like "SQLite browser like SQLite Studio or DB Browser for SQLite" as described on the GarminDb project page. Or you could extend the Jupyter notebook activity.ipynb to show them.

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