burnedikt / diasend-nightscout-bridge

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

Import basal rate from diasend API #10

Closed burnedikt closed 1 year ago

burnedikt commented 1 year ago

With this PR, data records delivered by Diasend of the type insulin_basal will be imported into nightscout's basal profile.

image

Important Per default, the basal profile will be imported into a nightscout profile called "Diasend". This means, the default profile will not be overwritten and you'll need to manually select the Diasend profile within nightscout's Profile Editor: image

You can select which profile the data will be imported to by setting the environment variable NIGHTSCOUT_PROFILE_NAME. E.g. to import the basal rate into the Default profile, set NIGHTSCOUT_PROFILE_NAME=Default.

Important 2 We already have a synchronization of basal profiles in place using the pump settings synchronization loop. To avoid the pump setting's basal rate to override the one provided by the diasend API, set importBasalRate: false for startPumpSettingsSynchronization.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 0.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: