burnedikt / diasend-nightscout-bridge

Synchronize your diasend data to nightscout.
MIT License
18 stars 18 forks source link

Some Meal Boli not imported to nightscout #7

Closed burnedikt closed 1 year ago

burnedikt commented 1 year ago

Because of diasend separately sending the information about carbs and the corresponding bolus at meals, it can happen that the poll gets the bolus but the batch of data does not yet contain the carbs. In this case, the bolus will not be imported to nightscout.

https://github.com/burnedikt/diasend-nightscout-bridge/blob/a8cb47bb3ac1b3470bbac853bc71d2b3cfedb655/adapter.ts#L75-L78

One possible workaround is to simply import the bolus without specifying the carbs.

Alternatively, another run would need to be scheduled to get the carbs for the bolus (and don't import the bolus right away)

burnedikt commented 1 year ago

addressed by #13