These are chat archives for nightscout/intend-to-bolus

20th
Apr 2018
Martin Haeberli
@mhaeberli
Apr 20 2018 00:38
@scottleibrand @danamlewis any hints on how to get a response from Morgan @ ERD? I have a few broken Explorer boards it would be great to get fixed … In particular pump radio not working no matter how many reflashes
Tim Gunn
@Tornado-Tim
Apr 20 2018 00:38
Yea I have not heard from him either.....
Martin Haeberli
@mhaeberli
Apr 20 2018 00:39
i have tried a few emails ...
flip side - is there something I (or others) can do to help him - sounds like he’s very busy
joe5165
@joe5165
Apr 20 2018 01:11
I am just starting with my edison. I cannot connect to my wifi. It flashed well and everything else works.
Dana Lewis
@danamlewis
Apr 20 2018 01:12
@joe5165 what type of wifi? Home or phone or ?
joe5165
@joe5165
Apr 20 2018 01:12
home wifi
Dana Lewis
@danamlewis
Apr 20 2018 01:12
And is this in the bootstrap script or are you past that?
joe5165
@joe5165
Apr 20 2018 01:12
it is in the bootstrap that it seemed to stop at the wifi
Dana Lewis
@danamlewis
Apr 20 2018 01:14
Does your wifi show up on the list?
joe5165
@joe5165
Apr 20 2018 01:17
i entered the bootstrap scrip and then it asked for my ssid and password. Then i entered that in and it ended with no DHCPoffers received then no working leases in persistent database - sleeping and finally Wifi SSId: root@
I have rebooted several times. Reran the bootstrap.
joe5165
@joe5165
Apr 20 2018 01:24
I am going to reflash and try again.
Dana Lewis
@danamlewis
Apr 20 2018 01:28
No need to reflash.
Next step to try: what type of phone do you have?
I'd turn your phone hotspot on (if it's iOS, then leave the hotspot screen on and open while you run bootstrap so it can see your hotspot)
joe5165
@joe5165
Apr 20 2018 01:29
I have a samsung s7
Dana Lewis
@danamlewis
Apr 20 2018 01:29
K. Can it hotspot?
(Also my flight is about to take off so someone else can jump in when I lose signal) but try the phone network next, and if not you can do install and run oref0 setup and go back to do wifi later manually
joe5165
@joe5165
Apr 20 2018 01:30
yes
i am halfway through reflashing
when it asks for my ssid and password is that supposed to be one from the list?
joe5165
@joe5165
Apr 20 2018 02:12
it works after rebooting
Scott Leibrand
@scottleibrand
Apr 20 2018 02:16
Maybe add a note to the docs to try that?
joe5165
@joe5165
Apr 20 2018 02:29
if at first you don't succeed try, try again?
I don't know what I am doing!
Michael Spradling
@M1Sports20
Apr 20 2018 13:15
When upgrading to 6.0. I noticed the docs said to not use the bolus wizard and to just enter the carbs using nightscought,xdrip,... However, when I do this openaps seems to give me the insulin to late. Even if I put the carbs in before i eat
I see it doing smbs. For example, I at 25 carbs today and shot up to 250 before it is starting to recover me. I didn't have this problem when prebolusing using meal wizard
Jeremy Cunningham
@jpcunningh
Apr 20 2018 13:24
@M1Sports20 , the bolus wizard provided both insulin boluses and carb announcements to the rig. You can still bolus with the pump, but use the easy bolus instead of the bolus wizard to prevent the A52 on the pump. Since the easy bolus doesn't provide for carb input, use nightscout to announce carbs to the rig instead of the bolus wizard.
Michael Spradling
@M1Sports20
Apr 20 2018 13:32
ahh, ok i get it now
jpcunningh: Thanks
Martin Haeberli
@mhaeberli
Apr 20 2018 17:57
IMG_3025.PNG
IMG_3029.PNG
IMG_3028.PNG
IMG_3026.PNG
the question is: given the 130-130 target, why is it having such a hard time bringing numbers down. And see a second stage, similar. Wondering if there is yet another set of settings I’m missing.
Scott Leibrand
@scottleibrand
Apr 20 2018 18:17
why are you setting a high temp target if you want it to bring the numbers down?
Martin Haeberli
@mhaeberli
Apr 20 2018 18:18
goal is to set a safe temp target for sleeping (which happens to be above the pump 120 target).
then ideally would be fire-and-forget ...
so another alternative is to have an intervening (and awake) angel adjust the target; maybe she would set the target to 90 were she at 210 at bedtime, then once things were closer to 130, the angel would reset the target...
Scott Leibrand
@scottleibrand
Apr 20 2018 18:19
it appears that you have the "high target indicates sensitivity" preference enabled, so a 130 target indicates to the system that your basal needs are only 67% of normal
you shouldn't need to set temp targets in response to BG levels
Martin Haeberli
@mhaeberli
Apr 20 2018 18:20
indeed "high_temptarget_raises_sensitivity": true,
Scott Leibrand
@scottleibrand
Apr 20 2018 18:20
setting a 130 target is something you should only need to do to announce activity/exercise
Martin Haeberli
@mhaeberli
Apr 20 2018 18:21
agree - would prefer NOT to set temp targets in response to BG levels. she’d like her safe ‘sleep’ level to be 130 ...
(a non-activity)
is there another way of thinking about this that we’re not seeing?
Scott Leibrand
@scottleibrand
Apr 20 2018 18:21
can she schedule her pump target to be 130 overnight?
Martin Haeberli
@mhaeberli
Apr 20 2018 18:21
probably - good idea - it’s a 723, so I assume so
it has been interesting … sometimes she has been entering sleep mode at around 190 with that elevated temp target of 130, then numbers usually come in on their own
but i’ll recommend the 130 overnight target
alimhassam
@alimhassam
Apr 20 2018 19:14
What's the right thing to if I entered my lunch carbs twice by mistake?
philipgo
@philipgo
Apr 20 2018 19:22
My way is: delete the duplicate entry in NS, reboot the rig
Dana Lewis
@danamlewis
Apr 20 2018 19:46
@alimhassam where did you enter them? pump or elsewhere?
alimhassam
@alimhassam
Apr 20 2018 20:01
One in the pump and one slighly different in xdrip+ which copied it to ns
Dana Lewis
@danamlewis
Apr 20 2018 20:01
delete in xdrip and NS and you should be good to go.
alimhassam
@alimhassam
Apr 20 2018 20:01
I deleted that second one in NS treatment report.
Dana Lewis
@danamlewis
Apr 20 2018 20:01
cool. may need to delete in drip too?
alimhassam
@alimhassam
Apr 20 2018 20:01
Thanks!
Martin Haeberli
@mhaeberli
Apr 20 2018 20:02
@scottleibrand continuing the conversation about targets … is there a way (or would this be an extension) to have a variable analogous to the pump-set target that was settable through the careportal ; or, in other words, a decision about whether a temp is ‘high’ or ‘low’ be made that wasn’t relative to the pump setting (which itself is hard to control remotely) but somehow relative to another setting, easier to put in careportal? ‘asking for a friend’ :-)
Scott Leibrand
@scottleibrand
Apr 20 2018 20:04
A temp target is considered high it it’s >= 111, and low if it’s <= 99
You seem to have a different mental model of this than I do: can you explain what you’re trying to accomplish in more detail?
Dana Lewis
@danamlewis
Apr 20 2018 20:10
^ + I would describe your current setup, targets and all, too
Martin Haeberli
@mhaeberli
Apr 20 2018 20:11
if I understand it correctly, whatever target is programmed in the pump is NOT a temp target - say it’s 90 from 8am-5pm, 100 from 5pm-11pm, 120 from 11pm-8am. But for this patient bedtimes are variable - she wants her target to be 120 from bedtime to 8 hours later, or so...
current setup - 723, edison, Dexcom G5, iPhone, pump target I think is 120 for 24 hours. (I need to check this). she will set high temp target (say 160 for an hour or two) for exercise.
a low target, say 80, for a recalcitrant high; a bedtime temp target of 130-130 now (used to be 140-140)
James Babcock
@jimrandomh
Apr 20 2018 20:13
So the idea is to have a higher target while asleep in order to reduce the risk of nighttime hypoglycemia? I think looping makes that a lot less necessary than it would be without a loop.
Martin Haeberli
@mhaeberli
Apr 20 2018 20:14
trying to accomplish - staying in range (abstractly defined) more; less ‘manual’ intervention. Running with pretty much all SMB on (I can paste preferences.json) now doing mostly carb announcements letting SMB catch up. occasional partial bolus for carbs, especially if high
@jimrandomh indeed, that is a goal. candidly, we don’t have good daytime activity tracking - some days are active, so more risk of night time lows ;
getting better, but having the experience that, even with predictive low suspend from openaps, and a few hours of zero temp, numbers can go from 130 or so to 80 or so
(and might go further).
so a related goal is to prevent waking patient remotely to add carbs, try to get fairly flat overnight numbers once in range / near or at some target
sorry for the unscientific qualitative explanation...
Jon Cluck
@cluckj
Apr 20 2018 20:17
qualitative descriptions can still be scientific :P
Martin Haeberli
@mhaeberli
Apr 20 2018 20:18
:-)
(and also prevent waking ‘angels’ who are backup and who do wake to alarms…)
Jon Cluck
@cluckj
Apr 20 2018 20:19
can you setup a "bedtime" button that can set a temp target for 8 hours?
James Babcock
@jimrandomh
Apr 20 2018 20:20
Maybe nighttime basals are too high? Dropping 50mg/dL after zero-temping for an hour suggests there was too much basal in the hour prior to when it started zero temping
Jon Cluck
@cluckj
Apr 20 2018 20:21
definitely that too
Scott Leibrand
@scottleibrand
Apr 20 2018 20:21
I don’t think you want to be running temp basals for more than an hour or two.
Martin Haeberli
@mhaeberli
Apr 20 2018 20:21
already have button - it sets temp target 130-130 for 8 hours
yeah - some vague concern about ‘washout’ but...
d’oh re earlier basal targets. unfortunately, we also had a pattern going for a while, related to datacomm issues, where openaps would be offline likely 8 pm - 11:30 pm or so, numbers would go high, then some struggle to get near 180 or so as an ‘entry’ to overnight...
Dana Lewis
@danamlewis
Apr 20 2018 20:23
@mhaeberli paste your preferences too so we can see if there's anything else that's being counteracted?
James Babcock
@jimrandomh
Apr 20 2018 20:23
Also, if this is happening specifically on days with high activity, adjusting meal-sizes to match activity more closely might help
Martin Haeberli
@mhaeberli
Apr 20 2018 20:23
{
    "max_iob": 8,
    "max_daily_safety_multiplier": 3,
    "current_basal_safety_multiplier": 7,
    "autosens_max": 1.2,
    "autosens_min": 0.7,
    "rewind_resets_autosens": true,
    "adv_target_adjustments": false,
    "exercise_mode": false,
    "wide_bg_target_range": false,
    "sensitivity_raises_target": true,
    "unsuspend_if_no_temp": true,
    "enableSMB_with_COB": true,
    "enableSMB_with_temptarget": true,
    "enableUAM": true,
    "curve": "rapid-acting",
    "offline_hotspot": false,
    "carbsReqThreshold": 1,
        "": "high_temptarget_raises_sensitivity default false",
        "high_temptarget_raises_sensitivity": true,
        "": "low_temptarget_lowers_sensitivity default false",
        "low_temptarget_lowers_sensitivity": false,
        "": "sensitivity_raises_target default false",
        "sensitivity_raises_target": false,
        "": "resistance_lowers_target default false",
        "resistance_lowers_target": false,
        "": "autosens_adjust_targets default false",
        "autosens_adjust_targets": false,
        "": "skip_neutral_temps default false",
        "skip_neutral_temps": false,
        "": "bolussnooze_dia_divisor default 2",
        "bolussnooze_dia_divisor": 2,
        "": "min_5m_carbimpact default 8",
        "min_5m_carbimpact": 8,
        "": "carbratio_adjustmentratio default 1",
        "carbratio_adjustmentratio": 1,
        "": "maxCOB default 120",
        "maxCOB": 120,
        "": "autotune_isf_adjustmentFraction default 0.5",
        "autotune_isf_adjustmentFraction": 0.5,
        "": "wide_bg_target_range default false",
        "wide_bg_target_range": false,
        "": "A52_risk_enable default false",
        "A52_risk_enable": true,
        "": "maxSMBBasalMinutes default 30",
        "maxSMBBasalMinutes": 30,
        "": "allowSMB_with_high_temptarget default false",
        "allowSMB_with_high_temptarget": true,
        "": "enableSMB_always default false",
        "enableSMB_always": true
}
(extra comments to remind me of defaults)
Craig Brenner
@cbrenner
Apr 20 2018 20:29
@danamlewis Hey Dana, following up from an exchange we had several weeks ago in regard to IFTTT button inputs for meals not registering in the OpenAPS pill (i.e., COB shows '0'). So it seems I have been able to reproduce this error. We have multiple IFTTT buttons for meals (10g, 20g, 40g, 60, 80, etc.). If we press a combination of IFTTT buttons in sequence (e.g., 40g button + 10g button = 50g meal), it seems that the COB doesn't always register. On the other hand, if we just use one IFTTT button for a meal (60g button only), we don't seem to have any issues. Note that entering a combo of IFTTT buttons sometimes works (probably 50% of the time) so I'm guessing it is a timing issue as to how much time elapses between each button input.
Dana Lewis
@danamlewis
Apr 20 2018 20:31
@cbrenner thanks for following up on this. can you clarify what doesn't register where? does the input go into iftt and trigger (e.g. the 40 and the 10 trigger in iftt) but only the 40 ends up in NS? or iftt isn't getting the 40 and the 10 if they're too close togheter?
Craig Brenner
@cbrenner
Apr 20 2018 20:34
@danamlewis IFTTT is triggered, we get a notification for both inputs (and I see it in the IFTTT activity log) and 40g and 10g shows up in NS as carbs entered. The COB pill, however, continues to show as '0'
Dana Lewis
@danamlewis
Apr 20 2018 20:34
and shows up in OpenAPS or not?
(logs or OpenAPS pill)
Craig Brenner
@cbrenner
Apr 20 2018 20:34
@danamlewis No, does not show up in OpenAPS
logs or pill
Dana Lewis
@danamlewis
Apr 20 2018 20:35
does it ever show after that point, at any point? I know there's a display issue where NS COB pill toggles to 0, but sometimes a fresh run of the loop then grabs the carbs and it shows in the OpenAPS pill or logs in future
Craig Brenner
@cbrenner
Apr 20 2018 20:36
Never shows up. My only remedy is to either edit the entries and change amount or time or delete them and replace with new ones
Dana Lewis
@danamlewis
Apr 20 2018 20:36
interesting. ok. weird.
i do a combo of buttons (e.g. 30+15) periodically and have never seen this behavior, but I think I may have more time spread between the button presses since I'm doing it on my watch and it requires the success screen before I get to the next button. are yours iphone buttons, e.g. fast to tap them?
Craig Brenner
@cbrenner
Apr 20 2018 20:38
Yep, iPhone buttons on the widgets screen so pretty quick
Dana Lewis
@danamlewis
Apr 20 2018 20:39
k. so: short term solution, I would stop doing the combo button approach. (One good tool is Workflow which is great for custom carb and temp target amounts - I would install that: http://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/ifttt-integration.html#workflow-to-custom-enter-carbs-and-temp-targets-from-today-widget-on-iphone) I'll try to do some button pressing testing to see if I can replicate & figure out how widespread of a problem it is. thx for flagging it & following up on it.
Craig Brenner
@cbrenner
Apr 20 2018 20:40
@danamlewis Ok, will check out Workflow.
Dana Lewis
@danamlewis
Apr 20 2018 20:40
:+1: having it as widget on Today screen is nice and fast.
Craig Brenner
@cbrenner
Apr 20 2018 20:43
@danamlewis just curious, How is it different than the buttons created in IFTTT via 'webhooks' and 'button'
Dana Lewis
@danamlewis
Apr 20 2018 20:43
because then you can put in a custom amount on the spot, vs having to have the pre-set amounts to tap the right combinations of buttons
Craig Brenner
@cbrenner
Apr 20 2018 20:44
ahh, ok...
Dana Lewis
@danamlewis
Apr 20 2018 20:44
hold on, grabbing a screenshot, because I thought one was in the docs
Craig Brenner
@cbrenner
Apr 20 2018 20:46
hopefully it is teen proof....having a really tough time getting my son to remember to press the current super simple fixed IFTTT meal buttons after he does a meal bolus. constantly reminding him
Dana Lewis
@danamlewis
Apr 20 2018 20:46
yea. in general, I wouldn't worry about precision of meal counting. If you have 15,30,45,60,90 buttons - probably good enough (IMO)
Workflow_carbs_example.PNG
here's the example of carbs. also temp targets
Craig Brenner
@cbrenner
Apr 20 2018 20:48
yep, not too worried about precision just actually inputting something :-)
Dana Lewis
@danamlewis
Apr 20 2018 20:48
:+1:
feel free to add better ones, someone :)
Martin Haeberli
@mhaeberli
Apr 20 2018 21:51
@jimrandomh @danamlewis @scottleibrand autotune actually recommends higher basals before and after bedtimes ...
Parameter      | Pump     | Autotune 
-------------------------------------
ISF [mg/dL/U]  | 45.000   | 51.059   
Carb Ratio[g/U]| 6.500    | 5.933    
Basals [U/hr]  | -        |
  00:00        | 1.150    | 1.267    
  00:30        |          |          
  01:00        |          | 1.266    
  01:30        |          |          
  02:00        |          | 1.291    
  02:30        |          |          
  03:00        | 1.200    | 1.287    
  03:30        |          |          
  04:00        |          | 1.306    
  04:30        |          |          
  05:00        |          | 1.306    
  05:30        |          |          
  06:00        | 1.450    | 1.225    
  06:30        |          |          
  07:00        |          | 1.028    
  07:30        | 1.55     |          
  08:00        |          | 1.083    
  08:30        |          |          
  09:00        |          | 1.083    
  09:30        | 1.6      |          
  10:00        |          | 1.111    
  10:30        |          |          
  11:00        |          | 1.120    
  11:30        |          |          
  12:00        | 1.650    | 1.553    
  12:30        | 1.65     |          
  13:00        |          | 1.800    
  13:30        |          |          
  14:00        |          | 1.962    
  14:30        |          |          
  15:00        |          | 1.926    
  15:30        | 1.6      |          
  16:00        |          | 1.823    
  16:30        |          |          
  17:00        |          | 1.872    
  17:30        |          |          
  18:00        |          | 1.772    
  18:30        |          |          
  19:00        |          | 1.721    
  19:30        |          |          
  20:00        |          | 1.629    
  20:30        | 1.4      |          
  21:00        |          | 1.560    
  21:30        |          |          
  22:00        |          | 1.636    
  22:30        | 1.4      |          
  23:00        |          | 1.643    
  23:30        |          |
