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

7th
Jan 2016
Ben West
@bewest
Jan 07 2016 00:31
anyone play around with dexcom + medtronic on sdr?
it's on 2403.57 Mhz?
schulzedj
@schulzedj
Jan 07 2016 01:34
@scottleibrand: I ran your suggestion for the update sudo npm install -g oref0: can and here is the output
pi@raspberrypi:~/daneopenaps $ sudo npm install -g oref0 npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) /usr/local/bin/oref0-calculate-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js /usr/local/bin/oref0-find-insulin-uses -> /usr/local/lib/node_modules/oref0/bin/oref0-find-insulin-uses.js /usr/local/bin/oref0-determine-basal -> /usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js /usr/local/bin/oref0-normalize-temps -> /usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js /usr/local/bin/send-tempbasal-Azure -> /usr/local/lib/node_modules/oref0/bin/send-tempbasal-Azure.js /usr/local/bin/oref0-get-profile -> /usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js /usr/local/bin/oref0-mint-max-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-mint-max-iob.sh /usr/local/bin/oref0-ifttt-notify -> /usr/local/lib/node_modules/oref0/bin/oref0-ifttt-notify /usr/local/bin/oref0-reset-usb -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-usb.sh /usr/local/bin/oref0-reset-git -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-git.sh /usr/local/bin/mm-format-ns-glucose -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-glucose.sh /usr/local/bin/mm-format-ns-profile -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-profile.sh /usr/local/bin/mm-format-ns-treatments -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-treatments.sh /usr/local/bin/mm-format-ns-pump-history -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-pump-history.sh /usr/local/bin/oref0 -> /usr/local/lib/node_modules/oref0/bin/oref0.sh /usr/local/bin/mm-stick -> /usr/local/lib/node_modules/oref0/bin/mm-stick.sh /usr/local/bin/ns-upload-entries -> /usr/local/lib/node_modules/oref0/bin/ns-upload-entries.sh /usr/local/bin/ns-upload -> /usr/local/lib/node_modules/oref0/bin/ns-upload.sh /usr/local/bin/ns-get -> /usr/local/lib/node_modules/oref0/bin/ns-get.sh /usr/local/bin/ns-status -> /usr/local/lib/node_modules/oref0/bin/ns-status.js /usr/local/bin/nightscout -> /usr/local/lib/node_modules/oref0/bin/nightscout.sh /usr/local/bin/ns-dedupe-treatments -> /usr/local/lib/node_modules/oref0/bin/ns-dedupe-treatments.sh /usr/local/bin/oref0-pebble -> /usr/local/lib/node_modules/oref0/bin/oref0-pebble.js oref0@0.1.2 /usr/local/lib/node_modules/oref0 ├── timezone@0.0.47 └── share2nightscout-bridge@0.1.5 (request@2.53.0) pi@raspberrypi:~/daneopenaps $
Matthias Granberry
@mgranberry
Jan 07 2016 01:37
@bewest I tried a bit to decode DexCom with GnuRadio and a hacke
Hackrf but I didn't get anywhere
I thought about doing a tx with a wixel and sweeping parameters to decode known text, but never wrote the code to do it
Matthias Granberry
@mgranberry
Jan 07 2016 01:44
There are fsk, gmsk, and msk decoders but getting everything set right can be a pain and there isn't enough info in the data sheet to specify it exactly
I was able to replay transmissions and get the receiver to hear them, though
Scott Leibrand
@scottleibrand
Jan 07 2016 01:52
@schulzedj looks like it successfully installed oref0 version 0.1.2
which is the latest version
schulzedj
@schulzedj
Jan 07 2016 02:13
I refreshed off of my reports (cgm, pump, settings) but when I run pi@raspberrypi:~/daneopenaps $ openaps report invoke enact/suggested.json my output is as follows: determine-basal://text/shell/enact/suggested.json BG data is too old, or clock set incorrectly Thu Dec 31 2015 16:11:18 GMT-0800 (PST) reporting enact/suggested.json Any ides on where it could be pulling this old date?
Scott Leibrand
@scottleibrand
Jan 07 2016 02:15
What is the most recent date in glucose.json and clock.json?
schulzedj
@schulzedj
Jan 07 2016 02:16
I think it was the glucose report which did it...
pi@raspberrypi:~/daneopenaps $ openaps report invoke enact/suggested.json determine-basal://text/shell/enact/suggested.json {"delta":-3,"glucose":121,"avgdelta":-2} {"duration":0,"rate":0,"temp":"absolute"} {"iob":0,"activity":0,"bolusiob":0} {"max_iob":0,"type":"current","dia":3,"current_basal":0.05,"max_daily_basal":0.05,"max_basal":2,"min_bg":113,"max_bg":122,"sens":50} reporting enact/suggested.json
schulzedj
@schulzedj
Jan 07 2016 03:22
How would any of you suggest testing the output? pi@raspberrypi:~/daneopenaps $ openaps use pump set_temp_basal enact/suggested.json { "bg": 112, "temp": "absolute", "snoozeBG": 108, "recieved": true, "rate": 0.0, "reason": "Eventual BG 108<113, no temp, setting -0.33U/hr", "eventualBG": 108, "timestamp": "2016-01-06T19:20:35.270199", "duration": 30, "tick": -1
Shall I eat more sugar and see what it recommends?
Scott Leibrand
@scottleibrand
Jan 07 2016 03:25
Did you let it zero-temp you?
You could let that run and see what it does with next few BG readings...
Do you have a single alias that runs everything?
schulzedj
@schulzedj
Jan 07 2016 03:31
Well I'm not connected to it. So I see what you're saying around it making the zero-temp. Not a single alias yet- that would be adding the cgm, pump, iob, and enact/settings I assume
not connected meaning it's just over in the corner being "tested"
Scott Leibrand
@scottleibrand
Jan 07 2016 03:32
You could manually implement the temp yourself then.
And then let it read the results but not enact.
Yeah, a single alias could run all the aliases you're running manually now each time you refresh everything. Maybe leave the enact out of it for now.
When you're comfortable, move on to manually refreshing everything, manually validate that the recommendation makes sense, and then manually trigger an enact and verify it took.
schulzedj
@schulzedj
Jan 07 2016 04:13
@scottleibrand - ran the set_temp... again and it cancelled the temp basal set originally which is good. I think why the temp was set in the first part was because I issued that command. Maybe this comes back to determining temp basal
Ben West
@bewest
Jan 07 2016 04:14
@mgranberry ah, my brother (maintainer of libvolk), but we failed to see anything obvious
he was in town and we tried taking a look, but needed more time/prep
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:07
is there an option on MM pumps to that makes them beep on the hour? need to find a way to turn it off
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:09
I think if you have "patterns" enabled it does that...
I think...and if the pattern is running...
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:11
patterns were on, but didn't have any setup on this pump, maybe that was it
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:12
You could mess with the time, to like 00:59 and test it and then reset it to the correct time....
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:13
I'll have the pump running on my desk all day tomorrow, so plenty of time to listen for it
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:14
Sounds like fun, LOL!
I'm probably going to finish the first Markov chain Monte Carlo (of 2) that I need to use to work on my AP project tomorrow, #VirtualPancreas. That will be good (and exciting). This is the easier of the 2 but it will be a confidence booster...
But for now I am focusing more on OpenAPS
I just have been feeling better recently. My intravenous immunoglobulin dose (from thousands of blood donors) was doubled and my doctors that have seen me recently have said I look so much better...and that doubling the dose was a good idea...
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:17
yeah, if you get openaps working smoothly, then you can swap out something for determine basal
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:17
It costs tons of money though...every 2 weeks it's more than $10,000 a pop. It makes me sick!
Indeed. That's the eventual goal.
I'm going back to school this spring, so I will have to work really hard.
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:19
running openaps full time might give you a little extra time to work on your project
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:20
I think it will. Cause I will feel better. Diabetes affects everything.
When I got my a1c down to a 5.7, my autoimmune diseases were a lot more manageable
Jason Calabrese
@jasoncalabrese
Jan 07 2016 08:21
yeah, now I pick the nights to stay up instead of D forcing it, at least most of the time
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:22
That's awesome! You of course deserve the break!
I have a plan for dealing with school. Doing as much work as possible comfortably on my phone (and having my textbooks scanned to PDF into an accessible format so it can be used on a screenreader on my phone...so it's more leisurely)...I'm going to take notes on my phone, use like timers to take breaks/work, use spaced repitition apps, etc, etx
There's a good journal article about learning efficiently here: http://www.indiana.edu/~pcl/rgoldsto/courses/dunloskyimprovinglearning.pdf
But yeah, sorry to be off topic
I also have a copy of one of my books read by volunteers....
cause I have a "print related disability..."
diabeticgonewild
@diabeticgonewild
Jan 07 2016 08:29
But I only take 1 course per term due to my medical problems. But it still totals out to being 3 hours or more per day of work. And I have this work to do, and of course my new passion in life—sled hockey!
Scott Leibrand
@scottleibrand
Jan 07 2016 13:44
The hourly beep will also occur if you have a temp basal set. Only way to eliminate that is to switch the pump to vibrate, and then it'll do an hourly vibrate.
Jason Calabrese
@jasoncalabrese
Jan 07 2016 14:50
Never noticed that on the 522, I kind of like the bells for button presses, but the buttons on the 733 are more clicky, so I guess it's getting turned off
Toby Canning
@TC2013
Jan 07 2016 15:17
For heroku, there is an option to install a command line interface for your app on your local machine. I set the time zone using on the app, but the basal display is showing in UTC, which is off by -6:00 from my time (CST). Any ideas for a solution?
Ahh, maybe I need to restart the app...
Tony Zarro
@tzarro
Jan 07 2016 15:18
Had a fantastic night 4 on OpenAPS last night...BG mostly stayed in a range of about 20 points (110-130, while my targets were set to 105-115)...and there was one point where my overnight basals nearly caused a low, but I saw how OpenAPS prevented that from occurring :)
Dragan Maksimovic
@dm61
Jan 07 2016 15:19
:+1:
I've now had the loop running for a week (nighttime only): no lows, no alerts, 100% nighttime in 70-140 range; in fact, almost 100% in 70-120 range :smile:
Toby Canning
@TC2013
Jan 07 2016 15:22
isn't this just awesome?!
Tony Zarro
@tzarro
Jan 07 2016 15:25
very much so :)
Dragan Maksimovic
@dm61
Jan 07 2016 15:32
I've set my pump targets to 90-100, which looks like is still safe during nighttime when bg tends to move slowly, so the OpenAPS loop has a chance to enact corrections
Scott Leibrand
@scottleibrand
Jan 07 2016 15:39
Nice @tzarro and @dm61 !
Peter Miller
@ochenmiller
Jan 07 2016 15:39
I have to say that the latest branch of oref0 is just phenomenal! The full impact has really turned up now that my son is back at school. Recovery from highs, whether post meal or otherwise works really well. Kuddos and thanks.
Chris Oattes
@cjo20
Jan 07 2016 15:40
I was hoping to get my ratios somewhat stable before starting to use oref0, but my BG is really misbehaving at the moment. Might try and get oref0 running to see if it can tame it http://i.imgur.com/ZCuET7M.png
Scott Leibrand
@scottleibrand
Jan 07 2016 15:41
Worth a shot @cjo20
@ochenmiller latest master, or latest dev with meal-assist?
Peter Miller
@ochenmiller
Jan 07 2016 15:42
latest master
Scott Leibrand
@scottleibrand
Jan 07 2016 15:42
cool
Peter Miller
@ochenmiller
Jan 07 2016 15:42
not doing meal assist yet
big difference seems to be that it starts low temping on descent much earlier than the previous code.
though I think I was several revs behind, so this may be old news to many of you
Scott Leibrand
@scottleibrand
Jan 07 2016 15:45
Latest dev low temps even more aggressively when needed, in addition to being more aggressive on rises with meal assist.
Peter Miller
@ochenmiller
Jan 07 2016 15:45
Matt is still half-comping meals, but we've managed to keep our average just a few points above target the last several days.
Scott Leibrand
@scottleibrand
Jan 07 2016 15:46
still need to add an option to configure wtf-assist etc.
Peter Miller
@ochenmiller
Jan 07 2016 15:49
so much do do, yes, but also important to celebrate how far we've all come in such a short time! I've had two conversations in the last week with other young T1s and their parents. They are so excited to hear what we're doing, and want to get involved. openaps is going to be pivotal in moving treatment options forward.
@danamlewis, I haven't forgotten my promises to document our latest rig and build. We just didn't progress as quickly over the last weekend as I'd hoped.
We have a working pocket sized unit, but troubleshooting and developement is a little slower when the target hardware can't be networked and loop at the same time.
We're using the hm-11 to report back to an uploader phone, and to fetch calibration records.
Everything else is self contained
Peter Miller
@ochenmiller
Jan 07 2016 15:56
@oskarpearson, I've been meaning to reach out to you too. I'd like to contribute and participate in your hardware effort. I have a pretty good setup for soldering, so could potentially help out with a North American effort.
@scottleibrand, may look at the latest dev this weekend then!
Scott Leibrand
@scottleibrand
Jan 07 2016 16:00
:-)
Oskar Pearson
@oskarpearson
Jan 07 2016 16:02
@ochenmiller Hey, it'd be great to have people working on things!
Scott Leibrand
@scottleibrand
Jan 07 2016 16:03
by default, if you don't set up meal-assist per https://gist.github.com/scottleibrand/63a8541397378bf9f4b8, it will only do what @jasoncalabrese calls "wtf-assist", where it ignores boluses and lowers target if the deviation (avgDelta - BGI) is above 25 mg/dL per 15m, and minDelta is above 7 I think. In other words, when you have a fast sustained rise due to carbs or a liver dump or something.
Oskar Pearson
@oskarpearson
Jan 07 2016 16:03
pocket-sized sounds good to me :) What hardware are you using?
I'm generally keeping most discussion in the oskarpearson/mmeowlink channel so that we don't overload intend-to-bolus and other chats
Peter Miller
@ochenmiller
Jan 07 2016 16:05
RPi Zero, wixel (receive records from CGM), Carelink, and HM-11 bluetooth to communicate with an uploader phone. Unit operates fine without the phone though. Just no real time data. That said, I have an edison, and would much rather work with the more capable hardware.
I'll move the rest of the convo over the oskarpearson/mmeowlink
I did have a really tough time with the USB on the RPi zero. I think I fried the USB chip on one when I soldered to the bottom of the board.
Wish RPi made USB and power available as easy solder points!
Peter Miller
@ochenmiller
Jan 07 2016 16:32
@scottleibrand, I'll definitely look at wtf-assist too. "wtf". I'm totally sophomoric.
Dana Lewis
@danamlewis
Jan 07 2016 16:40
we all are ;) :)
and a few hours delayed “yay!” for everyone who’s happy with their looping experience! @dm61 @tzarro @ochenmiller :)
Scott Leibrand
@scottleibrand
Jan 07 2016 16:44
I was thinking something like "inferred" meal-assist, but not sure that's gonna stick vs. wtf-assist. ;-)
Rachel Sandlain
@audiefile
Jan 07 2016 16:49
Aside from being more fun, wtf covers more possibilities. Could be a meal or growth spurt or stress or waxing gibbus moon.
Dana Lewis
@danamlewis
Jan 07 2016 16:50
wtf is less characters, so it has that going for it as well
Scott Leibrand
@scottleibrand
Jan 07 2016 16:50
wgm-assist. ;-)
Peter Miller
@ochenmiller
Jan 07 2016 17:07
You could incorporate a Miller family favorite when it comes to carb counting and bolus calculation: the "wag" or Wild A** Guess.
Paul Andrel
@stavlor
Jan 07 2016 17:07
swag ftw
Scott Leibrand
@scottleibrand
Jan 07 2016 17:18
swag-bolus for a meal without entering carbs and you'll likely trigger wtf-assist. :)
Peter Miller
@ochenmiller
Jan 07 2016 17:27
only if wgm is in effect!
Jim Matheson
@jmatheson
Jan 07 2016 19:40
@ps2 > @loudnate had some very interesting ideas about doing some of the wiring through healthkit and taking advantage of diet info input from other food apps. ——> I’ve been playing around with pulling data from myfitnesspal, we should chat if you guys want to move on that front.
Ben West
@bewest
Jan 07 2016 19:43
@jasoncalabrese it beeps when temp basaling
it's kind of weird behavior
the beeping every hour sounds more like bg reminders or something
Jason Calabrese
@jasoncalabrese
Jan 07 2016 19:44
yeah really weird, that changed from x22 to x23? something not right with my 522? I never noticed it there
been using the little MM remote for small corrections as night to avoid waking him up
so need the beeps for that
Ben West
@bewest
Jan 07 2016 19:45
would double check the bg reminders
Dana Lewis
@danamlewis
Jan 07 2016 19:45
no, it’s in the x22 as well @jasoncalabrese (beep/vibrate on the hour if there is a temp active)
it’s how I knew it was midnight on NYE ;) :)
Matthias Granberry
@mgranberry
Jan 07 2016 19:46
@jmatheson the Jawbone API is the easiest to work with, but their app isn't great. FatSecret has a free non-profit/startup version that allows a barcode scanning API
Ben West
@bewest
Jan 07 2016 20:25
ugh, my openaps boxen have been offline
bad site, bad insulin
Dana Lewis
@danamlewis
Jan 07 2016 20:25
:(
Ben West
@bewest
Jan 07 2016 20:25
oy, rough times
changed out site and insulin to no avail
bout to try third insulin replacement
Matthias Granberry
@mgranberry
Jan 07 2016 20:27
that looks like a rough day. Have you tried lots of water to flush ketones? Things stay pretty bad for me until I drink a lot, take massive amounts of insulin, and get the metabolism back under control
Dana Lewis
@danamlewis
Jan 07 2016 20:27
hope you’re not feeling too badly, @bewest
Ben West
@bewest
Jan 07 2016 20:27
yeah, been trying
drinking more water, etc
seems like it might be starting to come down
John Males
@johnmales
Jan 07 2016 20:27
rough day @bewest :(
Ben West
@bewest
Jan 07 2016 20:27
and last night I had to eat something, was hungry somehow
looks like it came down by maybe ketones still need flushing
but
been stuck using 9mm instead of 6mm canulas
Matthias Granberry
@mgranberry
Jan 07 2016 20:28
I take roughly 2x insulin I should need to come down, sometimes more, if there are urine ketones
Ben West
@bewest
Jan 07 2016 20:28
think that makes a big difference
all of them are coming out kinked
Dana Lewis
@danamlewis
Jan 07 2016 20:28
ouch, yea
Ben West
@bewest
Jan 07 2016 20:28
about 2mm worth at the top
Matthias Granberry
@mgranberry
Jan 07 2016 20:29
are the new BD sets on the market yet?
Ben West
@bewest
Jan 07 2016 20:29
would love a 4-5mm insertion
no
just emailed amanda who is listed as the contact :-)
so I'm supposed to be in palo alto in an office, but when bg is this high I hate going out
Matthias Granberry
@mgranberry
Jan 07 2016 20:34
I usually use a syringe when dealing with pump/debugging issues. Fewer variables etc. I then experiment/debug when I'm in a comfortable range.
Ben West
@bewest
Jan 07 2016 20:37
yeah
should have done syringe yesterday
or even still
I really dislike needles though
ah, I was a little shy of 2x, as well
Peter Miller
@ochenmiller
Jan 07 2016 20:44
@bewest , sorry you're having a rough day
Matthias Granberry
@mgranberry
Jan 07 2016 20:53
I test for ketones before doing so. And if they're significantly high 2x might not even be enough, but it's best not to overdo the insulin until the ketones are lower. All sorts of stuff can get out of whack if you go overboard with insulin before the ketone levels drop off.
but that's all such a pain. I hate it when things like that happen. It always takes a while for things to settle down again and nobody ever seems to understand how awful it feels.
Dana Lewis
@danamlewis
Jan 07 2016 21:03
::yes::
Jason Calabrese
@jasoncalabrese
Jan 07 2016 21:08
ugh, sorry @bewest
Martin Haeberli
@mhaeberli
Jan 07 2016 21:11
@bewest another :-( for you
Ali Mazaheri
@amazaheri
Jan 07 2016 21:15
Ugh!
Jim Matheson
@jmatheson
Jan 07 2016 21:22
@mgranberry fatsecret looks interesting. all comes down to who has the broadest and most accurate DB.
Ben West
@bewest
Jan 07 2016 21:40
looks like the new (older) insulin is working-ish
Matthias Granberry
@mgranberry
Jan 07 2016 21:40
myfitnesspal is king but stingy with their API. Fatsecret is good and, if you pay $2500/month, very well-localized. Most of their business model is white label data reselling
Ben West
@bewest
Jan 07 2016 21:40
now to land the sucker nicely in target
Ali Mazaheri
@amazaheri
Jan 07 2016 22:02
:+1:
Jim Matheson
@jmatheson
Jan 07 2016 22:14
yeah, i played a bit pulling them without the API using https://github.com/coddingtonbear/python-myfitnesspal
Ben West
@bewest
Jan 07 2016 22:21
ever looked at https://www.humanapi.co/ ?
Jim Matheson
@jmatheson
Jan 07 2016 23:06
looks vaguely familiar, must have been awhile ago..
Ben West
@bewest
Jan 07 2016 23:07
I kind of like them, they seem relatively unbiased/independent
kind of like pebble, I guess
Jim Matheson
@jmatheson
Jan 07 2016 23:07
this is probably what Gooko is using
Ben West
@bewest
Jan 07 2016 23:07
I suspect most vendors are all developing their own cloud solutions
Jim Matheson
@jmatheson
Jan 07 2016 23:10
Glooko is pullling in weight, steps, etc for overlaying onto BG graphs. It’s somewhat interesting to absorb when looking for trends.
Jason Calabrese
@jasoncalabrese
Jan 07 2016 23:49
2016-01-07 15.47.40-1.jpg
pi zero is tiny
Dana Lewis
@danamlewis
Jan 07 2016 23:50
Wow. Got it working with all components yet?
Jason Calabrese
@jasoncalabrese
Jan 07 2016 23:50
no still need a hub for it
not much bigger than the RileyLink
Scott Leibrand
@scottleibrand
Jan 07 2016 23:58
awesome
Ben West
@bewest
Jan 07 2016 23:59
nifty, looks like the openxshareble driver works
good way to cut cords and stay in offline mode