GithubHelp home page GithubHelp logo

looppatches's Introduction

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

looppatches's People

Contributors

jonfawcett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.