Skip to content

jonfawcett/LoopPatches

Repository files navigation

Loop Patches


Do not use these patches for Loop Dev or the upcoming Loop v 3.0

New patches for Dev and future versions are available at https://github.com/CustomTypeOne/LoopPatches


- Using the patch command in git allows you to apply code from other developers, pull requests, 
- or even saved customizations you regularly make. If you are applying code from other developers,
- please ensure that you look through the code and understand what the code changes are before 
- incorporating it. It is your responsibility to understand and implement your Loop system and 
- you do this at your own risk. As of 2022, I am no longer maintaining this current patch due 
- to work on the upcoming Loop 3.0. I expect this will continue to work for Loop 2.x but it 
- is your responsibility to test it before use.

Automatic Dose Strategy Switching

ABSwitcherPatch.txt

In my experience Automatic Bolus works great to combat highs, but can be too aggressive overnight or when dealing with lows. This automatic switcher allows you to set a BG threshold for switching between temp basal and automatic bolus. For instance if set at 130 mg/dl, Loop will automatically use temp basals under 130 mg/dl and switch to automatic boluses over 130 mg/dl. This has greatly solved the issue of needing to have AB aggressive enough to combat high BG while needing it less aggressive in lower range.

Only apply this patch if you want the switcher without the profile fix.

Nightscout Profile Upload

NightscoutProfilePatch.txt

Typically Loop uploads a new profile everytime any setting is changed. This includes starting/stopping an override as well as when the dosing strategy is changed. This can generates thousands of extra profile saves to Nightscout each month which can cause other issues. The patch limits Loop to only upload a new profile if Basal, Carb Ratio, ISF, target range, or an override setting is changed.

Only apply this patch if you want the profile fix without the switcher.

Combined Patch

ABSwitcherAndProfileUploader.txt

This patch incorporates the Strategy Switch er and Nightscout profile uploader fix together. Both are needed in order to ensure you do not overload your NS database profile table while using the switcher patch.

Apple this patch if you want both the switcher and profile updload fix. This is recommended.

Please watch my YouTube video for directions on installation. Update to video: The NS patch now handles uploading override modifications correctly. https://www.youtube.com/watch?v=m6Cy4nlkaNQ&t=4s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published