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

20th
Oct 2017
Scott Leibrand
@scottleibrand
Oct 20 2017 00:06
@cluckj nice. you're hitting minGuardBG, or something else? you can try a temp target of 80 and/or entering more carbs (via NS, so you can delete them). as long as BG is above about 65 the combination of those two should make it start SMBing. or, for a more realistic test, pre-enter your next meal carbs and see how much IOB you get with SMB
Jon Cluck
@cluckj
Oct 20 2017 00:21
@scottleibrand I think it was the former? I'm stress testing the system for myself to see when I should be able to trust it :) I've been entering carbs with SMB on for a few days, and enabled UAM today -- I wanted to see what would happen if I didn't enter anything while UAM was on
turns out....not much happened! which means instead of hitting it with bread and a couple peppermint patties, I need to have gasp a bagel
Samuchco
@Samuchco
Oct 20 2017 00:33
Can someone direct me where I can find instructions on how to work with TWO rigs?
Dana Lewis
@danamlewis
Oct 20 2017 00:35
Step 1: build rig 1. Step 2: build rig 2. :smile: (you don't have to do anything special otherwise)
@cluckj heh. I'm planning to stress test over Thanksgiving, since our nephew gave us norovirus and we didn't have Thanksgiving food last year...planning to double up this year! :smile:
Jon Cluck
@cluckj
Oct 20 2017 00:42
"I'm going to get an extra helping of stuffing....for science!"
Samuchco
@Samuchco
Oct 20 2017 00:47
@danamlewis how will the pump know which rig to connect to. And which autotune/autosense to use
@danamlewis do both rigs have to be in the same dev (dev2). so they both have to be updated
Scott Leibrand
@scottleibrand
Oct 20 2017 00:57
@Samuchco the pump doesn't know anything except what it's told (to set temp basals, etc.). Each rig operates independently, using the same input data from the pump and from CGM/Nightscout. They have a "wait for silence" that allows them to avoid trying to talk to the pump at the same time. As long as they're both running the same code and getting the same inputs, they'll set the same temp basals on the pump (or usually, not do anything because the correct temp is already running). If you run different code, or have done different numbers of days of autotune on different rigs, they'll have slightly different starting basals and ratios, and therefore might adjust each others' temps up or down slightly, but the end results will be more or less the average of what the two rigs wanted to do.
Jon Cluck
@cluckj
Oct 20 2017 01:29
hmm, do y'all think there is a way to determine one's own DIA based on NS or openaps data?
Scott Leibrand
@scottleibrand
Oct 20 2017 01:33
Yes, but I haven't built it yet. I'm thinking about doing a gradient descent algorithm where I run autotune three times on each day's data with slightly shorter and longer DIA (and similarly for peak time) and see which of the three runs generates the smallest non-meal deviations (via RMS or similar). If a shorter DIA has lower deviations than the current one, and the longer DIA has higher, then we lower the DIA slightly and do the same thing again on the next day's data.
Jon Cluck
@cluckj
Oct 20 2017 01:38
and slowly adjust it iteratively? nice
Jon Cluck
@cluckj
Oct 20 2017 01:51
(I mean, until it reaches/approaches zero deviation)
Samuchco
@Samuchco
Oct 20 2017 02:17
Question, My son incorrectly put BG 192 instead of 92. He bolused for 80 gm. How can I correct the BG on NS so it doesnt affect the autotune
garykidd
@garykidd
Oct 20 2017 02:18
@scottleibrand may be particualrly helpful w/r/t FIASP sensitivity adjustment...
@Samuchco I would adjust the treatments in NS.
admin report treatment find it ...fix it
Jon Cluck
@cluckj
Oct 20 2017 02:20
doing a custom DIA calculation is a step towards custom insulin absorption modelling too ;)
Samuchco
@Samuchco
Oct 20 2017 02:21
@garykidd don't see how to edit on the Treatments Report
saw it. sorry
garykidd
@garykidd
Oct 20 2017 02:23
what is the UX part of autotune UX, @scottleibrand ? thx
I made similar mistake about 2 weeks ago...had SMBs firing like crazy ---but only fo ra short while til I fixed it.
Dana Lewis
@danamlewis
Oct 20 2017 02:28
@Samuchco was it entered on the pump? Be careful - if you edit something (in NS) tied to a carb entry on pump, it may create a second carb entry
Samuchco
@Samuchco
Oct 20 2017 02:30
Yes, I was entered in the pump. I'm not changing the carb entry. Just edited the 192 and substituted for 92. Carbs and units stayed. How would I know if there is a double entry?
Dana Lewis
@danamlewis
Oct 20 2017 02:30
If so, delete the second NS-based carb entry so it won't dose.
Check treatments after the next pump upload. If time stamp isn't changed - it may be ok - but chances are it'll cause a duplicate
Best practice is to not put bg into pump so you don't risk a double correction (e.g. Correcting for 192 via the bolus wizard when OpenAPS is already adjusting for 192 being above target). Just put carbs into pump.
But a bg entered by pump won't influence OpenAPS
So don't worry about it for that purpose
Samuchco
@Samuchco
Oct 20 2017 02:35
192 BG Entry.jpeg
92 Corrected.jpeg
Scott Leibrand
@scottleibrand
Oct 20 2017 02:37
As long as carbs only show up once you're good. (Check again after 5-10m).
Samuchco
@Samuchco
Oct 20 2017 02:37
@danamlewis pill dropped from 192 to 92. No double entry yet
Dana Lewis
@danamlewis
Oct 20 2017 02:37
K. Just keep an eye on it.
Scott Leibrand
@scottleibrand
Oct 20 2017 02:37
Next time you needn't bother editing the BG value. OpenAPS doesn't use that at all.
The 80 is all that matters.
Samuchco
@Samuchco
Oct 20 2017 02:38
@scottleibrand @danamlewis Thanks
@danamlewis will keep an eye on it. He bolused 4 units extra i.e 32 gr carbs. Thing is, he restarted the sensor without telling me. So We are blind for two hours. No sleeping tonight
Scott Leibrand
@scottleibrand
Oct 20 2017 02:40
@cluckj once we get to a roughly accurate DIA, I would expect that it would fail to meet the a<b<c or a>b>c test quite a bit, and it would adjust DIA upward as often as downward, such that it would tend to stay about the same over time.
@Samuchco what kind of receiver? G4? G5?
Samuchco
@Samuchco
Oct 20 2017 02:41
G5
Scott Leibrand
@scottleibrand
Oct 20 2017 02:41
Bummer.
Samuchco
@Samuchco
Oct 20 2017 02:41
iphone
garykidd
@garykidd
Oct 20 2017 02:41
finger stick
Samuchco
@Samuchco
Oct 20 2017 02:41
@garykidd yep
He feels so bad. Necer has he done this in 10 years
Never*
Thanks to the pill. I cought it
garykidd
@garykidd
Oct 20 2017 02:42
My advice is to not make such a big deal out of it.
sounds like he is aware. that's not the worst mistake that could be made.
Samuchco
@Samuchco
Oct 20 2017 02:46
@garykidd Oh not at all. He knows that mistakes can happen and that we are all on top of things. He just doesn't understand how that happened to him
Scott Leibrand
@scottleibrand
Oct 20 2017 02:46
It's easy to fix if caught early, too. Just zero temp and then eat dessert. ;-)
Samuchco
@Samuchco
Oct 20 2017 02:47
Yes!
BTW where do I find the new names for the new curves
garykidd
@garykidd
Oct 20 2017 02:48
I've double bolused quite a few times...sometimes when you think too much ahead....you can forget...
Samuchco
@Samuchco
Oct 20 2017 02:52

