Power @ specific heart rate

628 views
Skip to first unread message

Sven Bauwens

unread,
May 5, 2020, 4:10:23 AM5/5/20
to golden-cheetah-users
Hello,

Is it possible to get average power over a specific heart rate? This over a larger period (for instance this year), to compare. I know you can see power@150 per activity. 

I've seen an earlier post on this topic, but couldn't make much of it. Thank you. 

Mark Liversedge

unread,
May 5, 2020, 5:25:54 AM5/5/20
to golden-cheetah-users
On Tuesday, 5 May 2020 09:10:23 UTC+1, Sven Bauwens wrote:
Is it possible to get average power over a specific heart rate? This over a larger period (for instance this year), to compare. I know you can see power@150 per activity. 
I've seen an earlier post on this topic, but couldn't make much of it. Thank you. 

This could be done via a User Metric, using a range to try and minimise the influence of HR dynamics e.g.;

apat145.png


Mark

Mark Liversedge

unread,
May 5, 2020, 6:47:40 AM5/5/20
to golden-cheetah-users
I'm prepping a video on user metrics and user charts, will use this as an example

eg.png

Message has been deleted

Sven Bauwens

unread,
May 10, 2020, 5:45:35 PM5/10/20
to golden-cheetah-users
Worked, thank you! Now I want this for 171 bpm, but it keeps changing to HEARTRATE < 150 && HEARTRATE > 140. I even can't remove the metric, it keeps showing up again after restarting. I must be overlooking something.

Mark Liversedge

unread,
May 11, 2020, 2:57:29 AM5/11/20
to golden-cheetah-users
On Sunday, 10 May 2020 22:45:35 UTC+1, Sven Bauwens wrote:
Worked, thank you! Now I want this for 171 bpm, but it keeps changing to HEARTRATE < 150 && HEARTRATE > 140. I even can't remove the metric, it keeps showing up again after restarting. I must be overlooking something.

You will need to create a second user metric and edit it.
You will need to press Save when you leave preferences/settings to ensure changes take effect.
Mark

Adam Jędrysik

unread,
May 11, 2020, 1:21:55 PM5/11/20
to golden-cheetah-users
Mark could You help me how to add that average power at hr to trends->tracker and as a chart?

Remco Boerwinkel

unread,
May 12, 2020, 12:37:51 AM5/12/20
to golden-cheetah-users
Hi Adam,

In the past I created a python chart for this. This shows for an range of heart rate the average power in an date range, so not an single hr value. I did not use any user metrics for it.
So if you got python configured and look in the clouddb chart under uncurated I think it is listed as "power at hr".
One note this chart is pretty slow, downside of not using metrics.

Hope this helps.
Kind regards,
Remco



Op ma 11 mei 2020 19:22 schreef Adam Jędrysik <adam.j...@gmail.com>:
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/8db68cec-6065-4e64-8083-26b648becc93%40googlegroups.com.

Jozef

unread,
May 12, 2020, 2:52:39 AM5/12/20
to golden-cheetah-users
Hello, I have some questions.
The first is why the range to find the power at 145 BPM is between 150 and 140. Wouldn't a range between 146 and 144 BMP be better? The second question I have a phyton graph that identifies me the power at 150 and 170 BPM but the data that gives me do not coincide with those of the metric related to those beats. Why?

Thomas Petzold

unread,
May 17, 2020, 11:15:53 AM5/17/20
to golden-cheetah-users
Hello,

