The field is called “Bloodglucose” and i can see this when i open the file in fitfileviewer. I am trying to follow the above guidance in order to create fields for a) time spent below 4, b)time spent above 10, c) time spent in range. But im struggling to access the data at all using the below:
//calculate time spent
let time_low=0
for(let i=0; i<Blood_glucose.length; i++) {
let t=Blood_glucose[i]
if (t<=Low_limit) time_low +=1
}
But i keep getting the error “Invalid stream type [Bloodglucose]” - but this steam definitely exists when i view the FIT file in fitfileviewer. Any ideas what i’m doing wrong?
Just coming back to this. Your example works great, but when I try to pass a fatigue value in the URL I get a 422 error Invalid fatigue. Any ideas? As an example I’m just passing the value 3000.
You need to do fatigue=kj0 or fatigue=kj1 to get fatigued power curves for the athlete. These correspond to whatever has been configured on the /power page for the athlete:
Custom activity field are evaluated only when I add the field, otherwise on all other activities, I have the filed empty with a question mark like this
Second, why I can able to edit that value? Can I set it as read only?
Hi!
When I use custom stream with “left_power_phase” record field, I successfully get the start angle. But this record field contains two values - start and end angle and I can’t use the second one. left_power_phase[1] give me none, preprocess fit file not helped.
Sorry for bad English.