@Kdidimone > @Samuchco looks like you may not have needed smbs and therefore did not get them. You were suspended for half the time of the screenshot and the prediction looks like you may be near target in future.

But, wouldn’t hurt to double check if you have your smbs turned on in preferences cat-pref

you were correct smb not enabled after re-install
garykidd
@garykidd
Oct 20 2017 02:54
@scottleibrand which repo has latest offline feature?
Scott Leibrand
@scottleibrand
Oct 20 2017 02:54
oref0 ;-)
offline branch
@Samuchco the dev PR: #707 I think
Samuchco
@Samuchco
Oct 20 2017 02:56
I want to change the curve from bilinear to rapid for Novolog. What is the full name for the entry
Scott Leibrand
@scottleibrand
Oct 20 2017 02:56
rapid-acting
Samuchco
@Samuchco
Oct 20 2017 02:56
@scottleibrand Thanks
garykidd
@garykidd
Oct 20 2017 02:57
so I guess I didnt mean repo?
Scott Leibrand
@scottleibrand
Oct 20 2017 02:58
Or reposotory. :stuck_out_tongue_winking_eye:
oref0 is the repo. offline is the branch.
garykidd
@garykidd
Oct 20 2017 02:58
ok, got it.
Scott Leibrand
@scottleibrand
Oct 20 2017 02:58
Just send me an e-note and I'll get back to you. ;-)
garykidd
@garykidd
Oct 20 2017 03:00
funny...cause I think I understand forked...and I wouldn't have said code editing....I would've said the creation of staring point from which programmers alter/adjust/test certain differences...
did I say reposotory...funny...that just looks worng (intended)
Scott Leibrand
@scottleibrand
Oct 20 2017 03:02
You didn't. But apparently they don't have autocorrect, or spell-check either. ;-)
garykidd
@garykidd
Oct 20 2017 03:03
OH...now I see it...that's really funny.
makes you wonder about that valuation too.
Scott Leibrand
@scottleibrand
Oct 20 2017 03:04
And apparently if I merge your PR that makes you a full collaborator too ;-)
Hopefully they do know how to quote the WSJ at least...
garykidd
@garykidd
Oct 20 2017 03:05
well that's what I've been telling local media here too....so at least it's consistent.... FOX....hmmmm
joking of course
is offline not incorporated into dev though?
Scott Leibrand
@scottleibrand
Oct 20 2017 03:07
Not the local-only hotspot stuff.
PR is openaps/oref0#716
Samuchco
@Samuchco
Oct 20 2017 03:12
Does anyone else have the problem in NS where the bG number does NOT get crossed out when Dexcom is not transmitting?
garykidd
@garykidd
Oct 20 2017 03:13
iWhat happens if rig is able to connect to internet via BT tether...assumes it tears down local hotspot in that case too?
Scott Leibrand
@scottleibrand
Oct 20 2017 03:14
that's the only case where it tears down the local hotspot
if it just has local BT tethering (no Internet) it leaves both up
and it can't connect to other wifi APs until it tears down its own and switches back to being a client
Samuchco
@Samuchco
Oct 20 2017 03:18
@scottleibrand In the case of rig #2 do I have to edit the Admin Tools in NS to include Rig2?
Scott Leibrand
@scottleibrand
Oct 20 2017 03:30
huh? are you talking about token auth?
Samuchco
@Samuchco
Oct 20 2017 03:30
I guess. How is NS going to differentiate from one rig to the other. They are named differently
Scott Leibrand
@scottleibrand
Oct 20 2017 03:37
I think you're making this overly complicated
the rigs tag their devicestatus uploads with the rig name, which populates the OpenAPS pill. but otherwise NS has no need to care which rig is uploading a particular treatment or whatever
garykidd
@garykidd
Oct 20 2017 03:53
how can I confirm that i successfully installed the right oref version (offline)... I know this is simple--but not sure if I did it correctly..thx
Scott Leibrand
@scottleibrand
Oct 20 2017 04:00
less $(which oref0-online) will show you the contents of the currently-installed version of that file, so you can confirm it contains the right code
you can also cat /etc/network/interfaces.ap to see that it actually got installed when you ran oref0-setup
or you can actually test it and shut down your wifi and hotspot and see if it spins up a hotspot
garykidd
@garykidd
Oct 20 2017 04:01
looks right...
#!/bin/bash
echo; echo Starting oref0-online.
# if we are connected to wifi but don't have an IP, try to get one
if iwgetid -r wlan0 | egrep -q "[A-Za-z0-9_]+"; then
    if ! ip route | grep default | grep -q wlan0; then
        echo Attempting to renew wlan0 IP
        sudo dhclient wlan0
    fi
