Respiration rate from Fenix 6?

41 views
Skip to first unread message

Peter Gamma

unread,
Sep 27, 2022, 4:35:24 PM9/27/22
to Strava API
              

Is it possible to get the respiration rate from a Fenix 6 into Strava?

ActivityFix

unread,
Sep 28, 2022, 5:13:19 PM9/28/22
to Strava API
What exactly do you mean by "into Strava?" As far as I've seen Strava does not have any fields representing respiration rate, so there's not going to be a record of that data available from the API or visible in your activity.

I haven't dug in to a FIT file, but since Garmin Connect displays that data it must be available. A quick search found two threads which are probably useful and relevant.
  1. https://forums.garmin.com/developer/fit-sdk/f/discussion/245469/tool-idea-calculate-inject-respiration-rate-into-fit-when-using-hrv-on-older-watches - This thread implies that the respiration rate isn't stored in the FIT file but is instead calculated from the HRV values stored in the file. There's also some comments there on how to calculate respiration rate from HRV
  2. https://forums.garmin.com/developer/fit-sdk/f/discussion/255690/fit-file-hrv-data-array-interpretation - The top comment is from someone at Garmin (I think) explaining how the HRV data is saved in the FIT file and how to interpret the array of values.
If you really want to add that information to your activity, you would need to grab the FIT file from Garmin (or Strava), parse/process it to extract the respiration rate, then add it to the activity in either description, title, or private notes. See my previous comment @ https://groups.google.com/g/strava-api/c/OGgNrIcMbcA/m/0yUg--C5BAAJ for how to retrieve the FIT file. Without support from Strava there's no way for you to make the data a default part of the activity.

Peter Gamma

unread,
Sep 30, 2022, 2:30:52 PM9/30/22
to Strava API
Thank you for your detailed answer, ad...@bungat.com. We are really happy about that. We have Garmin Venu watches. In these watches, the respiration rate is calculated from the wrist based PPG signal, and it can bee seen for instance in the Yoga protocol.

On a Fenix 6, we need a recent and advanced Garmin watch, and the respiration is a data field which can be selected for any activities. On the Venu watch, Garmin says, it only works at rest, on the Fenix 6 also during an activity. Both watches record respiration rate at rest as an activity tracking feature.

The respiration rate is stored in the .fit file according to this information:

https://www.reddit.com/r/Garmin/comments/bz6b2c/does_respiration_rate_data_export_anywhere/?ref=share&ref_source=embed&utm_content=title&utm_medium=post_embed&utm_name=9335ae01a87f4cac9cb9acd336a24c0c&utm_source=embedly&utm_term=bz6b2c

and can also be seen in Garmin Connect. But it is very inaccurate, and there should be an option to calibrate it. We saw that it is now possible to sync Apple Health data over an iPhone app to Home Assistant, and store it in Influx-db and dispay it in Grafana.

https://petergamma.org/visualize-apple-health-data-in-home-assistant-with-the-ipphone-health-auto-export-app-influxdb-grafana/

It should also be able to sync Strava Data to Home Assistant:

https://petergamma.org/como-integrar-strava-en-home-assistant/

If we could get the respiration rate from the .fit file over Strava to Home Assistant to InfluxDB, then we could calibrate it there with Python script to get a calibrated respiration rate.

Reply all
Reply to author
Forward
0 new messages