How to display stroke type (Breaststroke, Freestyle, Backstroke) in swimming charts?

You can get the message and swim stroke with that kind of code on the console:


{
for (let m of icu.fit) {
    if(m.event?.valueName === "LENGTH") {
         console.log(m); //the message
         console.log(m.swim_stroke) // swim stroke
    }
  }
}

You have to tick the „Process fit file Message“ on the „Type“ Tab, that this works.

2 Likes