fi
echo -n "At $(date) my local IP is: "
ip -4 -o addr show dev wlan0 | awk '{split($4,a,"/");print a[1]}'
ip -4 -o addr show dev bnep0 | awk '{split($4,a,"/");print a[1]}'
echo
echo -n "At $(date), my wifi network name is "
iwgetid -r wlan0 | tr -d '\n'
echo -n ", and my public IP is: "
if curl --compressed -4 -s -m 15 checkip.amazonaws.com | awk -F , '{print $NF}' | egrep "^[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]$"; then
    # if we are back on wifi (and have connectivity to checkip.amazonaws.com), shut down bluetooth
    if ( ifconfig | grep -A1 wlan0 | grep -q "inet addr" ) && ( ifconfig | grep -A1 bnep0 | grep -q "inet addr" ); then
        echo "Back online via wifi; disconnecting BT $MAC"
        ifdown bnep0
        # loop over as many MACs as are provided as arguments
        for MAC; do
            sudo bt-pan client $MAC -d
        done
        echo "and getting new wlan0 IP"
        ps aux | grep -v grep | grep -q "dhclient wlan0" && sudo killall dhclient
        sudo dhclient wlan0 -r
        sudo dhclient wlan0
    fi
else
    echo
    echo -n "At $(date), my wifi network name is "
    iwgetid -r wlan0 | tr -d '\n'
    echo -n ", and my public IP is: "
    # loop over as many MACs as are provided as arguments
    if ! curl --compressed -4 -s -m 15 checkip.amazonaws.com | awk -F , '{print $NF}' | egrep "^[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]$"; then
        echo
        for MAC; do
            echo -n "At $(date) my public IP is: "
            if ! curl --compressed -4 -s -m 15 checkip.amazonaws.com | awk -F , '{print $NF}' | egrep "^[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]$"; then
                echo; echo -n "Error, connecting BT to $MAC"
                oref0-bluetoothup
                sudo bt-pan client $MAC -d
                sudo bt-pan client $MAC
                echo -n ", getting bnep0 IP"
                sudo dhclient bnep0
                # if we couldn't reach the Internet over wifi, but we have a bnep0 IP, release the wifi IP/route
                if ( ifconfig | grep -A1 wlan0 | grep -q "inet addr" ) && ( ifconfig | grep -A1 bnep0 | grep -q "inet addr" ); then
                    echo -n " and releasing wifi IP"
                    sudo dhclient wlan0 -r
                    echo
                    echo Sleeping for 2 minutes before trying wifi again
                    sleep 120
                fi
                echo
            fi
        done
        echo
    fi
    echo -n "At $(date), my wifi network name is "
:
or maybe not
oot@PINK:~/myopenaps# cat /etc/network/interfaces.ap
cat: /etc/network/interfaces.ap: No such file or directory
garykidd
@garykidd
Oct 20 2017 04:23
this look right now....

root@PINK:~# cat /etc/network/interfaces.ap

Configure network interfaces on the Pi, so that devices (like the Pebble)

can connect to it

#

Released under MIT license. See the accompanying LICENSE.txt file for

full terms and conditions

#

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN

THE SOFTWARE.

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet static
address 10.29.29.1
netmask 255.255.255.0
root@PINK:~#

Samuchco
@Samuchco
Oct 20 2017 04:46
@scottleibrand About an hour ago his bG was 62 and he had a snack of 30gr. I entered the snack manually thru NS. Just started the new sensor and he was 127. However, I now see COB of 100. So 80gr at 9:30pm and 30gr at 11:05pm. The Treatments Report does not show double entry. I'm looking at papertrail

