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

24th
Jan 2018
Scott Leibrand
@scottleibrand
Jan 24 2018 00:40
10:55 is how my NS renders it (in PST)
you might want to reduce your max bolus size (by reducing maxSMBBasalMinutes) for now, or disable SMB entirely
I'm not sure why, but it sounds like decocare might be misreading things
Scott Leibrand
@scottleibrand
Jan 24 2018 00:48
I believe the logs you provided above were from the wrong date/time. the 2U bolus was given at a reservoir level of 143.2U, and a BG of 121 mg/dL, at 10:55 PDT. your logs show a reservoir level of 151.7, which was 24h earlier. can you check that the date on your pump and CGM are correct?
Samuchco
@Samuchco
Jan 24 2018 01:23
@scottleibrand You are correct. I searched based on "time" and I posted a 1:55 am rather than 1:55 PM (13:55)
Samuchco
@Samuchco
Jan 24 2018 01:31
Jan 23 13:54:55 loop2 pump-loop.log: Checking pump clock: "2018-01-23T13:54:52-05:00" is within 1m of current time: Tue Jan 23 13:54:55 EST 2018
Jan 23 13:55:06 loop2 pump-loop.log: Temp refreshed
Jan 23 13:55:09 loop2 pump-loop.log: Autotune exists! Hoorah! You can use microbolus-related features.
Jan 23 13:55:09 loop2 pump-loop.log: {"carbs":22,"nsCarbs":22,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":9.73,"maxDeviation":8.32,"minDeviation":-2.46,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":2.231,"allDeviations":[10,8,4,-1,-2,-2],"lastCarbTime":1516731416000,"bwFound":false}
Jan 23 13:55:09 loop2 pump-loop.log: {"iob":-0.575,"activity":-0.0092,"basaliob":-2.479,"bolusiob":1.904,"netbasalinsulin":-6.9,"bolusinsulin":2.8,"time":"2018-01-23T18:54:57.000Z","iobWithZeroTemp":{"iob":-0.575,"activity":-0.0092,"basaliob":-2.479,"bolusiob":1.904,"netbasalinsulin":-6.9,"bolusinsulin":2.8,"time":"2018-01-23T18:54:57.000Z"},"lastBolusTime":1516733403000,"lastTemp":{"rate":0,"timestamp":"2018-01-23T13:45:29-05:00","started_at":"2018-01-23T18:45:29.000Z","date":1516733129000,"duration":10.55}}
Jan 23 13:55:09 loop2 pump-loop.log: {"delta":9,"glucose":121,"noise":null,"short_avgdelta":10.28,"long_avgdelta":6.68,"date":1516733531000}
Jan 23 13:55:09 loop2 pump-loop.log: Sensitivity ratio set to 1.2 based on temp target of 80; Adjusting basal from 1.6 to 1.9; ISF from 25 to 20.8; CR: 14
Jan 23 13:55:09 loop2 pump-loop.log: currenttemp: { duration: 52, rate: 0, temp: 'absolute' } lastTempAge: 10 m tempModulus: 2 m
Jan 23 13:55:09 loop2 pump-loop.log: SMB enabled for 6h after carb entry
Jan 23 13:55:09 loop2 pump-loop.log: Limiting carb impact from 8 to 4.5 mg/dL/5m ( 30 g/h )
Jan 23 13:55:09 loop2 pump-loop.log: Last carbs 38 minutes ago; remainingCATime: 3.5 hours; 100% carbs absorbed
Jan 23 13:55:09 loop2 pump-loop.log: Carb Impact: 4.5 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 0 mg/dL per 5m
Jan 23 13:55:09 loop2 pump-loop.log: UAM Impact: 8 mg/dL per 5m; UAM Duration: 0.9 hours
Jan 23 13:55:09 loop2 pump-loop.log: minPredBG: 165 minIOBPredBG: 156 minZTGuardBG: 122 minUAMPredBG: 168 avgPredBG: 165 COB: 0 / 22
Jan 23 13:55:09 loop2 pump-loop.log: BG projected to remain above 80 for 240 minutes
Jan 23 13:55:09 loop2 pump-loop.log: naive_eventualBG: 133 bgUndershoot: -73 zeroTempDuration: 240 zeroTempEffect: 133 carbsReq: -115
Jan 23 13:55:09 loop2 pump-loop.log: undefined 55
Jan 23 13:55:09 loop2 pump-loop.log: profile.maxSMBBasalMinutes: 90 profile.current_basal: 1.598
Jan 23 13:55:09 loop2 pump-loop.log: naive_eventualBG 133, 0m 0U/h temp needed; last bolus 5.1m ago; maxBolus: 2.4
Jan 23 13:55:09 loop2 pump-loop.log: Checking deliverAt: 2018-01-23T18:55:08.937Z is within 1m of current time: Tue Jan 23 13:55:09 EST 2018
Jan 23 13:55:09 loop2 pump-loop.log: and that smb-suggested.json is less than 1m old
Jan 23 13:55:09 loop2 pump-loop.log: enact/smb-suggested.json: {"temp":"absolute","bg":121,"tick":"+9","eventualBG":181,"insulinReq":4.09,"reservoir":"143.2","deliverAt":"2018-01-23T18:55:08.937Z","sensitivityRatio":1.2,"predBGs":{"IOB":[121,126,131,135,139,142,145,148,150,151,153,154,154,155,155,155,156,156,156,156,157,157,157,157,157,158],"ZT":[121,122,123,124,125,125,126,127,128,129,130,131,132,132],"UAM":[121,129,137,143,149,154,158,162,165,166,167,168,168,169,169,170,170,170,171,171,171,171,171,172,172,172,172,172,172,172,172,172,173]},"COB":0,"IOB":-0.575,"reason":"COB: 0, Dev: 48, BGI: 1, ISF: 21, CR: 14, Target: 80, minPredBG 165, minGuardBG 129, IOBpredBG 158, UAMpredBG 173; Eventual BG 181 >= 80, insulinReq 4.09. Microbolusing 2U. adj. req. rate: 10.1 to maxSafeBasal: 2, temp 0<2U/hr. ","units":2,"duration":30,"rate":2}
Jan 23 13:55:14 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":51,"rate":0,"temp":"absolute"}
Jan 23 13:55:19 loop2 pump-loop.log: enact/smb-enacted.json: "Rate: 2 Duration: 30"
Jan 23 13:55:24 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":30,"rate":2,"temp":"absolute"}
tepidjuice
@tepidjuice
Jan 24 2018 01:35
Hi I'm recieving the following trying to update my rig (on dev): gzip: stdin: unexpected end of file bluez-5.48/aclocal.m4 tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Couldn't download bluez
Samuchco
@Samuchco
Jan 24 2018 01:52
Here is another "big" bolus (1.4) and it shows an ISF of 28
Screen Shot 2018-01-23 at 8.42.38 PM.png
Samuchco
@Samuchco
Jan 24 2018 02:02
@scottleibrand The ISF in the pump is 100 and 110. The max_daily_safety_multiplier :3 , current_basal_safety_multiplier: 4, autosens_max: 1.2, autosens_min: 0.7, maxSMBBasalMinutes: 90. The highest basal rate in the pump is 0.5/hr
How can the ISF be so far from the autosens_min : 0.70
What is creating the ISF of 28 or 21?
tepidjuice
@tepidjuice
Jan 24 2018 02:22
solved the wget command in oref0-setup.sh was writing each bluez.tar.gz to .1, .2, etc.. and so the tar command was trying to unpack an incomplete download.
Scott Leibrand
@scottleibrand
Jan 24 2018 02:28
@Samuchco looks like it read the pump ISF as 25, and adjusted from there
probably want to take a look at your profile.json, autotune.json, and other similar files to see what kind of ISF schedule they have
Samuchco
@Samuchco
Jan 24 2018 02:51
@scottleibrand remind me how to get to the profile.json
Scott Leibrand
@scottleibrand
Jan 24 2018 02:52
cat ~/myopenaps/settings/profile.json
philipgo
@philipgo
Jan 24 2018 02:54
But how could an SMB be 2U when maxSMBbasalminutes is 90 and max basal is 0.5? Sounds like there are different profiles? Two installations on one rig running at the same time?
Samuchco
@Samuchco
Jan 24 2018 02:54
@scottleibrand Thanks. how do I see it as a table
Scott Leibrand
@scottleibrand
Jan 24 2018 02:56
@drnoname82 ah, yeah, I hadn't thought of the two oref0 installs possibility. that would explain a lot
Samuchco
@Samuchco
Jan 24 2018 02:56
@drnoname82 How can I check that?
Scott Leibrand
@scottleibrand
Jan 24 2018 02:56
try locate profile.json
or find / | grep profile.json
Samuchco
@Samuchco
Jan 24 2018 03:00
@drnoname82 Max basal is not 0.5 max basal is 4. Highest basal on pump settings is 0.5
Scott Leibrand
@scottleibrand
Jan 24 2018 03:01
0.5 U/hr * 90m = 0.75 U, so if you were looping with those settings a 2 U bolus wouldn't be allowed.
Samuchco
@Samuchco
Jan 24 2018 03:02
@scottleibrand The rig is not here now. So I can't do the profile.
Scott Leibrand
@scottleibrand
Jan 24 2018 03:03
what SMB settings does it have? If it's allowed to SMB and isn't in your control, you might want to have whomever is with it shut it off and go manual mode
Samuchco
@Samuchco
Jan 24 2018 03:04
@scottleibrand I agree. something is wrong. I recently upgraded the rig and added the new SMB features. Until now it worked fine
after going manual, how do we fix it?
Scott Leibrand
@scottleibrand
Jan 24 2018 03:07
Depends on whether you also want to figure out what you did wrong.
If not, reflashing jubilinux and setting it up from scratch might be easiest and safest.
If you do want to investigate, it still might be safest.
Samuchco
@Samuchco
Jan 24 2018 03:09
Well, can we all benefit from finding out what is going wrong?
I'm going to lower the Max_iob to 1.5
Scott Leibrand
@scottleibrand
Jan 24 2018 03:10
how do you do that without access to the rig?
Samuchco
@Samuchco
Jan 24 2018 03:10
I'll text him
Scott Leibrand
@scottleibrand
Jan 24 2018 03:11
and have him ssh into the rig? or are you talking about a pump setting?
and yes, it'd probably be useful to know how it managed to get this way: we might be able to put in place a safety check to prevent that mistake in the future.
Samuchco
@Samuchco
Jan 24 2018 03:12
no. the edit-pref and change the max_iob from 4 to 1.5
ssh into rig
Scott Leibrand
@scottleibrand
Jan 24 2018 03:13
ok good
Samuchco
@Samuchco
Jan 24 2018 03:13
we would have to troubleshoot tomorrow. When I will have the rig.
Scott Leibrand
@scottleibrand
Jan 24 2018 03:13
my only concern would be if you have two instances of oref0 running and you're only changing the one that's not a problem
Samuchco
@Samuchco
Jan 24 2018 03:14
hmm how can I check if two oref0 are running
Scott Leibrand
@scottleibrand
Jan 24 2018 03:15
you could maybe have him check that specific case by running a command like crontab -l -u edison (that's dash-L)
or maybe grep -r pump-loop /var/spool/cron/crontabs
Samuchco
@Samuchco
Jan 24 2018 03:16
It might be important not to let two oref0 run in the same rig
Scott Leibrand
@scottleibrand
Jan 24 2018 03:17
yeah, I'm trying to think how we'd prevent that reliably
I guess the mechanism depends on whether/how you got two of them going
Samuchco
@Samuchco
Jan 24 2018 03:19
and with different profiles
Scott Leibrand
@scottleibrand
Jan 24 2018 03:19
yeah, that part is a bit weird.
Samuchco
@Samuchco
Jan 24 2018 03:35
I'll be able to work on the rig tomorrow around 12:30 pm EST is that a good time for you? If not perhaps you can tell me what to look for and I'll run it
Tim Street
@tim2000s
Jan 24 2018 17:49
You could try “ps -ef | grep pump-loop”
That should show if you have multiple processes running.
You could also check whether you have a crontab under each of the users so logon as root and do crontab -l and logon as Edison and do the same.
Samuchco
@Samuchco
Jan 24 2018 17:50
@tim2000s here is the result for
 root@loop2:~/myopenaps# ps -ef | grep pump-loop
root     18010 17985  0 12:47 ?        00:00:00 /bin/sh -c cd /root/myopenaps && ( ps aux | grep -v grep | grep bash | grep -q 'bin/oref0-pump-loop' || oref0-pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
root     18011 18010  0 12:47 ?        00:00:00 /bin/bash /usr/local/bin/oref0-pump-loop
root     18012 18010  0 12:47 ?        00:00:00 tee -a /var/log/openaps/pump-loop.log
root     19083 18011  0 12:49 ?        00:00:00 /bin/bash /usr/local/bin/oref0-pump-loop
root     19157 14166  0 12:49 ttyMFD2  00:00:00 grep pump-loop
Tim Street
@tim2000s
Jan 24 2018 17:51
That seems to confirm that you have more than one.
Oh hang on.
Comparing to mine which I know only has one, it’s the same, so maybe it doesn’t.
Which would make it even more odd
What do you get when you run “ls -all” in your root directory? The
Samuchco
@Samuchco
Jan 24 2018 17:55
root@loop2:~/myopenaps# crontab -l -u edison
no crontab for edison
root@loop2:~/myopenaps# grep -r pump-loop /var/spool/cron/crontabs
/var/spool/cron/crontabs/root:* * * * * ( killall -g --older-than 30m openaps; killall -g --older-than 30m oref0-pump-loop; killall -g --older-than 30m openaps-report )
/var/spool/cron/crontabs/root:* * * * * find /var/log/openaps/pump-loop.log -mmin +5 | grep pump && ( killall -g --older-than 5m openaps; killall -g --older-than 5m oref0-pump-loop; killall -g --older-than 5m openaps-report )
/var/spool/cron/crontabs/root:* * * * * cd /root/myopenaps && ( ps aux | grep -v grep | grep bash | grep -q 'bin/oref0-pump-loop' || oref0-pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
@tim2000s ls -all returns this
root@loop2:~/myopenaps# ls -all
total 128
drwxr-xr-x 10 root root  4096 Jan 23 11:21 .
drwx------  7 root root  4096 Jan 14 17:53 ..
drwxr-xr-x  2 root root  4096 Oct 25 00:08 autotune
drwxr-xr-x  2 root root  4096 Jan 21 19:46 cgm
-rw-r--r--  1 root root    27 Oct 26 18:12 cgm.ini
-rw-r--r--  1 root root   124 Oct 26 18:11 detect-sensitivity.ini
-rw-r--r--  1 root root   103 Oct 26 18:11 determine-basal.ini
drwxr-xr-x  2 root root  4096 Jan 24 11:46 enact
-rw-r--r--  1 root root   126 Oct 26 18:11 get-profile.ini
drwxr-xr-x  8 root root  4096 Jan 24 12:55 .git
-rw-r--r--  1 root root     9 Oct 25 13:08 .gitignore
-rw-r--r--  1 root root    84 Oct 26 18:11 iob.ini
-rw-r--r--  1 root root    96 Oct 26 18:11 meal.ini
drwxr-xr-x  2 root root  4096 Jan 24 12:55 monitor
-rw-r--r--  1 root root   174 Oct 26 18:11 ns-glucose.ini
-rw-r--r--  1 root root   127 Oct 26 18:11 ns.ini
-rw-r--r--  1 root root 16183 Jan 23 11:21 openaps.ini
-rw-r--r--  1 root root    48 Oct 26 18:11 oref0.ini
-rwxr-xr-x  1 root root   270 Oct 26 18:08 oref0-runagain.sh
-rw-r--r--  1 root root   114 Oct 26 18:11 pebble.ini
-rw-r--r--  1 root root   625 Jan 23 22:26 preferences.json
-rw-r--r--  1 root root    79 Oct 26 18:12 pump.ini
-rw-r--r--  1 root root    57 Jan 24 11:47 pump-session.json
drwxr-xr-x  2 root root  4096 Oct 19 22:05 raw-cgm
drwxr-xr-x  2 root root  4096 Jan 24 12:48 settings
-rw-r--r--  1 root root    15 Oct 26 18:11 tz.ini
-rw-r--r--  1 root root    18 Oct 26 18:11 units.ini
drwxr-xr-x  2 root root  4096 Oct 20 22:39 upload
-rw-r--r--  1 root root   158 Oct 26 18:11 xdrip.ini
root@loop2:~/myopenaps#
ls -all from root
root@loop2:~/myopenaps# cd ..
root@loop2:~# ls -all
total 3156
drwx------   7 root root     4096 Jan 14 17:53 .
drwxr-xr-x  22 root root     4096 Dec 31  1999 ..
-rw-r--r--   1 root root        0 Oct 26 16:48 apscron
-rw-------   1 root root    20499 Jan 15 10:44 .bash_history
-rw-r--r--   1 root root     1319 Oct 26 18:12 .bash_profile
-rw-r--r--   1 root root      570 Jan 31  2010 .bashrc
-rw-r--r--   1 root root     1766 Oct 26 18:14 crontab.old.txt
-rw-r--r--   1 root root     1766 Oct 26 18:14 crontab.txt
-rw-r--r--   1 root root       57 Oct 19 19:57 .gitconfig
drwxr-xr-x  10 root root     4096 Jan 23 11:21 myopenaps
drwxr-xr-x 192 root root    20480 Jan 14 18:50 .npm
-rw-r--r--   1 root root      353 Oct 19 22:25 .profile
drwxr-xr-x   2  501 staff    4096 Nov 17  2016 remote_syslog
-rw-r--r--   1 root root  3122260 May 24  2017 remote_syslog_linux_i386.tar.gz
drwxr-xr-x   6 root root     4096 Oct 19 22:24 src
drwx------   2 root root     4096 Oct 26 13:46 .ssh
-rw-------   1 root root     5055 Oct 31 21:02 .viminfo
root@loop2:~#
Scott Leibrand
@scottleibrand
Jan 24 2018 18:28
grep -r pump-loop /var/spool/cron/crontabs
Samuchco
@Samuchco
Jan 24 2018 18:29
@scottleibrand
root@loop2:~/myopenaps/settings# grep -r pump-loop /var/spool/cron/crontabs
/var/spool/cron/crontabs/root:* * * * * ( killall -g --older-than 30m openaps; killall -g --older-than 30m oref0-pump-loop; killall -g --older-than 30m openaps-report )
/var/spool/cron/crontabs/root:* * * * * find /var/log/openaps/pump-loop.log -mmin +5 | grep pump && ( killall -g --older-than 5m openaps; killall -g --older-than 5m oref0-pump-loop; killall -g --older-than 5m openaps-report )
/var/spool/cron/crontabs/root:* * * * * cd /root/myopenaps && ( ps aux | grep -v grep | grep bash | grep -q 'bin/oref0-pump-loop' || oref0-pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
@scottleibrand profile.json shows nothing
Samuchco
@Samuchco
Jan 24 2018 18:59
I built two rigs for two different people. Rig one "SammysAPS" for Sammy. Rig two "Loop2" for Abbe. They each have totally different settings/profile. SammysAPS has a ISF of 25 and higher basals (1.75u/hr) . Abbe (loop2) has a setting of ISF 100 and lower basal (0.50/hr).
Max_iob for SammyAPS is 15 while max_iob for Abbe (loop2) was 4 , now 2 (as I changed it last night)
So, when I run on loop2 cat autotune I'm getting SammysAPS settings (i.e. high basals)
root@loop2:~/myopenaps/autotune# cat profile.json
{"max_iob":10,"max_daily_safety_multiplier":3,"current_basal_safety_multiplier":4,"autosens_max":1.2,"autosens_min":0.7,"rewind_resets_autosens":true,"autosens_adjust_targets":true,"adv_target_adjustments":true,"maxCOB":120,"override_high_target_with_low":false,"unsuspend_if_no_temp":false,"bolussnooze_dia_divisor":2,"min_5m_carbimpact":8,"carbratio_adjustmentratio":1,"autotune_isf_adjustmentFraction":0.5,"remainingCarbsFraction":1,"remainingCarbsCap":90,"enableUAM":true,"enableSMB_with_bolus":true,"enableSMB_with_COB":true,"enableSMB_with_temptarget":true,"enableSMB_after_carbs":false,"dia":5,"current_basal":1.75,"basalprofile":[{"i":0,"start":"00:00:00","rate":1.658,"minutes":0},{"i":1,"start":"01:00:00","rate":1.76,"minutes":60},{"i":2,"start":"02:00:00","rate":1.716,"minutes":120},{"i":3,"start":"03:00:00","rate":1.594,"minutes":180},{"i":4,"start":"04:00:00","rate":1.435,"minutes":240},{"i":5,"start":"05:00:00","rate":1.325,"minutes":300},{"i":6,"start":"06:00:00","rate":1.322,"minutes":360},{"i":7,"start":"07:00:00","rate":1.423,"minutes":420},{"i":8,"start":"08:00:00","rate":1.516,"minutes":480},{"i":9,"start":"09:00:00","rate":1.565,"minutes":540},{"i":10,"start":"10:00:00","rate":1.595,"minutes":600},{"i":11,"start":"11:00:00","rate":1.566,"minutes":660},{"i":12,"start":"12:00:00","rate":1.567,"minutes":720},{"i":13,"start":"13:00:00","rate":1.598,"minutes":780},{"i":14,"start":"14:00:00","rate":1.579,"minutes":840},{"i":15,"start":"15:00:00","rate":1.585,"minutes":900},{"i":16,"start":"16:00:00","rate":1.588,"minutes":960},{"i":17,"start":"17:00:00","rate":1.598,"minutes":1020},{"i":18,"start":"18:00:00","rate":1.558,"minutes":1080},{"i":19,"start":"19:00:00","rate":1.567,"minutes":1140},{"i":20,"start":"20:00:00","rate":1.613,"minutes":1200},{"i":21,"start":"21:00:00","rate":1.773,"minutes":1260},{"i":22,"start":"22:00:00","rate":1.728,"minutes":1320},{"i":23,"start":"23:00:00","rate":1.681,"minutes":1380}],"max_daily_basal":1.75,"max_basal":6,"out_units":"mg/dL","min_bg":80,"max_bg":100,"bg_targets":{"units":"mg/dL","user_preferred_units":"mg/dL","targets":[{"i":0,"high":110,"start":"00:00:00","low":90,"offset":0,"x":0,"min_bg":null,"max_bg":null},{"i":14,"high":100,"start":"07:00:00","low":80,"offset":420,"x":1,"min_bg":null,"max_bg":null},{"i":40,"high":100,"start":"20:00:00","low":80,"offset":1200,"x":2,"max_bg":100,"min_bg":80}],"first":1},"sens":33.658,"isfProfile":{"units":"mg/dL","user_preferred_units":"mg/dL","sensitivities":[{"i":0,"start":"00:00:00","sensitivity":33.658,"x":0,"offset":0},{"i":12,"start":"06:00:00","sensitivity":25,"x":1,"offset":360},{"i":40,"start":"20:00:00","sensitivity":25,"x":2,"offset":1200,"endOffset":1440}],"first":1},"carb_ratio":5.87,"carb_ratios":{"units":"grams","raw":"0x01 0x00 0x08 0x0c 0x06 0x12 0x06 0x18 0x06 0x1e 0x06 0x24 0x06 0x2a 0x06 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00","first":1,"schedule":[{"start":"00:00:00","r":8,"ratio":8,"offset":0,"i":0,"x":0},{"start":"06:00:00","r":6,"ratio":6,"offset":360,"i":12,"x":1},{"start":"09:00:00","r":6,"ratio":6,"offset":540,"i":18,"x":2},{"start":"12:00:00","r":6,"ratio":6,"offset":720,"i":24,"x":3},{"start":"15:00:00","r":6,"ratio":6,"offset":900,"i":30,"x":4},{"start":"18:00:00","r":6,"ratio":6,"offset":1080,"i":36,"x":5},{"start":"21:00:00","r":6,"ratio":6,"offset":1260,"i":42,"x":6}]},"csf":5.131}
Dana Lewis
@danamlewis
Jan 24 2018 19:00
Did you use the same Nightscout URL for them?
Samuchco
@Samuchco
Jan 24 2018 19:00
@danamlewis no
Samuchco
@Samuchco
Jan 24 2018 19:07
I think I might have used Loop2 for Sammy as a backup ( a long time ago) and when I built Loop2 for Abbe, some settings remained. Or I set the autotune file in Loop2 wrong. Although insulin-sensitivities on Loop2 are correct
root@loop2:~/myopenaps/settings# cat insulin_sensitivities.json
{
  "units": "mg/dL",
  "user_preferred_units": "mg/dL",
  "sensitivities": [
    {
      "i": 0,
      "start": "00:00:00",
      "sensitivity": 100,
      "x": 0,
      "offset": 0
    },
    {
      "i": 10,
      "start": "05:00:00",
      "sensitivity": 100,
      "x": 1,
      "offset": 300
    },
    {
      "i": 28,
      "start": "14:00:00",
      "sensitivity": 100,
      "x": 2,
      "offset": 840
    },
    {
      "i": 36,
      "start": "18:00:00",
      "sensitivity": 100,
      "x": 3,
      "offset": 1080
    },
    {
      "i": 42,
      "start": "21:00:00",
      "sensitivity": 100,
      "x": 4,
      "offset": 1260
    }
  ],
  "first": 1
}root@loop2:~/myopenaps/settings#
and the ISF which is 100 is the one being affected by alot ( ISF 21 or 28)
I think it would be beneficial to figure out the mistake in order to understand how the mixed settings affect the SMBs
philipgo
@philipgo
Jan 24 2018 19:13
What does autotunelog say?
Samuchco
@Samuchco
Jan 24 2018 19:16
where do I find autotune.log?
philipgo
@philipgo
Jan 24 2018 19:18
autotunelog is the command. Autotune is not made to work with multiple ISF, that is why I am asking
Samuchco
@Samuchco
Jan 24 2018 19:19
here is autotune_recommendations.log. Note that ALL those settings are wrong. They are for Sammy (SammysAPS) and not for Abbe (Loop2). Loop2 is the one we are troubleshooting
root@loop2:~/myopenaps/autotune# cat autotune_recommendations.log
Parameter      | Pump     | Autotune
-------------------------------------
ISF [mg/dL/U]  | 35.000   | 33.658
Carb Ratio[g/U]| 6.000    | 5.870
Basals [U/hr]  | -        |
  00:00        | 1.700    | 1.658
  00:30        |          |
  01:00        |          | 1.760
  01:30        |          |
  02:00        |          | 1.716
  02:30        |          |
  03:00        | 1.600    | 1.594
  03:30        |          |
  04:00        |          | 1.435
  04:30        |          |
  05:00        |          | 1.325
  05:30        |          |
  06:00        |          | 1.322
  06:30        |          |
  07:00        |          | 1.423
  07:30        |          |
  08:00        | 1.450    | 1.516
  08:30        |          |
  09:00        |          | 1.565
  09:30        |          |
  10:00        |          | 1.595
  10:30        |          |
  11:00        |          | 1.566
  11:30        |          |
  12:00        |          | 1.567
  12:30        |          |
  13:00        | 1.550    | 1.598
  13:30        |          |
  14:00        |          | 1.579
  14:30        |          |
  15:00        |          | 1.585
  15:30        |          |
  16:00        |          | 1.588
  16:30        |          |
  17:00        |          | 1.598
  17:30        |          |
  18:00        |          | 1.558
  18:30        |          |
  19:00        |          | 1.567
  19:30        |          |
  20:00        |          | 1.613
  20:30        |          |
  21:00        | 1.750    | 1.773
  21:30        |          |
  22:00        |          | 1.728
  22:30        |          |
  23:00        |          | 1.681
  23:30        |          |
root@loop2:~/myopenaps/autotune#
Here is autotunelog
root@loop2:~/myopenaps/autotune# autotunelog
0 mealCOB: 33.8 mealCarbs: 70 basalBGI: 3.6 BGI: -9.8 IOB: 4.7 at 23:42:42 dev: -4.49 avgDelta: -14.25 csf
0 mealCOB: 32.0 mealCarbs: 70 basalBGI: 3.6 BGI: -9.4 IOB: 4.4 at 23:47:42 dev: -3.61 avgDelta: -13.00 csf
CREndIOB: 4.02 CREndBG: 77 CREndTime: Tue Oct 24 2017 23:52:43 GMT-0400 (EDT)
Ignoring 145 m CR period.
0 mealCOB: 30.2 mealCarbs: 70 basalBGI: 3.6 BGI: -9.0 IOB: 4.0 at 23:52:43 dev: -1.49 avgDelta: -10.50 csf
oref0-autotune-core autotune.2017-10-24.json profile.json profile.pump.json > newprofile.2017-10-24.json
CRTotalCarbs: 23 CRTotalInsulin: 0.43 totalCR: 53.488
Hour 0 basal adjustment needed: -0.01 U/hr
Hour 1 basal adjustment needed: -0.09 U/hr
Hour 2 basal adjustment needed: 0 U/hr
Hour 3 basal adjustment needed: 0 U/hr
Hour 4 basal adjustment needed: -0.06 U/hr
Hour 5 basal adjustment needed: -0.17 U/hr
Hour 6 basal adjustment needed: -0.04 U/hr
Hour 7 basal adjustment needed: -0.09 U/hr
Hour 8 basal adjustment needed: -0.24 U/hr
Hour 9 basal adjustment needed: 0.39 U/hr
Hour 10 basal adjustment needed: 0.48 U/hr
Hour 11 basal adjustment needed: 0 U/hr
Hour 12 basal adjustment needed: 0 U/hr
Hour 13 basal adjustment needed: 0 U/hr
Hour 14 basal adjustment needed: 0 U/hr
Hour 15 basal adjustment needed: 0 U/hr
Hour 16 basal adjustment needed: 0 U/hr
Hour 17 basal adjustment needed: 0 U/hr
Hour 18 basal adjustment needed: 0 U/hr
Hour 19 basal adjustment needed: 0.04 U/hr
Hour 20 basal adjustment needed: 0 U/hr
Hour 21 basal adjustment needed: 0 U/hr
Hour 22 basal adjustment needed: 0.07 U/hr
Hour 23 basal adjustment needed: 0.29 U/hr
Adjusting hour 10 basal from 1.6 to 1.595 based on hour 9 = 1.565 and hour 16 = 1.588
Adjusting hour 11 basal from 1.563 to 1.566 based on hour 9 = 1.565 and hour 16 = 1.588
Adjusting hour 12 basal from 1.564 to 1.567 based on hour 9 = 1.565 and hour 16 = 1.588
Adjusting hour 13 basal from 1.603 to 1.598 based on hour 9 = 1.565 and hour 16 = 1.588
Adjusting hour 14 basal from 1.579 to 1.579 based on hour 9 = 1.565 and hour 16 = 1.588
Adjusting hour 15 basal from 1.587 to 1.585 based on hour 9 = 1.565 and hour 16 = 1.588
[ { i: 0, start: '00:00:00', rate: 1.658, minutes: 0 },
  { i: 1, start: '01:00:00', rate: 1.76, minutes: 60 },
  { i: 2, start: '02:00:00', rate: 1.716, minutes: 120 },
  { i: 3, start: '03:00:00', rate: 1.594, minutes: 180 },
  { i: 4, start: '04:00:00', rate: 1.435, minutes: 240 },
  { i: 5, start: '05:00:00', rate: 1.325, minutes: 300 },
  { i: 6, start: '06:00:00', rate: 1.322, minutes: 360 },
  { i: 7, start: '07:00:00', rate: 1.423, minutes: 420 },
  { i: 8, start: '08:00:00', rate: 1.516, minutes: 480 },
  { i: 9, start: '09:00:00', rate: 1.565, minutes: 540 },
  { i: 10, start: '10:00:00', rate: 1.595, minutes: 600 },
  { i: 11, start: '11:00:00', rate: 1.566, minutes: 660 },
  { i: 12, start: '12:00:00', rate: 1.567, minutes: 720 },
  { i: 13, start: '13:00:00', rate: 1.598, minutes: 780 },
  { i: 14, start: '14:00:00', rate: 1.579, minutes: 840 },
  { i: 15, start: '15:00:00', rate: 1.585, minutes: 900 },
  { i: 16, start: '16:00:00', rate: 1.588, minutes: 960 },
  { i: 17, start: '17:00:00', rate: 1.598, minutes: 1020 },
  { i: 18, start: '18:00:00', rate: 1.558, minutes: 1080 },
  { i: 19, start: '19:00:00', rate: 1.567, minutes: 1140 },
  { i: 20, start: '20:00:00', rate: 1.613, minutes: 1200 },
  { i: 21, start: '21:00:00', rate: 1.773, minutes: 1260 },
  { i: 22, start: '22:00:00', rate: 1.728, minutes: 1320 },
  { i: 23, start: '23:00:00', rate: 1.681, minutes: 1380 } ]
totalMealCarbs: 118 totalDeviations: 158.05 oldCSF 6.079 fullNewCSF: 1.34 newCSF: 5.131
Limiting fullNewCR from 53.488 to 7.20 (which is 1.2 * pump CR of 6 )
oldCR: 5.537 fullNewCR: 7.199999999999999 newCR: 5.87
p50deviation: 3.52 p50BGI -2.29 p50ratios: -0.233 Old ISF: 33.658 fullNewISF: -7.842 adjustedISF: 33.658 newISF: 33.658
philipgo
@philipgo
Jan 24 2018 19:23
Interesting. So now we know that there is only one OpenAPS instance running on that rig and that autotune and profile include the settings of another person, right? Did you delete anything before switching between users? Or did you just run runagain?
Samuchco
@Samuchco
Jan 24 2018 19:25
I don't think I deleted anything other than input new prefs
but this was a long time ago. Loop2 was working fine till I increased the Max-iob and "maxSMBBasalMinutes" to 90 from 60
Samuchco
@Samuchco
Jan 24 2018 19:30
BTW Abbe (loop2) was doing a lot better with the latest settings. Less roller-coaster, more in range. Other than those high SMBs (which of course are undesirable). Those high SMBs came with an ISF of 21 or so. After that, the ISF would immediately revert to ISF 83 or so. Very interesting
I still wonder from where is Loop2 getting the "normal" ISF of between 83 and 112, and the other pre-SMBs of ISF 21 to 28
Dana Lewis
@danamlewis
Jan 24 2018 19:40
You still have the old Sammy Autotune results
You need to delete those
Samuchco
@Samuchco
Jan 24 2018 19:43
@danamlewis I know I have to delete those. But before I do that, I think a review of the behavior would be beneficial
or not. Its up to you guys, if you want to continue before I delete stuff. I think I have to wait for your hubby @scottliebrand to chime in.
Samuchco
@Samuchco
Jan 24 2018 19:54
also, the autotune logs go only till Oct 2017. is that normal?
root@loop2:~/myopenaps/autotune# ls
autotune.2017-10-19.json        ns-entries.2017-10-20.json
autotune.2017-10-20-000502.log  ns-entries.2017-10-21.json
autotune.2017-10-20.json        ns-entries.2017-10-22.json
autotune.2017-10-21-000502.log  ns-entries.2017-10-23.json
autotune.2017-10-21.json        ns-entries.2017-10-24.json
autotune.2017-10-22-000502.log  ns-treatments.2017-10-19.json
autotune.2017-10-22.json        ns-treatments.2017-10-20.json
autotune.2017-10-23-000503.log  ns-treatments.2017-10-21.json
autotune.2017-10-23.json        ns-treatments.2017-10-22.json
autotune.2017-10-24-000502.log  ns-treatments.2017-10-23.json
autotune.2017-10-24.json        ns-treatments.2017-10-24.json
autotune.2017-10-25-000502.log  profile.2017-10-19.json
autotune_recommendations.log    profile.2017-10-20.json
newprofile.2017-10-19.json      profile.2017-10-21.json
newprofile.2017-10-20.json      profile.2017-10-22.json
newprofile.2017-10-21.json      profile.2017-10-23.json
newprofile.2017-10-22.json      profile.2017-10-24.json
newprofile.2017-10-23.json      profile.json
newprofile.2017-10-24.json      profile.pump.json
ns-entries.2017-10-19.json
Dana Lewis
@danamlewis
Jan 24 2018 19:56
The point was to identify how it happened. I think we did: you built a rig for user1, and ran Autotune. You turned the rig for user2, and kept user1's Autotune. Not sure there's a safety mechanism we can build other than telling people to completely wipe and reinstall oref0 from scratch when switching rigs between users - just changing things in runagain is not enough if Autotune has been used.
Please delete immediately or otherwise disable that rig since you know there is a problem. Safety first.
Scott Leibrand
@scottleibrand
Jan 24 2018 19:58
Agreed.
Samuchco
@Samuchco
Jan 24 2018 19:58
@danamlewis Agreed. The rig will not be used until fixed. Yes, it would be good to update the instructions
kallnap
@kallnap
Jan 24 2018 20:02
wiping myopenaps should be minimal requirement before giving the rig to someone else, it is still DIY after all and the tech barrier has already been greatly reduced by the work from @scottleibrand and @danamlewis regarding the setup script
Samuchco
@Samuchco
Jan 24 2018 20:10
@kallnap what does "minimal requirement" means? Many if not most people don't know what we are doing in the first place!!! that is the reason for sharing situations that might come up. The work is NOT finished! this event is case in point! being condescending is not helpful.
Samuchco
@Samuchco
Jan 24 2018 20:19
@scottleibrand what do I delete? myopenaps directory? and reinstall?
garykidd
@garykidd
Jan 24 2018 20:22
hmmm rig error.... Cannot access /tmp/pump_loop_completed: No such file exists....how to resolve?
No such file or directory (rather)
Dana Lewis
@danamlewis
Jan 24 2018 20:26
@Samuchco I think people are trying to help. I would:

make sure there is no autotune directory:

cd ~/myopenaps && rm -rf autotune

make sure there is not autotune.json in the settings directory:

cd settings

rm autotune.json

double check there’s no autotune info:

cat-autotune
Samuchco
@Samuchco
Jan 24 2018 20:29
@danamlewis done
root@loop2:~# cd ~/myopenaps && rm -rf autotune
root@loop2:~/myopenaps# cd settings
root@loop2:~/myopenaps/settings# rm autotune.json
root@loop2:~/myopenaps/settings# cat autotune
cat: autotune: No such file or directory
Dana Lewis
@danamlewis
Jan 24 2018 20:30
After we resolve that, a PR to the docs (maybe under the tips page) with suggestions for switching rigs between users. If you start that, I can help.
Samuchco
@Samuchco
Jan 24 2018 20:31
@danamlewis I will gladly try a PR. Have not done one other than the first one.
Do I reinstall oref0 ?
Dana Lewis
@danamlewis
Jan 24 2018 20:38
Your call. What you did should have removed the bad Autotune, but I would reinstall for peace of mind.
Scott Leibrand
@scottleibrand
Jan 24 2018 20:40
@garykidd that is normal after each reboot until it completes its first loop.
Samuchco
@Samuchco
Jan 24 2018 20:43
@danamlewis thanks, but should I delete myopenaps before reinstalling?
garykidd
@garykidd
Jan 24 2018 20:59
preflight keep sfailing even after long while???
thx
garykidd
@garykidd
Jan 24 2018 21:12
I'm actually not aware what would cause preflight to fail?
lschuirmann
@lschuirmann
Jan 24 2018 22:14
@danamlewis re: my autotune issue from yesterday, I ran it successfully under my second directory. However, 'cat-autotune' now shows that the autotune files exist both under my original myopenaps directory and my second myopenapstest directory. I cd'd into myopenapstest and then ran the commands as written under Phase A. I was unable to sub 'myopenapstest' for 'myopenaps' in the commands because the settings profile didn't exist. Is this why the autotune files exist under both directories? If so, how would I copy the settings from the first to the second directory? Would like to have it in the second directory only. Thank you!!
philipgo
@philipgo
Jan 24 2018 22:30
I am on the latest dev and bluetooth tethering has suddenly stopped working (maybe after the update to Bluez 5.48). When trying to re-do the Bluetooth setup on the rig, I get the error message Failed to set power on: org.bluez.Error.Failed when doing power on in bluetoothctl. Anyone else with that problem?
Marco
@CaptainBalou
Jan 24 2018 22:37

Hello guys. I tried to use oref0-upload-profile to upload the profile data to nightscout. This stopped working for me on some day. Does anyone know what the problem could be?

´´´
root@captainsloop1:~/myopenaps# oref0-upload-profile

/root/src/oref0/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
const Hoek = require('hoek');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/root/src/oref0/node_modules/request/node_modules/hawk/lib/index.js:5:33)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
root@captainsloop1:~/myopenaps#
´´´