I have a situation where I’m using a Garmin to collect Moxy data at 10 Hz via a ConnectIQ app. ConnectIQ only allows writing to the .fit file once per second so I set it up to write an array of timestamps, SmO2, and THb data in 3 developer data fields.
Now, I’d like to graph the data in Intervals. I can unpack the data in a custom stream script with the code below
{
for (let m of icu.fit.record) {
let timeArray = m['1st Time Sensor 7769 on Location Not Set']?.value;
let smo2Array = m['1st SmO2 Sensor 7769 on Location Not Set']?.value;
for (let i = 0; i < timeArray.length; i++) {
if (timeArray[i] > 0) {
console.log(timeArray[i]/1000 + "," + smo2Array[i])
}
}
}
}
I’d like to make a Custom Activity Chart to plot the data, but I’m not sure how to proceed. I’m not able to create an Activity Stream of the arrays of data. I’m not able to access the .fit data directly in the Custom Activity Chart.
Does anyone know of an approach for plotting this data?
Here’s a link to the .fit file with the arrayed data in it.
Here’s a link to the .csv file made from the .fit file.