for example
Dana Lewis
@danamlewis
Apr 20 2018 21:58
I'm not too surprised by that - I think that's probably reflecting some of the offline time where you're not looping, and suggesting you need slightly higher baseline to work from
Martin Haeberli
@mhaeberli
Apr 20 2018 21:58
k thx. any further suggestions?
Dana Lewis
@danamlewis
Apr 20 2018 21:59
I would consider re-thinking the target approach - both putting a schedule of targets in, but also taking a lighter hand to temp targets.
(I'd start there, not necessarily change baseline basals overnight since the concern is drifting lows, and then after adjusting target approach, then do a clean run of autotune to see what it says of basals after that)
Martin Haeberli
@mhaeberli
Apr 20 2018 22:00
ok thx. Also lmk when you figure out how to get the ‘virtual Glucagon’ feature deployed as well ( :-) )
Dana Lewis
@danamlewis
Apr 20 2018 22:01
fwiw: i've changed my low alarm on my cgm to disappear, I only want to be alarmed for 55 now, and even then..if I'm looping I really would rather keep sleeping because I have so much negative iob at this point that I come up from it fine. waking me up if I wasn't waking from low symptoms = not something I want (anymore). YDMV of course, and mine has definitely varied over the last few years!
but that's also evolved with a comfort of settings and targets, etc.
Martin Haeberli
@mhaeberli
Apr 20 2018 22:02
thx I think an issue here is comfort level combined w/ ‘the map is not the territory’ - CGM values may not be same as serum BG … but I’ll relay
and a concern is that she doesn’t wake from low symptoms ...
so how low to let it go given uncertainty map/territory plus need to engage escalations (room mate, resident assistant, etc)
Dana Lewis
@danamlewis
Apr 20 2018 22:04
ya.
Scott Leibrand
@scottleibrand
Apr 20 2018 22:17
she may see some of her hypo awareness return after looping for awhile and not being low all the time
Jon Cluck
@cluckj
Apr 20 2018 22:20
^
My last low alarm confused me because I forgot what it sounded like
Martin Haeberli
@mhaeberli
Apr 20 2018 22:39
@scottleibrand definitely better hypo awareness is a goal ...
@cluckj lol
philipgo
@philipgo
Apr 20 2018 23:22
@danamlewis Re Nightscout Autotune: We see significantly different results on Nightscout and on the rig, not just rounding errors. This was after deleting the autotune directory on the rig and running autotune for a period of one week on both the rig and Nightscout.