does anybody know how to use the function to compare different seasons with the Python-Chart "Average pwr by hr (Py slow)"? In the description there is a hint the tis function is implemented. But I didn`t get it to work. I can`t choose two different data-ranges. I also tried a season with two phases. But this also doesn`t work.

Can anybody help with this cloud-chart?

Regards
Thomas

Am Dienstag, 12. Mai 2020 06:37:51 UTC+2 schrieb RB:
Hi Adam,

In the past I created a python chart for this. This shows for an range of heart rate the average power in an date range, so not an single hr value. I did not use any user metrics for it.
So if you got python configured and look in the clouddb chart under uncurated I think it is listed as "power at hr".
One note this chart is pretty slow, downside of not using metrics.

Hope this helps.
Kind regards,
Remco



Op ma 11 mei 2020 19:22 schreef Adam Jędrysik <adam.j...@gmail.com>:
Mark could You help me how to add that average power at hr to trends->tracker and as a chart?

On Monday, May 11, 2020 at 8:57:29 AM UTC+2, Mark Liversedge wrote:
On Sunday, 10 May 2020 22:45:35 UTC+1, Sven Bauwens wrote:
Worked, thank you! Now I want this for 171 bpm, but it keeps changing to HEARTRATE < 150 && HEARTRATE > 140. I even can't remove the metric, it keeps showing up again after restarting. I must be overlooking something.

You will need to create a second user metric and edit it.
You will need to press Save when you leave preferences/settings to ensure changes take effect.
Mark

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.
pwr_hr.png

Remco Boerwinkel

unread,
May 17, 2020, 11:25:26 AM5/17/20
to golden-cheetah-users
Hi Thomas,

The Standard GC compare should work. 
Here a link that describes how.

Hope this helps kind regards,
Remco


Op zo 17 mei 2020 17:15 schreef 'Thomas Petzold' via golden-cheetah-users <golden-che...@googlegroups.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/2a1a84cb-d226-4344-bc76-860f8d5f23ec%40googlegroups.com.

Thomas Petzold

unread,
May 17, 2020, 11:58:53 AM5/17/20
to golden-cheetah-users
Hi Remco,

that was the hint :-) thanks a lot!

Regards,
Thomas
Hi Thomas,
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.

Sven Bauwens

unread,
May 18, 2020, 6:09:20 PM5/18/20
to golden-cheetah-users
Finally had some time to figure this out. Actually I get nothing ( I get following message: Data unknown) No wattage displayed at all. I can't even remove the metric, it keeps showing up again after removal and restart. 

Side-effect maybe, but my tables don't update anymore. For instance, my weekly update keeps show the week of April 20 as latest week. 

Op maandag 11 mei 2020 08:57:29 UTC+2 schreef Mark Liversedge:

Jozef

unread,
May 21, 2020, 5:42:23 AM5/21/20
to golden-cheetah-users
Hi, sorry if I ask my questions again. I do it because I had no answer.
In the metric to find the power at 145 BPM, a range between 150 and 140 is proposed.

Wouldn't a range between 146 and 144 BMP be better?

The second question, I have a phyton graph that identifies the power at 150 and 170 BPM, but if I report the proposed metric appropriately modified to find the power at 150 bpm with the python graph I do not get the same results. Different matter of average calculation of raw data?

Remco Boerwinkel

unread,
May 21, 2020, 6:00:44 AM5/21/20
to golden-cheetah-users
The different IRC is that the python (if you are using graph power by hr that I created) finds all power samples at an certain  heartrate and takes the average of it. Al those averages are plotted.

The user metrics finds power between en certain heartrate mine assumption that should explain the difference.

You could try change the user metric (for testing) heartrate == 150. See if it the same then.

Kind regards,
Remco


Op do 21 mei 2020 11:42 schreef 'Jozef' via golden-cheetah-users <golden-che...@googlegroups.com>:
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/d882738b-4f64-4eb2-b30e-0cc6a51a4ee9%40googlegroups.com.

Salvatore Iovene

unread,
Jan 24, 2024, 5:48:33 AM1/24/24
to golden-cheetah-users
Screen Shot 2024-01-24 at 11.47.15.jpgHi all,

I'm trying to get this working but I can't manage. I have GC build id 3991 from Jan 18 2020, so, seeing as this thread is from 2020, I don't think anything changed in my version of GC.

I added a user metric with this code:

{

# only calculate for rides containing power

relevant { Data contains "P" && Data contains "H" }


# initialise aggregating variables

init { joules <- 0; time <- 0; }


# joules = power x time, for each sample

sample {

if (HEARTRATE > 134 && HEARTRATE < 150) {

    joules <- joulels + (POWER * RECINTSECS );

    time <- time + RECINTSECS;

  }

}


# calculate metric value at end

value { joules / time; }

count { time; }

}


Then I added this metric to a chart. Please see screenshots.


However, the resulting chart is empty, and in my user metric clicking Test evaluates to 0 results.


What am I doing wrong?

Thanks!


Screen Shot 2024-01-24 at 11.46.37.jpg


Screen Shot 2024-01-24 at 11.47.15.jpg

Mark Liversedge

unread,
Jan 24, 2024, 6:50:22 AM1/24/24
to golden-cheetah-users
You have a typo here:

joules <- joulels + (POWER * RECINTSECS );

Mark

Salvatore Iovene

unread,
Jan 24, 2024, 11:08:28 AM1/24/24
to golden-cheetah-users
Thanks Mark! You'd think after being 20 years a programmer I'd have noticed that :-)

Mark Liversedge

unread,
Jan 25, 2024, 4:08:57 AM1/25/24
to golden-cheetah-users
The errors should have been highlighted by the syntax highlighter which is a bit odd it didn't.

If it makes you feel better I once realised I needed new glasses when I couldn't understand why some code refused to compile.
I had put a capital O instead of 0 (zero) in a statement and couldn't see it.

Mark

Reply all
Reply to author
Forward
0 new messages