Tracking resting heart rate

623 views
Skip to first unread message

Fernando

unread,
Jan 25, 2019, 6:53:23 AM1/25/19
to golden-cheetah-users
Hello all

I am using a Garmin Fenix watch to track most of my sport activities. This watch also does 24/7 monitoring. I am particularly interested in tracking resting heart rate, and would like to do this with GC. I've tried to answer my own questions but I need help with a few things

Is it at all possible to fetch this metric from Garmin Connect automatically? it doesn't seem it is, but thought I'd better check in case I'm missing it

Failing that, I have found https://github.com/tcgoetz/GarminDB which is able to pull the data down from Garmin Connect. Assuming I have the data using this tool, how could I integrate within GC in a somewhat automatic way?

Is it possible to define a source (cloud account?) that invokes an external process to fetch data? in this case, a bit of Python plumbing could be put together to leverage the above code from GarminDB to pull the data into GC

Thanks
Fernando

Ale Martinez

unread,
Jan 25, 2019, 7:48:20 AM1/25/19
to golden-cheetah-users
El viernes, 25 de enero de 2019, 8:53:23 (UTC-3), Fernando escribió:
Hello all

I am using a Garmin Fenix watch to track most of my sport activities. This watch also does 24/7 monitoring. I am particularly interested in tracking resting heart rate, and would like to do this with GC. I've tried to answer my own questions but I need help with a few things

Is it at all possible to fetch this metric from Garmin Connect automatically? it doesn't seem it is, but thought I'd better check in case I'm missing it

No, integration to Garmin Connect seems to be a no go 

Failing that, I have found https://github.com/tcgoetz/GarminDB which is able to pull the data down from Garmin Connect. Assuming I have the data using this tool, how could I integrate within GC in a somewhat automatic way?

The downloaded data can be uploaded via a file, HRV data has a Rest HR field, see: https://github.com/GoldenCheetah/GoldenCheetah/wiki/HRV

Is it possible to define a source (cloud account?) that invokes an external process to fetch data? in this case, a bit of Python plumbing could be put together to leverage the above code from GarminDB to pull the data into GC

Not currently, but I thought it would be a much needed complement for generalized measures be useful, see https://github.com/GoldenCheetah/GoldenCheetah/issues/2872

Fernando

unread,
Jan 25, 2019, 7:59:34 AM1/25/19
to golden-cheetah-users
Hola Ale

I figured connecting to Garmin Connect would be a big ask, and glad to see there is a way to keep track of RHR within GC. Fetching the data automatically somehow would be very very nice indeed. I can probably manage to run GarminDB in a periodic manner (cron job somewhere), and export the data in a suitable format, but the feature to call a script to sync an external source to GC would allow me to write a simple Python script to fetch this data on demand.

Moreover, allowing users to write these connectors themselves and make them available to the community would be a nice bonus, and would free the core of GC from having to deal with all this connectivity code. For starters, Tapiriik already has a load of connectors that could potentially be leveraged

Just a thought :-)

Fernando

unread,
Jan 28, 2019, 8:53:38 AM1/28/19
to golden-cheetah-users
Hello Ale

So I'm experimenting with RHR and HRV in GC, and have had some success. I have downloaded the data from Garmin Connect, and figured out the HRV data is stored in a json file under <athlete_dir>/config/hrvmeasures.json, so I can add them there automatically.

However, I am experimenting some weird behaviour in GC, even when entering data manually through the UI. See here:

In my athlete profile, I have data for every day in January:


However, when I try to view the data in a chart in the Trends view, some data points are missing. I'm filtering for "This Month" and the table view shows the following:


Notice how some days are totally missing. Tried changing the Date Range, and there's always some point missing, can't detect a pattern.

I have tried entering the missing points manually, but they still don't show up.

Is this a bug?

Ale Martinez

