swissalpine / GARMIN-xDrip-Spike-Nightscout-Watchface

19 stars 2 forks source link

IoB, Carb data without AndroidAPS #6

Closed bart2 closed 1 year ago

bart2 commented 1 year ago

Hello,

First of all, thank you for implementing this watch face. It has been super helpful in managing my T1 diabetes!

I recently discovered that xDrip+ allows adding meal carb and bolus values and will report estimated IoB values in the app: Screenshot_20230618_113321_xDrip+

After some research I found that xDrip watch face already supports reporting IoB values, but only when full loop AndroidAPS is used.

Would it be possible to have an option to display xDrip+ IoB and carb values as data fields in the watch face?

Thanks!

swissalpine commented 1 year ago

Unfortunately, this is not possible because the endpoint that the watchface queries does not pass on this information. Only the aaps status is passed through. From this I isolate IOB, TBR and COB.

bart2 commented 1 year ago

Thanks for the reply. I'll see if I could extend the xDrip+ endpoint to include that information.

To make testing possible, can I get added to the private repo containing the watch face source code (I noticed similar requests in other discussion threads :))

Thanks!

bart2 commented 1 year ago

@swissalpine, I've added IoB reporting in xDrip+ with https://github.com/NightscoutFoundation/xDrip/pull/2928.

I started working on the Garmin side of things, when I realized the repo I got access to only contains the datafield source code. Can you also add me to the watch face source code repository? Thanks!

swissalpine commented 1 year ago

Done. Please note that for the data field the code can hardly be larger, the limit is 26 kb for older devices.