burnedikt / diasend-nightscout-bridge

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

Carbs can come more than one minute later than the corresponding bolus #28

Closed burnedikt closed 1 year ago

burnedikt commented 1 year ago

The current implementation assumes that carbs corresponding to a meal bolus are always available within the diasend API up to one minute prior or after the corresponding bolus. However, some samples indicate that this may well be 2 minutes, and potentially even more. This may also contribute to the situation described in #18.

https://github.com/burnedikt/diasend-nightscout-bridge/blob/184691c00b6f4e81dad511006b25d6fbf93d8a3c/adapter.ts#L59