unread,
Jan 28, 2019, 10:39:00 AM1/28/19
to golden-cheetah-users
El lunes, 28 de enero de 2019, 10:53:38 (UTC-3), Fernando escribió:
Hello Ale

So I'm experimenting with RHR and HRV in GC, and have had some success. I have downloaded the data from Garmin Connect, and figured out the HRV data is stored in a json file under <athlete_dir>/config/hrvmeasures.json, so I can add them there automatically.

However, I am experimenting some weird behaviour in GC, even when entering data manually through the UI. See here:

In my athlete profile, I have data for every day in January:


However, when I try to view the data in a chart in the Trends view, some data points are missing. I'm filtering for "This Month" and the table view shows the following:


Notice how some days are totally missing. Tried changing the Date Range, and there's always some point missing, can't detect a pattern.

The pattern should be missing days are days with no activities. 

I have tried entering the missing points manually, but they still don't show up.

Metric Trends charts compute Metrics and Formulas for activities and aggregate the according your selection (day, week, etc.), if there are no activities in a grouping period no metric or formula can be computed.
 
Is this a bug?

Let's call it a feature ;-) 

The Measure option in Curve Settings allows to plot daily measures independent of the presence of activities:
 

Screenshot from 2019-01-28 12-30-18.png


Fernando

unread,
Jan 28, 2019, 11:21:47 AM1/28/19
to golden-cheetah-users
Aha! progress!! That wasn't very obvious, sorry about that. It may make more sense to remove measures from metrics, IMHO

So now I have a RHR chart! hooray! two more issues, in case they are bugs

1. The chart shows some zero values after today, even though the data is not there:



2. After I create my RHR chart as a tab on the Trends view, I cannot edit the curves any more when clicking on "Chart Settings". I have to delete and recreate the chart. It's all greyed out. See this screenshot:

Not blocking me from continuing my experimentation though, but may be worth fixing :-)

Thanks for all your help so far (and for putting up with my future questions!)

Fernando

Fernando

unread,
Jan 28, 2019, 12:58:24 PM1/28/19
to golden-cheetah-users
Regarding problem #2, I've figured out that it's related to the "Use sidebar chart settings" checkbox. Not very clear what the purpose of this is, but I just unticked this box and now I can edit the chart.

The zero HRV values remain though :-(

Ale Martinez

unread,
Jan 28, 2019, 1:46:55 PM1/28/19
to golden-cheetah-users
El lunes, 28 de enero de 2019, 14:58:24 (UTC-3), Fernando escribió:
> Regarding problem #2, I've figured out that it's related to the "Use sidebar chart settings" checkbox. Not very clear what the purpose of this is, but I just unticked this box and now I can edit the chart.

https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Side-Bar_Trends-view#charts

Ale Martinez

unread,
Jan 28, 2019, 2:58:54 PM1/28/19
to golden-cheetah-users
El lunes, 28 de enero de 2019, 13:21:47 (UTC-3), Fernando escribió:
1. The chart shows some zero values after today, even though the data is not there:


 Yes, when there is no data zero is plotted, if there is a gap it is even more annoying, a gapped curve will solve fix this for the next build.

Fernando

unread,
Jan 29, 2019, 3:36:22 AM1/29/19
to golden-cheetah-users
I noticed that, but the curious thing about the ones in the screenshot is that those points are in the future

I assume zero points would also affect trend lines which is not ideal. Looking forward to the fix :-)

Ale Martinez

unread,
Jan 29, 2019, 4:06:30 AM1/29/19
to golden-cheetah-users
El martes, 29 de enero de 2019, 5:36:22 (UTC-3), Fernando escribió:
> I noticed that, but the curious thing about the ones in the screenshot is that those points are in the future

If you don’t want the chart to go to the future you can select one of the “thru today” options in chart config date range...

Fernando

unread,
Jan 29, 2019, 4:10:04 AM1/29/19
to golden-cheetah-users
Bingo!