Oct 19 22:06:36 SammysAPS pump-loop.log: {"carbs":80,"mealCOB":68,"currentDeviation":9.88,"maxDeviation":7.66,"minDeviation":-1.4,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":1.31,"allDeviations":[10,4,2,7,8,6,0,-1,-1],"lastCarbTime":1508463160000}
Oct 19 22:06:36 SammysAPS pump-loop.log: minPredBG: -75 minIOBPredBG: 39 minZTGuardBG: -189 minCOBPredBG: 39 avgPredBG: -75 COB: 68 / 80
Oct 19 22:06:37 SammysAPS pump-loop.log: enact/smb-suggested.json: {"insulinReq":0,"bg":94,"reservoir":"195.8","temp":"absolute","predBGs":{"ZT":[94,88,83,76,70,63,56,49,41,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39],"COB":[94,102,109,115,121,126,131,135,138,140,142,143,143,143,142,141,139,136,132,128,124,120,116,112,109,105,102,98,95,91,88,84,80,77,73,69,65,61,58,54,50,46,42,39],"IOB":[94,101,106,110,113,114,114,112,109,104,98,90,81,71,61,51,40,39]},"IOB":13.413,"reason":"COB: 68, Dev: 81, BGI: -5.52, ISF: 26, Target: 130, minPredBG -75, minGuardBG 26, IOBpredBG 39, COBpredBG 39; minGuardBG 26<80 25m left and 0 ~ req 0U/hr: no temp required","COB":68,"eventualBG":39,"tick":"+11","deliverAt":"2017-10-20T02:06:36.621Z"}

Oct 19 22:25:13 SammysAPS pump-loop.log: {"carbs":160,"mealCOB":120,"currentDeviation":13.84,"maxDeviation":9.88,"minDeviation":1.93,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":1.883,"allDeviations":[14,10,4,2,7,8],"lastCarbTime":1508463160000}

Samuchco
@Samuchco
Oct 20 2017 04:52
I think @danamlewis was correct. Papertrail shows at 10:06 COB 80, but then at 10:25 "carbs" : 160
then Oct 19 23:49:22 SammysAPS pump-loop.log: {"carbs":190,"mealCOB":0,"currentDeviation":null,"maxDeviation":0,"minDeviation":999,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":999,"allDeviations":[],"lastCarbTime":1508468700000}
I raised the target to 140/120
Samuchco
@Samuchco
Oct 20 2017 04:59

This is the current reading

Oct 20 00:55:16 SammysAPS pump-loop.log: enact/smb-suggested.json: {"insulinReq":1.39,"bg":104,"reservoir":"191.8","temp":"absolute","predBGs":{"ZT":[104,95,87,80,73,67,61,57,53,49,47,45,43,42,42,42,43,44,46,48,50,53,56,59,63,66,69,73,76,80,84,87,91,95,99,103,107,112,116,120,125,129],"COB":[104,106,109,112,116,120,125,130,136,143,150,157,165,173,181,190,199,209,218,228,239,249,259,269,279,289,299,309,319,328,338,347,357,366,375,384,393,401],"IOB":[104,105,106,107,107,107,107,107,106,105,103,101,98,96,95,94,93,92,92,92,93,93,94,94,95,95,96,96,97,97,97,98,98,98,98,99,99,99,99,99,100]},"rate":3.7,"IOB":0.925,"reason":"COB: 95, Dev: 65, BGI: -8.88, ISF: 63, Target: 130, minPredBG 218, minGuardBG 106, IOBpredBG 100, COBpredBG 401; temp 0<3.7U/hr. ","COB":95,"eventualBG":401,"duration":30,"tick":"+7","deliverAt":"2017-10-20T04:55:16.233Z"}

I think that if I keep the targets higher, then the smb will not kick in and it will go by the real COB which by now should be closer to 40gr
Samuchco
@Samuchco
Oct 20 2017 05:05
ISF: 63 is pretty high. Usually 30-36, 43 highest
Dana Lewis
@danamlewis
Oct 20 2017 05:14
Do you have exercise mode turned on? During a high target, isf will be a lot higher to reflect the changes if so.
Scott Leibrand
@scottleibrand
Oct 20 2017 05:17
you should also delete the duplicate carb entry in NS
garykidd
@garykidd
Oct 20 2017 05:21
reflashing
Samuchco
@Samuchco
Oct 20 2017 05:25
@danamlewis @scottleibrand Exercise mode is on. There is no duplicate entry in NS.
Screenshot (3).png
Even though OpenAPS shows "enacted", I'm not sure it's looping. Basal is "Default": 1.70
Samuchco
@Samuchco
Oct 20 2017 05:37
Screenshot (4).png
Shows temp basal started (14 min ago) to zero, but the basal pill and the basal chart shows 1.70 (Default) same with targets
Samuchco
@Samuchco
Oct 20 2017 05:46
Screenshot (5).png
Rebooted the rig and its temping again
Samuchco
@Samuchco
Oct 20 2017 06:07
According to the pill on the 1:35am chart it says that temp basal to zero was enacted 14 min ago
Screenshot (6).png
Samuchco
@Samuchco
Oct 20 2017 06:14
according to the Treatments Report, nothing was enacted 14 minutes before 1:35 am.
Also based on the pill, the chart at 1:27 am should show temp basal of zero. But basal shows default of 1.70.
Am I miss-reading this?
Scott Leibrand
@scottleibrand
Oct 20 2017 06:16
check all your timezones
Samuchco
@Samuchco
Oct 20 2017 06:23
Pump time is ok. How do I check time on rig
Scott Leibrand
@scottleibrand
Oct 20 2017 06:24
date
Samuchco
@Samuchco
Oct 20 2017 06:26
rig date: Fri Oct 20 02:25:15 EDT 2017
Samuchco
@Samuchco
Oct 20 2017 06:45
@scottleibrand Thank you for EVERYTHING!!!!!
he is 107 with horizontal arrow. I'm going to sleep and set the alarm to test him in an hour. Thanks again. Dana too.
Velibor Maric
@vebaba
Oct 20 2017 11:23
SMBstart_Low.gif
I was wondering if everything here was OK. I decided to test SMB. I was going low there (~4mmol) in moment I entered carbs. OAPS decided to go with 0.5IU immediately and with 0.4IU 11min later. Now, what I want to discuss/ask: Was it normal for OAPS to bolus me although BG was trending down and I was low in the moment?
Matthias
@ceben80
Oct 20 2017 12:39
@scottleibrand please piont me to the rtd or wherever exercise_mode parameter is explained - thanks!
garykidd
@garykidd
Oct 20 2017 12:45
@scottleibrand how much must BG rise for UAM to be triggered?
James
@in-10-city
Oct 20 2017 13:49
@ceben80 I do not believe that has made it into openaps.readthedocs.io yet but someone will correct me if I am wrong.
what was your specific question I can "try" to help
philipgo
@philipgo
Oct 20 2017 13:55
@ceben80 openaps/oref0#684 and openaps/oref0#707
James
@in-10-city
Oct 20 2017 13:59
@ceben80 how did you find that so fast on github ?
James
@in-10-city
Oct 20 2017 14:10
oops @drnoname82 how did you find that so fast in github? I see you actively were working on the code is that why? just asking because I would like to start helping on the readthedocs page taking info from github and placing it where it needs to go
on the readthedocs pages
Matthias
@ceben80
Oct 20 2017 14:45
thx @drnoname82
Scott Leibrand
@scottleibrand
Oct 20 2017 15:16
@garykidd UAM is just another purple line prediction. It's always active any time BG is rising more than predicted by low temps, or falling slower than predicted. For it to trigger any dosing more aggressive than what you'd get otherwise, you need a sustained rise (of any size) that lasts more than about 20m.
@vebaba looks like you're still on 0.5.x master? 0.6.0-dev has minGuardBG protection against SMBs when low or trending low, and other new safety checks. At this point I would recommend upgrading to dev if you want to start testing SMB.
@in-10-city dunno what @drnoname82 does, but you can watch the repo to get notified about PRs
Velibor Maric
@vebaba
Oct 20 2017 15:24
Yes, I'm on 0.5.5-master how to to switch to get dev? I must admit that SMB worked wonderfully afterwards @scottleibrand
Also, I would be grateful if someone points me to discussion how to find out ISF... Right now, I have multiples but non is quite good.
Dana Lewis
@danamlewis
Oct 20 2017 15:25
@vebaba are you running Autotune yet?
Velibor Maric
@vebaba
Oct 20 2017 15:26
from day one but turned off adv_target_adjustment as it overshoot big time (as I said, bcs mine ISFs aren't good)
Dana Lewis
@danamlewis
Oct 20 2017 15:27
@in-10-city that 707 is the Pr from dev. If you're interested, you can go ahead and start preparing PRs to the docs. Aside from dev code content, I also have a short list of pages of the docs that need updating if you're looking for ideas.
Craig Brenner
@cbrenner
Oct 20 2017 15:33
If there anyway to rectify putting in erroneous carbs via the bolus wizard. My son does like to use the bolus wizard but today he put in 75g carbs and modified the insulin delivery to subtract out a pre-bolus. He realized he made a math error and went to put in some extra insulin but, for whatever reason, he used the bolus wizard to do this to add the extra insulin but also used the 75g of carbs again. So, now OpenAPS thinks he has 150g carbs on board. Pretty sure you can't add a negative (-75g) carbs in NS and subtracting the 75g from the treatment on NS is only temporary as OpenAPS will update this again when it scans the pump history. Any suggestions when this happens?
Dana Lewis
@danamlewis
Oct 20 2017 15:33
High temp target
Correct you can't edit pump history.
James
@in-10-city
Oct 20 2017 15:34
@danamlewis would love to see the short list FYI I am also @diabetic_dude_twitter but have recently found out how beneficial using my github account for gitter can be :smile:
Velibor Maric
@vebaba
Oct 20 2017 15:34
@danamlewis I see now why you have asked... I didn't even notice that header info. I'll switch to single ISF. Also, Autotune has some interesting findings regard my basals...
Dana Lewis
@danamlewis
Oct 20 2017 15:34
I had a hunch that was you ;)
@vebaba if you have it enabled on your rig it has been using it; but obviously if you haven't for manual things, that may be making quite a difference
Velibor Maric
@vebaba
Oct 20 2017 15:38
"but obviously if you haven't for manual things, that may be making quite a difference " - rephrase it, please
garykidd
@garykidd
Oct 20 2017 15:41
@scottleibrand so an sustained positive variance to BG vs what was expected....that's sustained over about 20 mins (4 BG updates?) ...no threshold...just meaning like a 1 point deviation BG (vs. expected) for 20 mins is enough to trigger. Thanks, Scott.
Dana Lewis
@danamlewis
Oct 20 2017 15:43
@vebaba if Autotune says your carb ratio should be 10 and you are manually bolusing for meals at 20 - you may be getting less optimal outcomes. Because it will be trying to make up the difference for you.
Velibor Maric
@vebaba
Oct 20 2017 15:48
@danamlewis Thanks for clarifying. No, I keep synchronized Pump and Rig (via NS profile). Autotune recomends me 3.4mmol/U (61.3ml/dl) and I will try it. The worst that can happen is to have snack or to bolus small number :)
Velibor Maric
@vebaba
Oct 20 2017 15:54
@scottleibrand I tried to switch to dev. Followed these instructions http://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/update-your-rig.html. ``cd ~/src/oref0 && git checkout dev && git pull'' went fine and then I got
npm run global-install
npm ERR! Error: ENOENT, open '/root/myopenaps/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.10.98-poky-edison
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /root/myopenaps
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /root/myopenaps/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/myopenaps/npm-debug.log
npm ERR! not ok code 0
hm, there is no package.json in indicated folder...
Velibor Maric
@vebaba
Oct 20 2017 15:59
wait... it seems that it now works... oh well, code scared once again...
Scott Leibrand
@scottleibrand
Oct 20 2017 16:09
@vebaba the first time you didn't do the cd ~/src/oref0 part
so you were trying to "install" your myopenaps folder rather than oref0 itself
Jon Cluck
@cluckj
Oct 20 2017 16:11
Anyone know of a workaround for: colinlennon/xDripAPS#2
Velibor Maric
@vebaba
Oct 20 2017 16:14
@scottleibrand True!
Jon Cluck
@cluckj
Oct 20 2017 16:15
(aside from reverting to API_SECRET for everything)
Velibor Maric
@vebaba
Oct 20 2017 17:12
@scottleibrand Is minGuardBG constant or variable? Can I alter it if constant?
Scott Leibrand
@scottleibrand
Oct 20 2017 17:14
minGuardBG itself is the current predicted value. You're asking about the threshold, which is 70 when target is 100. You can raise or lower that with temp targets.
Velibor Maric
@vebaba
Oct 20 2017 17:19
OK. I was 3.8 and SMB kicked in with one 0.7IU. It drove me to 3.3. Was entering carbs in time recovered solution here?
Scott Leibrand
@scottleibrand
Oct 20 2017 17:36
Unless the 3.3 was an hour or more after the SMBs started, they likely didn't contribute much: you were likely already headed that low for some other reason. If you upgrade to dev, it won't SMB when current or predicted BG is below threshold (3.9 for a target of 5.5)
Velibor Maric
@vebaba
Oct 20 2017 17:44
I was pretty stable
SMBstart_Low2.gif
But OK. I test. To me, it looked like a glitch until more data flows in. If you say it was OK, then it was OK :)
Scott Leibrand
@scottleibrand
Oct 20 2017 18:23
I would really suggest upgrading to dev, though
Velibor Maric
@vebaba
Oct 20 2017 18:27
I'm on dev :)
Scott Leibrand
@scottleibrand
Oct 20 2017 18:29
Hmm. And you were then? What was your target?
Velibor Maric
@vebaba
Oct 20 2017 18:30
5.4 to 6 (97-108)
Scott Leibrand
@scottleibrand
Oct 20 2017 18:31
ok. might be worth pulling the pump-loop.log from one of those first couple SMBs. looks like you might've been just above the minGuardBG threshold at first, and then dropped below it, so it stopped SMBing until you came up a bit.
you could also try narrowing your target range to a single value: maybe to 5.8-5.8 or 6.0-6.0
Velibor Maric
@vebaba
Oct 20 2017 18:34
You're right. I believe that I was 3.9 in time I entered carbs
But 3.9 is extremely low for me as I came from nonCGM world. My body still is getting used to normal BGs
Scott Leibrand
@scottleibrand
Oct 20 2017 18:37
ok, then you definitely want a higher target
Samuchco
@Samuchco
Oct 20 2017 18:39
what setting needs to be enabled to always see the Basal pill as temping?
Velibor Maric
@vebaba
Oct 20 2017 18:40
For now, yes :) Thanks for support! @scottleibrand
Samuchco
@Samuchco
Oct 20 2017 18:41
Even when it is the default value
Brian Rabinovitz
@bdr1177
Oct 20 2017 18:48
@Samuchco The NS basal pill lags behind the OpenAPS pill, so often doesn't show current info.
I think the general recommendation is to look in the OpenAPS pill to see the last basal that was set.
Samuchco
@Samuchco
Oct 20 2017 18:50
@bdr1177 thanks. Iremeberd ther was a setting to enable if you want to show the basal with a "T" which allows you to know that the rig is working. I don't remember if it's on thr pref or in the initial setting
Brian Rabinovitz
@bdr1177
Oct 20 2017 18:53
@Samuchco You mean an OpenAPS setting? I don't recall anything in OpenAPS that affects the NS basal pill. I do have the NS basal pill enabled, as variable in my heroku settings and my NS always shows the "T". But I'm mindful that it is not always up to date with the latest OpenAPS temp setting.
Samuchco
@Samuchco
Oct 20 2017 18:54
@bdr1177 I think its opeonAPS. Maybe Heroku
Brian Rabinovitz
@bdr1177
Oct 20 2017 18:55
In Heroku, you add "basal" to the ENABLE string and then check the box in the settings on your personal NS page.
Craig Brenner
@cbrenner
Oct 20 2017 19:08
Interesting. 3 hours ago, NS stopped displaying (and recording in the treatments record) any temp basals or bolus entries from the pump or for that matter any changes initiated on the pump (battery change, reservoir, etc.) Temp targets, carb corrections and other entries initiated from NS or IFTTT still get displayed but nothing initiated from the pump. Tried repairing the MongdDB and looked for any future entries in NS. Thoughts?
Dana Lewis
@danamlewis
Oct 20 2017 19:17
What version of NS are you on? What size is mlab?
Craig Brenner
@cbrenner
Oct 20 2017 19:29
@danamlewis NS version 0.10.1 mlab is 396mb .... things were working with no problems until 3 hours ago
Martin Haeberli
@mhaeberli
Oct 20 2017 20:00
anyone have recommendations for special openaps cases that integrate Edison, Explorer, and Dexcom receiver (to be ready for offline use?) or just a spibelt?
live4sw
@live4sw
Oct 20 2017 20:24
A warning to anyone considering the Pixel 2 - I just got one today and had significant trouble getting BT tethering working. Although I was able to connect it following the instructions in the docs, and I could pair and confirm the connection on the phone, sharing the internet connection was extremely spotty. After a few hours of trying a number of things, I went back to my Pixel and will probably stay with that for the foreseeable future.
The phone just came out yesterday, so I'm curious if anyone else has similar issues, but I'd be happy to update the docs if that makes sense, or maybe it should wait until others have tried.
James
@in-10-city
Oct 20 2017 20:33
@live4sw are you paying for your tethering or did you modify the phone to make it work on your own?
James
@in-10-city
Oct 20 2017 20:39
I was able to get mine working using a rom from XDA Developers (but again mine was a 6P and this was years ago) I was using xdrip and a g4 and a Pi3 my have things changed but it may sever you well to tinker here
(at the time I was not paying for tethering)
Martin Haeberli
@mhaeberli
Oct 20 2017 20:39
mystified by:
Oct 20 13:38:20 etghopenaps0 pump-loop.log:  Checking deliverAt: 2017-10-20T20:38:18.776Z is within 1m of current time: Fri Oct 20 13:38:20 PDT 2017
Oct 20 13:38:20 etghopenaps0 pump-loop.log:  and that smb-suggested.json is less than 1m old
Oct 20 13:38:20 etghopenaps0 pump-loop.log:  enact/smb-suggested.json: {"insulinReq":0,"bg":82,"reservoir":"34.125","temp":"absolute","snoozeBG":31,"predBGs":{"COB":[82,79,74,67,59,48,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,44,53,61,70,78,87,95,103,111,119],"aCOB":[82,77,69,60,48,39,39,39,39,39,39,39,39],"IOB":[82,75,66,54,39,39,39,39,39,39,39,39,39]},"minPredBG":999,"IOB":9.453,"reason":"COB: 59, Dev: 56, BGI: -15.3, ISF: 39, Target: 115, minPredBG -60, IOBpredBG 39, COBpredBG 119; Eventual BG 119 > 104 but Min. Delta -6.00 < Exp. Delta 3.6, temp 1.75 ~ req 1.75U/hr. ","COB":59,"eventualBG":119,"tick":-6,"deliverAt":"2017-10-20T20:38:18.776Z"}
Oct 20 13:38:24 etghopenaps0 pump-loop.log:  No smb_enact needed. Temp refreshed: monitor/temp_basal.json: {"duration":26,"rate":1.75,"temp":"absolute"}
Oct 20 13:38:24 etghopenaps0 pump-loop.log:  No bolus needed (yet). Settings less than 10m old
Oct 20 13:38:24 etghopenaps0 pump-loop.log:  Edison on battery: 78%. Pumphistory-24 < 90m old
Oct 20 13:38:24 etghopenaps0 pump-loop.log:  Completed supermicrobolus pump-loop at Fri Oct 20 13:38:24 PDT 2017:
not understanding why it isn’t low-temping or zero-temping
Scott Leibrand
@scottleibrand
Oct 20 2017 20:48
@mhaeberli looks like you're on an old oref0 without minGuardBG
Martin Haeberli
@mhaeberli
Oct 20 2017 20:49
thx - thought I was running 0.5.5 but maybe I didn’t set prefs afterwards?
Scott Leibrand
@scottleibrand
Oct 20 2017 20:49
it's setting a neutral temp based on your COB being sufficient to bring you back up. we changed that behavior in 0.6.0-dev with the introduction of minGuardBG, which zero-temps if you're projected to go too low before all carbs kick in
0.5.5 is old on this front
Martin Haeberli
@mhaeberli
Oct 20 2017 20:49
ok thx
ok it just now zero temp ed
nicked22
@nicked22
Oct 20 2017 21:00
Why do we need rigs exactly? If a rig is just a separate computer, then can't an iPhone just be used as the rig with an app that uses the openAPS code?
Dana Lewis
@danamlewis
Oct 20 2017 21:00
@nicked22 couple things: you need a radio bridge at least for Medtronic pumps, because phones don't talk 900 mhz.
AndroidAPS on Android phones does run the OpenAPS code; talks to the DANA*R pumps if you can get your hands on them.
oref0 is currently javascript; so someone would have to do a good bit of work to get it into an app to then use iPhone + radio bridge. (that's essentially what Loop is, iOS app with different algorithm + radio bridge - but is a different algorithm and set of features than OpenAPS is).
http://www.diabettech.com/looping-a-guide/ Tim has a good overview of the various options here if you haven't seen it. So depending on your preference for algorithm, hardware, pump, etc, that may drive what type of DIY system you may want to use.
Craig Brenner
@cbrenner
Oct 20 2017 21:04
Scott Leibrand
@scottleibrand
Oct 20 2017 21:04
"follow the troubleshooting docs"?
Craig Brenner
@cbrenner
Oct 20 2017 21:05
@scottleibrand was that directed to me? Already did all what was suggested...no changes
Scott Leibrand
@scottleibrand
Oct 20 2017 21:05
did you go so far as to donate / back up your data and clear out the problematic collection?
(I think that's in the same section of the docs, but maybe not)
be sure to donate your data to the OpenAPS Data Commons first before deleting anything
Craig Brenner
@cbrenner
Oct 20 2017 21:07
@scottleibrand Really wanted to avoid deleting out all the data and starting from nothing
Dana Lewis
@danamlewis
Oct 20 2017 21:07
@cbrenner did you try compressing mlab?
Scott Leibrand
@scottleibrand
Oct 20 2017 21:07
which collection is busted?
Dana Lewis
@danamlewis
Oct 20 2017 21:07
i know it's 396, but try it anyway if you haven't
Scott Leibrand
@scottleibrand
Oct 20 2017 21:08
you don't have a full DB, you have something that it acting more like a future treatment
Dana Lewis
@danamlewis
Oct 20 2017 21:09
@cbrenner also, you're on dev? or if not, what version of oref0 master?
Scott Leibrand
@scottleibrand
Oct 20 2017 21:09
(since you can add things via NS fine, but pump doesn't upload)
Craig Brenner
@cbrenner
Oct 20 2017 21:10
@danamlewis I did try to compress...the response is " "message": [ "The repairDatabase command was issued, but the request timed out.",
"Usually this means the command was successfully started in the database,", "but it will take a while to complete." ]
tried this 3 times
Dana Lewis
@danamlewis
Oct 20 2017 21:10
yea, keep going until it succeeds. sometimes it's finicky.
sometimes 5th time or random number is the lucky number.
Scott Leibrand
@scottleibrand
Oct 20 2017 21:10
I would re-focus your efforts on future treatments, not compacting
if your DB were full, you wouldn't see anything new getting inserted into that collection
Craig Brenner
@cbrenner
Oct 20 2017 21:12
@scottleibrand not sure what you mean to refocus on future treatments. I went to the NS admin and didn't see any future treatments and also cleared both future treatments sections just in case
Scott Leibrand
@scottleibrand
Oct 20 2017 21:13
ok, then probably time to drill down on what ns-upload is up to. that's easiest with oref0-ns-upload in 0.6.0-dev2
it writes lots more details to /var/log/openaps/ns-loop.log than the old ns-loop did
Craig Brenner
@cbrenner
Oct 20 2017 21:15
i'm on 0.5.5 (with the new NS timeout code - openaps/oref0#728 )
Scott Leibrand
@scottleibrand
Oct 20 2017 21:15
ok, that will make things harder, and you'll have to do more drilling down, starting with the ns-loop alias
Craig Brenner
@cbrenner
Oct 20 2017 21:17
@scottleibrand I did look at the ns-loop log when things stopped uploading from pump and the logs didn't appear to change.
Scott Leibrand
@scottleibrand
Oct 20 2017 21:17
yeah, that's what I fixed in 0.6.0-dev with oref0-ns-loop
the ns-loop log is nearly useless in 0.5.x and earlier
do you have a second rig you could run 0.6.0-dev on?
Craig Brenner
@cbrenner
Oct 20 2017 21:20
@scottleibrand I do but probably won't be able to do this for a few days. My son (who has T1D) has his homecoming this weekend and I need to have things pretty solid
and having a backup is one of the things I want to keep working
Scott Leibrand
@scottleibrand
Oct 20 2017 21:21
might be easiest to spin up a backup NS instance then
(and more importantly, a second mLab DB)
or you could go spelunking through your mLab looking for the problem, or you could start drilling down into ns-loop
Craig Brenner
@cbrenner
Oct 20 2017 21:23
Meaning a clone of the Heroku app currently running but with a different app name and change the mLab db pointer as well?
Scott Leibrand
@scottleibrand
Oct 20 2017 21:23
something like that, ya. I don't use Heroku or mLab
Craig Brenner
@cbrenner
Oct 20 2017 21:27
Well, I am using my original mLab dB from Azure so perhaps create a new Heroku app and use the free mLab Mongo dB that comes with it
Scott Leibrand
@scottleibrand
Oct 20 2017 21:27
:+1:
Craig Brenner
@cbrenner
Oct 20 2017 21:33
@scottleibrand @danamlewis Ok, so that's odd...as we were chatting, NS site now started displaying temp basals again. No previous treatments displaying from 8:30a PT until now but with the temp basals just starting to display again, it seems to have fixed itself.
Dana Lewis
@danamlewis
Oct 20 2017 21:33
hah. sometimes just needs a good glare.
Martin Haeberli
@mhaeberli
Oct 20 2017 21:34
:+1:
Craig Brenner
@cbrenner
Oct 20 2017 21:34
I assume other pump initiated entries will begin to appear again (need to wait until my son is home from school to verify)
Scott Leibrand
@scottleibrand
Oct 20 2017 21:35
they both upload via the same code path (from the pumphistory), so ya
Craig Brenner
@cbrenner
Oct 20 2017 21:44
@scottleibrand ok, the engineer in me wants to figure out why it stopped working and has begun working again. The parent in me says 'screw it' and move on, its working :smile:
Scott Leibrand
@scottleibrand
Oct 20 2017 21:46
the pragmatic engineer in me says: upgrade a rig to 0.6.0-dev when you have time, and see if it recurs there. if so, you'll have better logging to troubleshoot. if not, it might've been something we fixed, but otherwise doesn't matter. :-)
Craig Brenner
@cbrenner
Oct 20 2017 21:48
yes, that will be the plan....the dialogue in my brain can be exhausting :smile:
nicked22
@nicked22
Oct 20 2017 22:11
Does anyone have a recommendation for a rig? Should I use a raspberry pi or an Intel Edison with the Explorer board or any other kind of specific rig?
Dana Lewis
@danamlewis
Oct 20 2017 22:12
@nicked22 we still recommend edison+explorer board as a great first rig. http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html
nicked22
@nicked22
Oct 20 2017 22:15
@danamlewis why is the edison+explorer board the recommended rig?
Dana Lewis
@danamlewis
Oct 20 2017 22:16
because it's the best in terms of size and power consumption. and get it while it exists, because Intel has discontinued the Edison, so the recommendation will change soon based purely on availability of hardware. Edison/Explorer Board will still be broadly used and supported, just not available anymore in the future.
nicked22
@nicked22
Oct 20 2017 22:29
Is it the edison board or the edison compute module?
Dana Lewis
@danamlewis
Oct 20 2017 22:33
edison is the computer. Any edison will do. Explorer Board is the breakout board that has the radio stick built in.
live4sw
@live4sw
Oct 20 2017 22:43
@in-10-city Tethering works natively/free on the Pixel