[SOLVED] iGPSPORT .fit file intergation problem (Ans: Custom Script)

I’m attaching my .fit file to this post.
I can’t extract the di2 battery charge and power meter charge fields from the field2 and field3 fields, respectively from “mesg 65821”.
However, I can’t access this data through the .fit file. I can see these fields in fitfileviewer, but I can’t create a script to read them.
@david , is there a way to do this? What do you think of the igpsport .fit file?

I can’t attach .fit directly , please rename tha attached file to .fit
ride-0-2026-02-13-14-10-01.erg (330.8 KB)

Try

{
  for (let m of icu.fit.m_65281) 
console.log(m)

}
1 Like

Then for DI2 battery level

{
  let lvl = ''
  for (let igp of icu.fit.m_65281) {   
         lvl = igp.f_2?.value
    }  
  lvl
}
2 Likes

WOW …Thanks @miguell , everything works well

Thanks