Garmin sgv.json: add iob, cob and tbr
This commit is contained in:
parent
d20beee891
commit
e29d8f59f9
1 changed files with 3 additions and 0 deletions
|
@ -327,6 +327,9 @@ class GarminPlugin @Inject constructor(
|
||||||
GlucoseUnit.MGDL -> jo.addProperty("units_hint", "mgdl")
|
GlucoseUnit.MGDL -> jo.addProperty("units_hint", "mgdl")
|
||||||
GlucoseUnit.MMOL -> jo.addProperty("units_hint", "mmol")
|
GlucoseUnit.MMOL -> jo.addProperty("units_hint", "mmol")
|
||||||
}
|
}
|
||||||
|
jo.addProperty("iob", loopHub.insulinTotalOnboard)
|
||||||
|
jo.addProperty("tbr", loopHub.temporaryBasalPercent)
|
||||||
|
jo.addProperty("cob", loopHub.carbsOnboard)
|
||||||
}
|
}
|
||||||
joa.add(jo)
|
joa.add(jo)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue