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

23rd
Jan 2018
Greg Kitson
@awaxa
Jan 23 2018 02:47
@aaronnnnnnn when you return, don't miss this report from a combo tester ^
Thanks, Tim!
Todd Radel
@tradel
Jan 23 2018 03:35
Just realized my rig has been sitting across the room all night and running fine. 18 feet!
Dana Lewis
@danamlewis
Jan 23 2018 03:49
@tradel 😁
Eric
@ecc1
Jan 23 2018 03:50
Nice -- what kind of radio hardware are you using?
Todd Radel
@tradel
Jan 23 2018 03:51
Explorer Board v1.3 with antenna attached (although it's curled around the board right now)
jzycom123
@jzycom123
Jan 23 2018 03:53
Hello teachers!

For accurate display of CGM recency, it is highly recommended to add a report which reads the CGM clock. Here's what that might look like for Dexcom (make sure it is connected via cable):

openaps report add monitor/dex-clock.json JSON cgm ReadDisplayTime
At the end of your loop, use format_urchin_data to prepare the data, and send_urchin_data to send it:

You'll want to generate your own loop summary to show in the status line.

echo '{"message": "loop status at '$(date +%-I:%M%P)': copacetic"}' > urchin-status.json

openaps report add urchin-data.json JSON pbl format_urchin_data \
monitor/dex-glucose.json \

Make sure you've read the CGM display clock earlier in your loop:

--cgm-clock monitor/dex-clock.json \

...and called whatever generates your loop summary message:

--status-json urchin-status.json

openaps report invoke urchin-data.json

Consider making this a report, too

openaps use pbl send_urchin_data urchin-data.json

See openaps use pbl format_urchin_data --help for more options.

How should I do these steps?
Aaron Michelson
@Aaybob
Jan 23 2018 07:42
am i logged in?
Aaron Michelson
@Aaybob
Jan 23 2018 07:52
Hi all, I changed preferences.json "curve" to ultra-acting and of course got error message unsupported curve function. and it froze, then I changed "curve" to the correct ultra-rapid and rebooted but the froze hasn't unfrozen...do I just need to wait?
Rather its still giving the error message
Unsupported curve function: "ultra-acting". Supported curves: "bilinear", "rapid-acting" (Novolog, Novorapid, Humalog, Apidra) and "ultra-rapid" (Fiasp). Defaulting to "rapid-acting".
Unsupported curve function: "ultra-acting". Supported curves: "bilinear", "rapid-acting" (Novolog, Novo
Aaron Michelson
@Aaybob
Jan 23 2018 07:58
and is stopped there....do I just need to wait?
Aaron Michelson
@Aaybob
Jan 23 2018 08:12
no space left on device.....I know thats in the docs......ran oref0-pump-loop manually
Aaron Michelson
@Aaybob
Jan 23 2018 08:31
""root@gray:~# ls -l /var/log/openaps/pump-loop.log
-rw-r--r-- 1 root root 361127936 Jan 23 00:29 /var/log/openaps/pump-loop.log
root@gray:~# rm /var/log/openaps/pump-loop.log""
Aaron Michelson
@Aaybob
Jan 23 2018 08:56
I love this machine we kept log setup simple to keep the setup instruction easy
By the way I'm having some of my healthiest energetic D days ever using fiasp, twice with 50% and once with 25%.
Colin Lennon
@colinlennon
Jan 23 2018 08:58
@BjoTore_twitter Sorry Tore, it's been taken already!
lschuirmann
@lschuirmann
Jan 23 2018 18:25

Hi everyone, I ran autotune manually on my openaps rig and then decided I didn't want to use it. I removed autotune but now would like to try it again. I used this command:

cd myopenaps && rm -rf autotune

The manual autotune script now says autotune does not exist and cat -autotune shows nothing; to get the autotune file back, do I need to reinstall openaps from scratch? Is there an easier way? Thanks!

lschuirmann
@lschuirmann
Jan 23 2018 18:32
I should add I don't really know code outside of what I've used for openaps
regdubbed
@regdubbed
Jan 23 2018 19:44
what is the command you are running?
Dana Lewis
@danamlewis
Jan 23 2018 19:45
@lschuirmann you can a) run Autotune manually or b) add it back to your runagain and then do bash runagain; Autotune will then run overnight at 4am. http://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/oref0-runagain.html
regdubbed
@regdubbed
Jan 23 2018 19:48
has anyone tried running the edison rig on freestyle libre cgm data?
i mean directly, without going through xdrip/NS
Dana Lewis
@danamlewis
Jan 23 2018 19:51
Afaik, haven't heard of anyone doing the work to make that possible.
lschuirmann
@lschuirmann
Jan 23 2018 19:56

@danamlewis I'd like to run autotune manually but for my review without saving the settings in myopenaps. Have tried creating a new directory separate from myopenaps to do so, but I think I messed up:

root@ledison1:~# mkdir -p ~/myopenapstest/settings
root@ledison1:~# cat-autotune
-bash: cd: /root/myopenaps/autotune: No such file or directory

What commands should I use to create a new directory, and then run autotune manually under that directory so as not to interfere with current openaps settings?

@danamlewis on a positive note, I successfully ran autotune via PhaseC on my mac! :smile:
regdubbed
@regdubbed
Jan 23 2018 20:02
And that work would be connecting to the Edison bluetooth and writing a driver for OpenAPS, right? No magic involved?
Dana Lewis
@danamlewis
Jan 23 2018 20:02
@lschuirmann you need to cd into the new directory; and then run Autotune manually; then you can cat (display) the Autotune results
:+1: for running on Mac
@regdubbed ummmm generally nothing with computers is magic, just a question of how much work ;) you might want to take a look at xdrip-js for a model of how to read to the rig directly
Scott Leibrand
@scottleibrand
Jan 23 2018 20:06
I dunno, RF is mostly magic... ;-)
regdubbed
@regdubbed
Jan 23 2018 20:07
I'd agree on that ;)
Just wanted to make sure it's "only work", and that I didn't miss some detail that makes it harder than expected...
Scott Leibrand
@scottleibrand
Jan 23 2018 20:26
one challenge will be that it's both a hardware and software problem
you'll need a Libre reader that you can talk to from the rig. some of the open source ones are probably suitable, but I'm not sure which ones.
regdubbed
@regdubbed
Jan 23 2018 20:37
The only one I know of that has the sources available is the limiTTer. (Would still need make a PCB). Or is there anything else?
One more thing (completely unrelated): With the "rapid acting" curves, is the DIA from the pump still used somewhere?
philipgo
@philipgo
Jan 23 2018 20:41
@regdubbed @SandraK82 might know more, she developed the Bluereader
OpenAPS will always set DIA to at least 5, if DIA is set to more than 5 in the pump, this value will be used
Sandra Keßler
@SandraK82
Jan 23 2018 20:47
@regdubbed the blueReader is in production and many got already a unit. The software is not yet completely opensource as my time is very constrained at the moment. The protocol is complete open. It’s integrated into xdrip+ and my openLibreReader iOS app which is found in my github account. There is no direct rig interface at the moment I’m aware of as most European users are heading to AndroidAPS at the moment as it is very hard to get rig compatible pumps here
regdubbed
@regdubbed
Jan 23 2018 20:52
@SandraK82 I looked at the bluereader, but wasn't sure about the protocol. But if it's open, I'd definitely prefer it over doing a PCB ;)
Not feeling really comfortable with AndroidAPS...
@drnoname82 Just wondering, because iob/total.js still uses the pump dia...
philipgo
@philipgo
Jan 23 2018 21:04
@regdubbed Do you have a link? The minimum DIA is applied in the code for the new insulin curves. So maybe total.js uses that function?
regdubbed
@regdubbed
Jan 23 2018 21:07
        var dia = profile_data.dia;
        // force minimum DIA of 3h
        if (dia < 3) {
            console.error("Warning; adjusting DIA from",dia,"to minimum of 3 hours");
            dia = 3;
        }
        var dia_ago = now - profile_data.dia*60*60*1000;
Had a pump set to 2h dia and got half a GB of warnings ;)
Sandra Keßler
@SandraK82
Jan 23 2018 21:17
@regdubbed if you look at my repo there is a complete protocol implementation (it’s not much) and the services/characteristics used. I will bring a new protocol soon with much more commands. Somewhere a pdf File exists with the description. I have to clean up the pages and add a lot of informations...
Samuchco
@Samuchco
Jan 23 2018 21:18
I need extra eyes. Please!
NS Shows a SMB of 2 units at 1:55pm. Eventually caused a crash/low.
I'm attaching the paper trail log and a graph of NS. I cannot find the SMB.
Jan 23 01:54:44 loop2 pump-loop.log: enact/smb-suggested.json: {"temp":"absolute","bg":142,"tick":"+8","eventualBG":223,"insulinReq":0.68,"reservoir":"151.7","deliverAt":"2018-01-23T06:54:44.596Z","sensitivityRatio":0.89,"predBGs":{"IOB":[142,147,151,155,158,161,163,165,166,167,167,167,166,166,165,164,164,163,163,162,162,162,161,161,161,161,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,161],"ZT":[142,140,139,137,136,135,134,133,132,131,131,130,130,130,130,131,131,131],"UAM":[142,147,152,157,162,166,171,175,179,183,187,190,194,197,200,203,206,208,211,213,215,216,218,219,220,221,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,223]},"COB":0,"IOB":0.167,"reason":"COB: 0, Dev: 43, BGI: -2, ISF: 112, CR: 14, Target: 116, minPredBG 192, minGuardBG 147, IOBpredBG 161, UAMpredBG 223; Eventual BG 223 >= 116, insulinReq 0.68; maxBolus 0.2. Microbolusing 0.2U. adj. req. rate: 1.65 to maxSafeBasal: 1.4, temp 0.5<1.4U/hr. ","units":0.2,"duration":30,"rate":1.4}
Jan 23 01:54:49 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":26,"rate":0.5,"temp":"absolute"}
Jan 23 01:54:53 loop2 pump-loop.log: enact/smb-enacted.json: "Rate: 1.4 Duration: 30"
Jan 23 01:54:58 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":30,"rate":1.4,"temp":"absolute"}
Jan 23 01:54:58 loop2 pump-loop.log: Checking deliverAt: 2018-01-23T06:54:44.596Z is within 1m of current time: Tue Jan 23 01:54:58 EST 2018
Jan 23 01:54:58 loop2 pump-loop.log: and that smb-suggested.json is less than 1m old
Jan 23 01:55:08 loop2 pump-loop.log: Listening for 8 s silence: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Jan 23 01:55:14 loop2 pump-loop.log: Checking reservoir: reservoir level before: 151.7, suggested: 151.7 and after: 151.7
Jan 23 01:55:19 loop2 pump-loop.log: Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Jan 23 01:55:24 loop2 pump-loop.log: Sending ESC ESC ESC to exit any open menus before SMBing: true
Jan 23 01:55:28 loop2 pump-loop.log: enact/bolused.json: {"insulinReq":0.68,"status":"normal","_type":"BolusRequest","bg":142,"bolusing":true,"reservoir":"151.7","requested":{"units":0.2,"params":[2]},"timestamp":"2018-01-23T01:55:27.747804","rate":1.4,"COB":0,"eventualBG":223,"suspended":false,"duration":30,"tick":"+8","deliverAt":"2018-01-23T06:54:44.596Z","temp":"absolute","recieved":false,"predBGs":{"ZT":[142,140,139,137,136,135,134,133,132,131,131,130,130,130,130,131,131,131],"UAM":[142,147,152,157,162,166,171,175,179,183,187,190,194,197,200,203,206,208,211,213,215,216,218,219,220,221,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,223],"IOB":[142,147,151,155,158,161,163,165,166,167,167,167,166,166,165,164,164,163,163,162,162,162,161,161,161,161,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,160,161]},"reason":"COB: 0, Dev: 43, BGI: -2, ISF: 112, CR: 14, Target: 116, minPredBG 192, minGuardBG 147, IOBpredBG 161, UAMpredBG 223; Eventual BG 223 >= 116, insulinReq 0.68; maxBolus 0.2. Microbolusing 0.2U. adj. req. rate: 1.65 to maxSafeBasal: 1.4, temp 0.5<1.4U/hr. ","sensitivityRatio":0.89,"units":0.2,"IOB":0.167}
Jan 23 01:55:29 loop2 pump-loop.log: Settings less than 15 minutes old. Edison battery at 65% is charged (>= 98%) or likely charging (60-70%). Pumphistory-24 < 15m old
Jan 23 01:56:14 loop2 pump-loop.log: Pump profile refreshed; Settings refreshed; Refreshed pumphistory and meal.json
Jan 23 01:56:19 loop2 pump-loop.log: IOB: -2.11
Jan 23 01:56:19 loop2 pump-loop.log: Completed oref0-pump-loop at Tue Jan 23 01:56:19 EST 2018
Jan 23 01:57:02 loop2 pump-loop.log: Starting oref0-pump-loop at Tue Jan 23 01:57:02 EST 2018 with 20 second wait_for_silence:
Jan 23 02:00:25 loop2 pump-loop.log: Waiting up to 4 minutes for new BG: ....................glucose.json newer than pump_loop_completed
Jan 23 02:00:48 loop2 pump-loop.log: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Jan 23 02:01:39 loop2 pump-loop.log: Preflight OK. Profile less than 60m old; Profile valid. Refreshed pumphistory and meal.json
Jan 23 02:01:43 loop2 pump-loop.log: Checking pump clock: "2018-01-23T02:01:41-05:00" is within 1m of current time: Tue Jan 23 02:01:43 EST 2018
Jan 23 02:01:51 loop2 pump-loop.log: Temp refreshed
Jan 23 02:01:53 loop2 pump-loop.log: Autotune exists! Hoorah! You can use microbolus-related features.
Jan 23 02:01:53 loop2 pump-loop.log: {"carbs":11,"nsCarbs":11,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":6.4,"maxDeviation":5.17,"minDeviation":2.1,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0.738,"allDeviations":[6,5,3,2,2,2],"lastCarbTime":1516672663000,"bwFound":false}
Jan 23 02:01:53 loop2 pump-loop.log: {"iob":0.495,"activity":0.0032,"basaliob":-0.226,"bolusiob":0.721,"netbasalinsulin":-0.95,"bolusinsulin":2.3,"time":"2018-01-23T07:01:46.000Z","iobWithZeroTemp":{"iob":0.495,"activity":0.0032,"basaliob":-0.226,"bolusiob":0.721,"netbasalinsulin":-0.95,"bolusinsulin":2.3,"time":"2018-01-23T07:01:46.000Z"},"lastBolusTime":1516690526000,"lastTemp":{"rate":1.4,"timestamp":"2018-01-23T01:54:51-05:00","started_at":"2018-01-23T06:54:51.000Z","date":1516690491000,"duration":7.99}}
Jan 23 02:01:53 loop2 pump-loop.log: {"delta":6,"glucose":148,"noise":null,"short_avgdelta":6,"long_avgdelta":3.04,"date":1516690633000}
Jan 23 02:01:53 loop2 pump-loop.log: Autosens ratio: 0.89; Adjusting basal from 0.35 to 0.3; target_bg from 110 to 116; ISF from 100 to 112.4; CR: 14
Jan 23 02:01:53 loop2 pump-loop.log: currenttemp: { duration: 24, rate: 1.4, temp: 'absolute' } lastTempAge: 7 m tempModulus: 1 m
Jan 23 02:01:53 loop2 pump-loop.log: SMB enabled for 6h after carb entry
Jan 23 02:01:53 loop2 pump-loop.log: Last carbs 304 minutes ago; remainingCATime: 11 hours; 100% carbs absorbed
Jan 23 02:01:53 loop2 pump-loop.log: Carb Impact: 7.8 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 0 mg/dL per 5m
Jan 23 02:01:53 loop2 pump-loop.log: UAM Impact: 7.8 mg/dL per 5m; UAM Duration: 2.7 hours
Jan 23 02:01:53 loop2 pump-loop.log: minPredBG: 175 minIOBPredBG: 137 minZTGuardBG: 123 minUAMPredBG: 200 avgPredBG: 175 COB: 0 / 11
Jan 23 02:01:53 loop2 pump-loop.log: BG projected to remain above 116 for 240 minutes
Jan 23 02:01:53 loop2 pump-loop.log: naive_eventualBG: 92 bgUndershoot: -14 zeroTempDuration: 240 zeroTempEffect: 157 carbsReq: -21
Jan 23 02:01:53 loop2 pump-loop.log: undefined 1
Jan 23 02:01:53 loop2 pump-loop.log: IOB 0.495 > COB 0; mealInsulinReq = 0
Jan 23 02:01:53 loop2 pump-loop.log: naive_eventualBG 92, 30m 0.02U/h temp needed; last bolus 6.5m ago; maxBolus: 0.2
Jan 23 02:01:53 loop2 pump-loop.log: Checking deliverAt: 2018-01-23T07:01:53.031Z is within 1m of current time: Tue Jan 23 02:01:53 EST 2018
Jan 23 02:01:53 loop2 pump-loop.log: and that smb-suggested.json is less than 1m old
Jan 23 02:01:53 loop2 pump-loop.log: enact/smb-suggested.json: {"temp":"absolute","bg":148,"tick":"+6","eventualBG":213,"insulinReq":0.52,"reservoir":"151.3","deliverAt":"2018-01-23T07:01:53.031Z","sensitivityRatio":0.89,"predBGs":{"IOB":[148,153,158,162,165,168,170,171,172,172,171,170,168,167,165,163,162,160,159,157,156,154,153,152,151,150,149,148,147,146,145,144,143,143,142,141,141,140,140,139,139,138,138,138,137],"ZT":[148,146,144,143,141,139,137,136,134,132,131,130,129,127,127,126,125,124,124,124,124,123,124,124,124,125,125],"UAM":[148,154,159,164,169,174,178,183,186,190,194,197,200,203,205,208,210,212,214,216,217,218,219,220,221,222,222,222,222,222,221,221,220,219,218,218,217,217,216,216,215,215,215,214,214,214,214,213]},"COB":0,"IOB":0.495,"reason":"COB: 0, Dev: 47, BGI: -2, ISF: 112, CR: 14, Target: 116, minPredBG 175, minGuardBG 154, IOBpredBG 137, UAMpredBG 213; Eventual BG 213 >= 116, insulinReq 0.52; maxBolus 0.2; setting 30m low temp of 0.02U/h. Microbolusing 0.2U. ","units":0.2,"rate":0.02,"duration":30}
Jan 23 02:01:57 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":24,"rate":1.4,"temp":"absolute"}
Jan 23 02:02:03 loop2 pump-loop.log: enact/smb-enacted.json: "Rate: 0.025 Duration: 30"
Jan 23 02:02:12 loop2 pump-loop.log: Temp refreshed: monitor/temp_basal.json: {"duration":30,"rate":0.025,"temp":"absolute"}
Jan 23 02:02:12 loop2 pump-loop.log: Checking deliverAt: 2018-01-23T07:01:53.031Z is within 1m of current time: Tue Jan 23 02:02:12 EST 2018
Jan 23 02:02:13 loop2 pump-loop.log: and that smb-suggested.json is less than 1m old
Jan 23 02:02:23 loop2 pump-loop.log: Listening for 6 s silence: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Jan 23 02:02:27 loop2 pump-loop.log: Checking reservoir: reservoir level before: 151.3, suggested: 151.3 and after: 151.3
Jan 23 02:02:32 loop2 pump-loop.log: Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Jan 23 02:02:36 loop2 pump-loop.log: Sending ESC ESC ESC to exit any open menus before SMBing: true
Jan 23 02:02:41 loop2 pump-loop.log: enact/bolused.json: {"insulinReq":0.52,"status":"normal","_type":"BolusRequest","bg":148,"bolusing":true,"reservoir":"151.3","requested":{"units":0.2,"params":[2]},"timestamp":"2018-01-23T02:02:40.556601","rate":0.02,"COB":0,"eventualBG":213,"suspended":false,"duration":30,"tick":"+6","deliverAt":"2018-01-23T07:01:53.031Z","temp":"absolute","recieved":false,"predBGs":{"ZT":[148,146,144,143,141,139,137,136,134,132,131,130,129,127,127,126,125,124,124,124,124,123,124,124,124,125,125],"UAM":[148,154,159,164,169,174,178,183,186,190,194,197,200,203,205,208,210,212,214,216,217,218,219,220,221,222,222,222,222,222,221,221,220,219,218,218,217,217,216,216,215,215,215,214,214,214,214,213],"IOB":[148,153,158,162,165,168,170,171,172,172,171,170,168,167,165,163,162,160,159,157,156,154,153,152,151,150,149,148,147,146,145,144,143,143,142,141,141,140,140,139,139,138,138,138,137]},"reason":"COB: 0, Dev: 47, BGI: -2, ISF: 112, CR: 14, Target: 116, minPredBG 175, minGuardBG 154, IOBpredBG 137, UAMpredBG 213; Eventual BG 213 >= 116, insulinReq 0.52; maxBolus 0.2; setting 30m low temp of 0.02U/h. Microbolusing 0.2U. ","sensitivityRatio":0.89,"units":0.2,"IOB":0.495}
Samuchco
@Samuchco
Jan 23 2018 21:27
Screen Shot 2018-01-23 at 3.39.33 PM.png
Screen Shot 2018-01-23 at 4.29.21 PM.png
above is the NS treatments Report. At 1:55pm there is a correction bolus of 2 units
Samuchco
@Samuchco
Jan 23 2018 21:58
My
Tim Street
@tim2000s
Jan 23 2018 22:04
That doesn't mean it was an SMB....
Scott Leibrand
@scottleibrand
Jan 23 2018 22:09
@Samuchco
Screenshot 2018-01-23 14.08.56.png
the main difference I see between those two is the ISF of 21 vs. 83.
can you please collect the pump-loop.log from loop2 for that timeframe?
Scott Leibrand
@scottleibrand
Jan 23 2018 22:14
it looks like the loop runs are split almost 50/50 between the two dramatically different ISFs. how many rigs do you have, and what are their names?
Scott Leibrand
@scottleibrand
Jan 23 2018 22:20
since the 16g correction, all the ISFs have shown as 112, but before that they were split between 28 and 112, going back until the post-meal peak. prior to that, they were 21 and 83.
Samuchco
@Samuchco
Jan 23 2018 23:04
Only one rig
Loops2 Is the name
ISF in pump and settings is at 100 and 110
I did ask a while ago, how can it get to 28 when Max is 1.2 and 0.70
Samuchco
@Samuchco
Jan 23 2018 23:10
The above log is the papertrail from that time
@tim2000s then what was it?
Tim Street
@tim2000s
Jan 23 2018 23:17
Sorry @Samuchco missed your treatments page. That would make it an SMB but if it is in line with your settings, as Scott mentioned, there’s no reason why it wouldn’t. Especially with such a low ISF.
Samuchco
@Samuchco
Jan 23 2018 23:22
The ISF is set by the rig
Samuchco
@Samuchco
Jan 23 2018 23:30
And in the log above, I cannot find a 2.0 SMB at that time. I see a 0.20 SMB !!!
Samuchco
@Samuchco
Jan 23 2018 23:36
@scottleibrand the pill you posted is from 10:55. This event occurred 13:55