I was not expecting that. I guess when selecting "This Month" the natural expectation is not to show anything for the future because, well... no data from the future!

Thanks, now I have RHR & Weight working... time to start looking at activities :-)

Cheers

Ale Martinez

unread,
Jan 29, 2019, 4:21:43 AM1/29/19
to golden-cheetah-users
El martes, 29 de enero de 2019, 6:10:04 (UTC-3), Fernando escribió:
> Bingo!
>
>
> I was not expecting that. I guess when selecting "This Month" the natural expectation is not to show anything for the future because, well... no data from the future!

There can be activities and data for the future, it can be used to forecast metric values

Fernando

unread,
Jan 29, 2019, 4:58:11 AM1/29/19
to golden-cheetah-users
Not sure I understand the use case, but I would suspect most users don't use activities/data in the future. As such, it may make more sense to use "Current selection thru today" as the default. Just my opinion of course

As an aside, are there any plans to provide in-app documentation/tips? in the form of popups or (?) icons that can be clicked. I see a lot of options/toggles and a lot of them are really not very obvious for the beginner user

Ale Martinez

unread,
Jan 29, 2019, 8:53:04 AM1/29/19
to golden-cheetah-users
El martes, 29 de enero de 2019, 6:58:11 (UTC-3), Fernando escribió:
Not sure I understand the use case, but I would suspect most users don't use activities/data in the future.

For example in PMC charts you can enter manual workouts in the future to see how the training load would evolve, in the new Banister chart you could try to forecast performance.
 
As such, it may make more sense to use "Current selection thru today" as the default. Just my opinion of course

I don't know, I think there is a tendency to consider our current needs as the most natural and intuitive so, why to not make them the default?
 
As an aside, are there any plans to provide in-app documentation/tips? in the form of popups or (?) icons that can be clicked. I see a lot of options/toggles and a lot of them are really not very obvious for the beginner user

It is available for most of the dialogs and the menu Help > Help Overview shows how to access:

Screenshot from 2019-01-29 10-25-24.png


Guido

unread,
Jul 29, 2021, 8:25:04 AM7/29/21
to golden-cheetah-users
I know this is an old thread, but I wonder if there is any update on this or another easy way to track your resting heart rate in GC?

I have a garmin vivosmart 4 to track my RHR and would like to get this data into GC for I've seen a "nice" corelation between sickness and fatigue and my RHR and would like to track that in GC.  I download my activities via the Garmin-connect-export script but that does not contain my daily RHR-data, So I'm looking for a way to get this data into GC preferably in one go with the activity-export/import.

@Fernando, do you still use this https://github.com/tcgoetz/GarminDB to export the data from Connect? Could you give a (short) explanation of your setup?

TIA
Guido

Op dinsdag 29 januari 2019 om 14:53:04 UTC+1 schreef Ale Martinez:

Ale Martinez

unread,
Jul 29, 2021, 10:36:57 AM7/29/21
to golden-cheetah-users
El jueves, 29 de julio de 2021 a la(s) 05:25:04 UTC-7, Guido escribió:
I know this is an old thread, but I wonder if there is any update on this or another easy way to track your resting heart rate in GC? 

GC allows to track Rest HR together with HRV metrics, but you can use only Rest HR if you want. See https://github.com/GoldenCheetah/GoldenCheetah/wiki/HRV for details 
 
I have a garmin vivosmart 4 to track my RHR and would like to get this data into GC for I've seen a "nice" corelation between sickness and fatigue and my RHR and would like to track that in GC.  I download my activities via the Garmin-connect-export script but that does not contain my daily RHR-data, So I'm looking for a way to get this data into GC preferably in one go with the activity-export/import.

GC can import all data at once from a CSV file, format is described in the wiki entry linked above for v3.5.
In v3.6 it is also possible to add or remove fields.

For how to get such a CSV file from Garmin Connect likely others can help you.
Reply all
Reply to author
Forward
0 new messages