Heat Stress Score (HSS) graph

Hi everyone,

I’d like to get an activity CUMULATIVE graph for Heat Stress Score (HSS) during a ride.

The formula is:

HSS = (sec x CT^2) / (3.6 x TCT^2)

where:

HSS = Heat Stress Score
sec = duration in seconds
CT = Core Temp (data stream)
TCT = Threshold Core Temp (user defines it manually)

I’m near zero in Java, cannot understand if it’s feasible or not…

Thank you!

Riccardo

Here is a script for that:

{
  let TCT = 37.5
  let core_temperature = icu.streams.core_temperature
  let time = icu.streams.time
  for (let i = 0; i < data.length; i++) {
    let CT = core_temperature[i]
    let secs = time[i]
    data[i] = (secs * CT * CT) / (3.6 * TCT * TCT)
  }
}
2 Likes

It works! @david you’re the absolte best. Wizard!!!

Thank you, I’ll use this script for many other metrics I have in mind, and share it with others!

Ciao

Riccardo

1 Like