Skip to content

Review changes from trixing/Loop #390

@trixing

Description

@trixing

Hi @ps2 ,

over the last few weeks I have made a few changes to the Loop app in my private branch (https://github.com/trixing/Loop). It's based on an older (~December) LoopKit version. I'd like to rebase, refactor and merge most changes upstream now that this is working reliable (on a base of 1 subject, my kid).

Unfortunately, because I didn't rebase for a while, I'll have to rewrite most of these things from scratch for clean upstream pull requests. As that's going to take a considerable amount of my time, I'd like you to review these changes first and let me know which ones you are likely to accept, or which changes you would want to make it acceptable.

The main features I'd consider for separate pull requests are (for more see the README.md in my branch), in ascending complexity:

  1. add maximum Insulin on board setting (Bolus and TempBasal will be limited by this, safety feature for preschool)
  2. add minimum Basal Rate (to avoid Ketones, especially interesting for kids as those tend to have low basal rates to begin with. I witnessed extended periods of zero, which would then let to really big highs on carbs afterwards).
  3. add a "Note" button on the bottom bar, and to the Carb Entry field (needs a patch to add support in rileylink_ios/NightscoutUploadKit as well)
  4. add the possibility to manually enter glucose (in case the sensor is not working) and trigger a Bolus. Also adds a carb-only bolus without any glucose data. Useful because all the data will still be logged to Nightscout and no manual upload is required for these periods.
  5. New Bolus logic to include a state machine keeping track of successful delivery (showing state on statusview) and retry.

Screenshots of some of this attached, but best is probably to pull my branch and experiment a bit.

Thanks for all your work setting the base for this!

img_8542
img_8541
img_8540
img_8539
img_8538
img_8537
img_8536
img_8535

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions