Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
90263f4
Update loops-in-progress.md
KGoldmacher Jul 18, 2017
f7e4148
Merge pull request #955 from KGoldmacher/patch-1
danamlewis Jul 18, 2017
fdfc6fe
Update loops-in-progress.md
cbrenner Jul 19, 2017
5a303c1
Update ifttt-integration.md
cdmccook Jul 19, 2017
70d2fd7
Merge pull request #957 from cdmccook/patch-2
danamlewis Jul 20, 2017
b0e815d
Merge pull request #956 from cbrenner/patch-1
danamlewis Jul 20, 2017
a304c4d
Fix some typos
HairyFotr Jul 20, 2017
27f7da6
Update loops-in-progress.md
darrylschick Jul 21, 2017
4127c37
Update useful-mobile-apps.md
dirkgastaldo Jul 22, 2017
d387efc
Note that kernel version is useful for determining jubilinux version
scottleibrand Jul 22, 2017
a86f785
Update how-openaps-works-overview.md
dirkgastaldo Jul 22, 2017
a3d498b
Update index.rst (#963)
dirkgastaldo Jul 23, 2017
3767db0
Update overview-of-build-process.md (#965)
dirkgastaldo Jul 23, 2017
1f18dfd
Update hardware.md (#967)
dirkgastaldo Jul 23, 2017
b318c1e
Update nightscout-setup.md
JazzyCar Jul 23, 2017
d1cdd2a
Update loops-in-progress.md (#970)
JazzyCar Jul 24, 2017
a84c99e
Update understanding-your-Explorer-Board-rig.md (#972)
JazzyCar Jul 24, 2017
ae36ae9
Adding my name to Loops in Progress
Samuchco Jul 24, 2017
53a3a01
Merge pull request #975 from Samuchco/patch-1
danamlewis Jul 24, 2017
6b776e7
Merge branch 'master' into patch-1
danamlewis Jul 24, 2017
0350442
Merge pull request #961 from darrylschick/patch-1
danamlewis Jul 24, 2017
c462bca
Merge pull request #960 from HairyFotr/typos
danamlewis Jul 24, 2017
bf80015
Merge pull request #971 from JazzyCar/patch-3
danamlewis Jul 24, 2017
077a009
Merge pull request #964 from dirkgastaldo/patch-6
danamlewis Jul 24, 2017
dc7d253
Merge pull request #962 from dirkgastaldo/patch-4
danamlewis Jul 24, 2017
54e8bbd
Add meetup group URLs
danamlewis Jul 24, 2017
8b689a0
adding emphasis to max-iob and maxSafeBasal (#977)
Kdisimone Jul 24, 2017
0628ec3
combine people from both copies of loops-in-progress.md so we can del…
scottleibrand Jul 25, 2017
3fb40c8
fix broken images for token based authentications after doc update (#…
PieterGit Jul 26, 2017
715c580
Update collect-data-and-prepare.md (#978)
dirkgastaldo Jul 26, 2017
ded65cf
Update understanding-your-Explorer-Board-rig.md (#982)
dirkgastaldo Jul 26, 2017
1cbbc18
Update loops-in-progress.md (#984)
RamiLaakso Jul 29, 2017
8b8bc2a
Update loops-in-progress.md (#985)
902Lund Jul 29, 2017
9bd6630
Specify version 0.1.1 (or earlier) of Jubilinux (#986)
902Lund Jul 31, 2017
a875f83
Adding my name to the list (#987)
stavlor Jul 31, 2017
bdb4a71
image link fixes (#983)
Kdisimone Jul 31, 2017
9b4d453
Delete old loopers file that's now in a different place
danamlewis Jul 31, 2017
7d26222
Update usability-considerations.md (#959)
DriverNightscout Jul 31, 2017
f6aef4d
Update edison.md (#974)
dirkgastaldo Jul 31, 2017
507fe8f
Update edison.md (#954)
kathygagnier Jul 31, 2017
fb4c1ba
Update CGM.md (#969)
dirkgastaldo Jul 31, 2017
743fcbf
Update offline-looping-and-monitoring.md (#973)
rodzilla55 Jul 31, 2017
b9fd20b
Update nightscout-setup.md (#980)
dirkgastaldo Jul 31, 2017
815f733
Redirected urls (#990)
scottleibrand Jul 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding emphasis to max-iob and maxSafeBasal (#977)
* adding emphasis to max-iob and maxSafeBasal

* screenshot of maxSafeBasal

* typo fix

* word smithing

* Add a linkable header
  • Loading branch information
Kdisimone authored and danamlewis committed Jul 24, 2017
commit 8b689a009d7b2004ade4083e566b91a8a8fbbcb1
Binary file added docs/docs/Images/max-safe-basal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

All of the settings specific to OpenAPS (that can't be read from the pump) are in this file, so when running the setup scripts or building your loop, you will have the preferences.json file built for the system to read, in addition to your pump profile settings. Many of these are important safety settings, with reasonable default settings, so other than described below, you likely won’t need to adjust these. If you do decide to adjust a setting, the best practice is to adjust one setting at a time, and observe the impact for 3 days. Changing multiple variables at once is a recipe for a lot of headaches and a lot of painful troubleshooting.

Note: the “max basal” rate is one safety setting that you set in your pump. It should not be confused with “max daily” or “max current” multipliers described below. The system will use whichever of these three values is the lowest as the ceiling for the temps it will set. So, if your pump’s max basal is 1.0u, but 3x your highest daily basal or 4x your current basal would be higher, the system will not set any temps higher than 1.0u, even if it thinks you need more insulin. On the flip side, if your 4x current multiplier says you can have max 1.6u/hr and your max basal is 2u/hr; the maximum set temp at that time will be 1.6u/hr.
## Editing your preferences.json

Your preferences are found in the directory `myopenaps/preferences.json`. To edit any of your preferences, you can enter `edit-pref` (as a shortcut) or `cd ~/myopenaps && nano preferences.json`

To check your edits when you're done, use `cd ~/myopenaps && cat preferences.json`

### Commonly-adjusted preferences:
## Commonly-adjusted preferences:

```
{
Expand All @@ -25,11 +29,19 @@ Note: the “max basal” rate is one safety setting that you set in your pump.

#### max_iob:

This will default to “auto”, or automatically adjust to 1 hour’s worth of your current basal rate. After several days or weeks, depending on your comfort level, you may choose to adjust this number. (Remember in the future if you re-run the setup scripts, it will default back to auto so you will come in here to adjust the max iob, as it is an OpenAPS-specific setting).
Max_IOB (or maxIOB as often described) is not a basal rate. Max_IOB is the maximum amount of UNITS of basal (or SMB corrections) insulin that your loop is allowed to accumulate to treat higher-than-target BG. This setting is not dependent on the rate the temp basal is applied, however the greater a temp basal rate, the faster basal insulin is accumulated. Therefore, some safety considerations are smart.

A good rule of thumb is for max-iob to be no more than 3 times your highest basal rate. Keep in mind you can start conservatively and change this number over time as you evaluate further how the system works for you. (This means it should be approximate to your other settings; not an absolute amount that you set without thinking about it.)

The setup script will prompt you for a max-iob setting. Previous oref0 releases (0.4.3 or older) used a max-iob initial setting of 0 units. This effectively made the initial loop build only capable of suspending to prevent lows...as it was not allowed to accumulate much corrective basal insulin. oref0 0.5.0 or later will prompt you to enter a max-iob during setup. This setting will be saved in the oref-runagain script and be used again if you need to rerun the script.

Keep in mind this is one of the key safety features of OpenAPS. You do NOT want this to be a super large amount. The point of this setting is to ensure that the loop can not excessively high temp you beyond what you could correct for with carbs.
#### the most commonly confused safety variables that are also the most important

A good rule of thumb is for max iob to be no more than 3 times your highest basal rate. Keep in mind you can start conservatively and change this number over time as you evaluate further how the system works for you. (This means it should be approximate to your other settings; not an absolute amount that you set without thinking about it.)
Note: The next two variables `max_daily_safety_multiplier` and `current_basal_safety_multiplier` work together, along with your pump's max basal rate setting (set on your pump), as a safety setting for your loop. **The system will use whichever of these three values is the lowest, at any given time, as the ceiling for the temp basal rates it will set.** So, if your pump’s max basal is 1.0u, but 3x your highest daily basal or 4x your current basal would be higher, the system will not set any temps higher than 1.0u, even if it thinks you need more insulin. On the flip side, if your 4x current multiplier says you can have max 1.6u/hr and your pump's max basal is 2u/hr; the maximum set temp at that time will be 1.6u/hr.

You can be able to alerted to being restricted by the max basal setting by looking at the OpenAPS pill message in Nightscout (or in pump-loop log), which will say "adj. req. rate: XX to maxSafeBasal: XX"

![max safe basal message](../Images/max-safe-basal.jpg)

#### max_daily_safety_multiplier:

Expand All @@ -41,7 +53,7 @@ This is the other half of the key OpenAPS safety caps, and the other half of “

#### autosens_max:

This is a multiplier cap for autosens (and soon autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target.
This is a multiplier cap for autosens (and autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target.

#### autosens_min:

Expand Down Expand Up @@ -123,24 +135,4 @@ This is the fraction of carbs we'll assume will absorb over 4h if we don't yet s

The default of 0.5 for this value keeps autotune ISF closer to pump ISF via a weighted average of fullNewISF and pumpISF. 1.0 allows full adjustment, 0 is no adjustment from pump ISF.

## Editing your preferences.json

To change your max iob in your preferences.json file:

First, you need to change directory:

`cd myopenaps`

Use the nano text editor to open your preferences.json file:

`nano preferences.json`

Then amend the "max_iob": 0 to the figure you want.

To check that you have done this successfully run the following:

`cat preferences.json`

You should see the amended max IOB you have entered. Remember if you run the setup script in the future, it will default back to 0 max IOB, but you can always follow this same process to change it again.

Similarly, if you'd like to add any of the other preferences back in and change the value, copy and paste the name intro your list of preferences.json file, following the format of the example at the top of this page.