You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see any reference in this plugin, I tried many things, but it's crash due to the missing unit.
const powerSamples = data.locations.w.map((power, index) => ({
quantityType: HKQuantityTypeIdentifier.cyclingPower,
unit: '', // WHAT CAN I DO HERE ?
quantity: power,
startDate: new Date(startedAtMilis + index * 1000),
endDate: new Date(startedAtMilis + index * 1000),
}));
samples.push(...powerSamples);
The text was updated successfully, but these errors were encountered:
Thanks for this great plugin.
I try to write Cycling Power to Apple Health:
https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower
I have a problem with the Unit :
PowerUnit => https://developer.apple.com/documentation/healthkit/hkunit/3929735-watt
(NotPresent here
https://developer.apple.com/documentation/healthkit/hkunit/1615733-init )
I don't see any reference in this plugin, I tried many things, but it's crash due to the missing unit.
The text was updated successfully, but these errors were encountered: