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

2nd
Jul 2015
Dana Lewis
@danamlewis
Jul 02 2015 01:16
@diabeticgonewild Can you re-share the link to the write up you were working on? My gitter is bonked and I can't find it scrolling through.
diabeticgonewild
@diabeticgonewild
Jul 02 2015 01:18
K
Dana Lewis
@danamlewis
Jul 02 2015 01:21
Awesome, thanks @diabeticgonewild !
has anyone else looked through it yet?
diabeticgonewild
@diabeticgonewild
Jul 02 2015 01:30
Nope.
Jason Calabrese
@jasoncalabrese
Jul 02 2015 01:36
I looked over it, but I haven't been that interested in using the carelink stick because of the range issue and figure getting the web monitor in shape is probably a better place for me to work now
can't wait for my rileylink
Dana Lewis
@danamlewis
Jul 02 2015 01:39
Do we have an eta for those? I can't remember.
Toby Canning
@TC2013
Jul 02 2015 01:43
@danamlewis There has been a delay. New PCBs have been ordered and should arrive any day now. Jason Lopez is really fast at building, so maybe 2 weeks. I will let you all know more when Jason has a better idea.
Has anyone figured out how to correctly read extended boluses from the BW history? Geoff ran into some challenges and recommended I check here first.
Dana Lewis
@danamlewis
Jul 02 2015 01:45
Cool, thanks. Wedding spreadsheets have blurred all other details for me :)
Toby Canning
@TC2013
Jul 02 2015 01:46
When is the wedding?
Dana Lewis
@danamlewis
Jul 02 2015 01:46
August 1!
Toby Canning
@TC2013
Jul 02 2015 01:46
Holy smcholly!!!
Dana Lewis
@danamlewis
Jul 02 2015 01:46
Right?!
Toby Canning
@TC2013
Jul 02 2015 01:46
schmoley
right!
We are having our 20th anniversary this year :)
Dana Lewis
@danamlewis
Jul 02 2015 01:47
Wow - congrats!! :) that's awesome. Big plans to celebrate?
Toby Canning
@TC2013
Jul 02 2015 01:47
HA!
Right, umm,...
Yes, romance has survived...
ummm
We talked about going to Europe, but we are buying a house this summer and need new cars... so...
Dana Lewis
@danamlewis
Jul 02 2015 01:49
Next year? And then you'll have a flawless APS and can enjoy your trip even more? ;)
Toby Canning
@TC2013
Jul 02 2015 01:50
It has already been so nice, even with the carelink
Can't wait for the rileylink
Dana Lewis
@danamlewis
Jul 02 2015 01:51
What i want next is a personal drone to fly around and carry all of it for me so I never have to worry about staying in range. For it to follow me to work, etc :)
Toby Canning
@TC2013
Jul 02 2015 01:52
I think you should just go for the cure then!
Dana Lewis
@danamlewis
Jul 02 2015 01:53
Haha maybe.
Toby Canning
@TC2013
Jul 02 2015 01:54
When you get sick and basal needs go up, do you have a "program" that allow you to run a temp within the APS or do you have to change to another profile?
Dana Lewis
@danamlewis
Jul 02 2015 01:55
I use sensitivity and resistance modes, which I set manually, but would love for the system to alarm and suggest when I've been resistant and need it (and/or just auto adjust to those settings)
Toby Canning
@TC2013
Jul 02 2015 01:56
That's a brilliant idea!!!
I'm adding that after the RileyLink
Dana Lewis
@danamlewis
Jul 02 2015 01:57
Ya, should be doable along the lines of "if predictions haven't been working quite right (off by x consistently over y time period, switch to resistance/sensitivity mode". Same for swapping back or at least producing alerts to change the scenarios
Toby Canning
@TC2013
Jul 02 2015 01:58
Yes, that's just what I was thinking.
Dana Lewis
@danamlewis
Jul 02 2015 01:58
Since I do those modes by a manual button push on DIYPS, reduces a lot of burden to remember to do more throughout the day if I'm not looping, and helps me not rage bolus as much ;) and get too much bad stacking
Toby Canning
@TC2013
Jul 02 2015 01:58
Do you have an equation for figuring out the sensitivity change?
Dana Lewis
@danamlewis
Jul 02 2015 01:58
Not sure if parents ever rage bolus like we PWDs do :) though, but still love the features. Also good for lots of exercise.
You mean when to turn it on, or what the adjustments should be?
Toby Canning
@TC2013
Jul 02 2015 01:59
Not when to turn on, but yes, the adjustments based on APS temp basal failing to bring BG down
Dana Lewis
@danamlewis
Jul 02 2015 01:59
Mine is 40, so it switches to 32 and 38 respectively, but I can't remember if we made up a formula, lots of trial and error.
Toby Canning
@TC2013
Jul 02 2015 02:00
Awesome, Christian's is 40 too, so I have a place to start
Dana Lewis
@danamlewis
Jul 02 2015 02:00
Cool! Easy numbers :)
Toby Canning
@TC2013
Jul 02 2015 02:01
Thanks for the tips, have a good night! :)
Dana Lewis
@danamlewis
Jul 02 2015 02:01
You too!
Darrell Wright
@beached
Jul 02 2015 03:03
It's not rage bolus, it's a future trip to the fridge
Dana Lewis
@danamlewis
Jul 02 2015 03:04
Ha!! I like the way you think:)
Scott Leibrand
@scottleibrand
Jul 02 2015 03:08
32 and 48. :-)
Darrell Wright
@beached
Jul 02 2015 03:19
I have a thing now where if I hit an extreme high and I know I have IoB I will just go for a run. 20-30min and I am normal again. Waiting 4-5hrs to not have that crappy skin too tight hang over feeling of high blood sugar go away is too long. So no rage bolus
Dana Lewis
@danamlewis
Jul 02 2015 03:23
Yea. My new office has treadmill desks, and I've been experimenting with using them about an hour before lunch to simulate eating soon mode, and afterward if I goof my lunch bolus
Darrell Wright
@beached
Jul 02 2015 03:35
I've over bolus'd at lunch often enough because I would have a training run at 5:30, so bolus at noon and take extra so that I can have a snack later and if I am off I have some breathing room. Makes the lunch postprandial lower too.
jelous of the treadmill desk, about the only way I would ever use one I think.
Matthias Granberry
@mgranberry
Jul 02 2015 03:43
I work at the top of 26 flights of stairs. Makes managing post lunch bgs pretty simple
Darrell Wright
@beached
Jul 02 2015 03:47
There is something gratifying about abstracting a microcontroller away. Really had to go to first principals on this watch I am making to listen to the medtronic sensor/glucometre and display a glucose value.
Jason Calabrese
@jasoncalabrese
Jul 02 2015 07:14
@scottleibrand in your openaps pseudocode gist the snooze is on for the units of insulin, have you thought about the snooze for correction carbs
I'm thinking about mostly for alarms now, so how long to snooze after giving some g's
Scott Leibrand
@scottleibrand
Jul 02 2015 14:37
OpenAPS would never know about rescue carbs.
There's no way to enter carbs on the pump without doing a bolus wizard and bolusing for them.
If you're low and give rescue carbs, it will continue to high-temp until you start to rise,?then cancel temp. If you rise too much, it will start high-temping at that point. DIYPS starts high-temping when >80 based on assuming 2/3 of carbs will actually hit, but OpenAPS has to wait until it sees their effect. If you want to bolus earlier, that'd need to be manual. (And a manual bolus would not prevent it from high-temping you if that turns out to be insufficient.)
Paul Andrel
@stavlor
Jul 02 2015 14:42
@scottleibrand not sure if thats something you could get from capture event
Scott Leibrand
@scottleibrand
Jul 02 2015 14:43
?
What is a capture event?
Paul Andrel
@stavlor
Jul 02 2015 14:43
There is the capture event option under medtronic pumps if you have it enabled
In there there is an option for a meal marker but not entirely sure how to get the info from it, but would allow you to get the carbs into the pump in some form figuring out how to get that info out of the pump would be the interesting thing
Utilities/Capture Option to turn it on on the pump i think
Scott Leibrand
@scottleibrand
Jul 02 2015 14:51
Cool. Any volunteers to play with that and see if it allows carb reporting in a way decocare could capture?
Matthias Granberry
@mgranberry
Jul 02 2015 14:51
dexcoms allow carb reporting
the command works over share. I think the python script even captures it.
Scott Leibrand
@scottleibrand
Jul 02 2015 15:06
That might be an option then. OpenAPS design also assumes that people may not bother to enter carbs, even with bolus wizard, and that it needs to do the right thing anyway. But for users willing to do so, no reason we couldn't extend it to actually use the carbs the way #DIYPS closed loop does.
Jason Calabrese
@jasoncalabrese
Jul 02 2015 16:04
I like like the idea of doing the right thing if there isn't complete info, but also like how with diyps entering the info is the snooze
Bert Berla
@thefutureofamerica
Jul 02 2015 16:14
So, I've been out of the loop for a couple months now due to some major, but happy life changes - I was just looking at Scott's code on openaps-js. Is this functional and available now?
Ben West
@bewest
Jul 02 2015 18:40
loudnate just added decoding mealmarkers
Paul Andrel
@stavlor
Jul 02 2015 18:41
@bewest ah, nice
Jason Calabrese
@jasoncalabrese
Jul 02 2015 18:49
cool
think for meal markers we really need a watch app
better than messing with the pump or phone
I think you'd borrow from carbs entered into the BW and pull them forward to the actual time
Jason Calabrese
@jasoncalabrese
Jul 02 2015 18:56
been thinking of doing that for the careportal
Dana Lewis
@danamlewis
Jul 02 2015 19:08
Yes. Easy bolus and easy carb entry would be awesome!
I mocked up a prototype (easy) but couldn't get it to submit to care portal. But would love that and think a lot of people would use it
Jason Calabrese
@jasoncalabrese
Jul 02 2015 19:10
I'm thinking the careportal needs it's own api, not the basic treatment api
something would know how to handle temps, combos, carb shifting (idea from above)
and in the chart we need to do some grouping
to merge manual and pump
Dana Lewis
@danamlewis
Jul 02 2015 19:52
Yea. And to handle duplicates from auto upload from the rileylink or Carelink that match manual entries
Matthias Granberry
@mgranberry
Jul 02 2015 19:54
and extend boluses
Nathan Racklyeft
@loudnate
Jul 02 2015 20:24
@scottleibrand @mgranberry the mmhistorytools plugin parses JournalEntryMealMarker records. We recently added them to decocare. It also handles carbs from BolusWizard records, and de-duplicates them, which is an unfortunate occurrence appearing even in the CareLink CSV too.
Jason Calabrese
@jasoncalabrese
Jul 02 2015 20:44
I'd really like to add extended boluses to the careportal, main reason I haven't yet is that I think we'd need to match the way it's done on the different pumps
I'm used to using the combo bolus with the Ping, but know there are multiple options with mdt
Matthias Granberry
@mgranberry
Jul 02 2015 20:58
I think it should be broken out into separate portions and handled individually. Every pump does it differently. Tandem made the obnoxious choice to make it a total and extend some portion out, which makes it hard to calculate it based on nutrition breakdown and enter unit amounts
Matthias Granberry
@mgranberry
Jul 02 2015 22:35
there isn't any physiological difference between an extended bolus and a temp basal, so make it so that as much as possible can be shared between the two.
Ben West
@bewest
Jul 02 2015 23:17
@danamlewis would love to see your mockup
most pumps consider the records to be an operational history of which parts are doing things and why, it's for traceability/auditing/liability/FDA/lawsuits
you can always reconstruct history of therapy (information) given the operational records (raw data)
but if you only get therapy records, you can't reconstruct why some part in the ump did something
so the operations/methods they perform are all patented, so they are all slightly different
Matthias Granberry
@mgranberry
Jul 02 2015 23:20
I'm all for storing the pump logs at a low level, but working with it is a pain in the ass if you have to implement the same high level logic 4 times in an application.
Ben West
@bewest
Jul 02 2015 23:20
yes
or get it wrong in multiple apps/languages
Matthias Granberry
@mgranberry
Jul 02 2015 23:25
I'm also of the opinion that it's a mistake to include the code to munge it into a therapy log in the driver itself. There is a lot of common stuff that should be done in a library on top of the drivers.
Jason Calabrese
@jasoncalabrese
Jul 02 2015 23:29
yeah, nice to be able to rerun the munging
Matthias Granberry
@mgranberry
Jul 02 2015 23:29
nice to be able to test the munging too
Jason Calabrese
@jasoncalabrese
Jul 02 2015 23:29
the mqtt upload basicly works that way
doesn't do the processing to merge the sensor and egv records
and we keep the full download
Matthias Granberry
@mgranberry
Jul 02 2015 23:33
it would be nice to re-publish processed data over mqtt too, for the nightwatches of the world
Ben West
@bewest
Jul 02 2015 23:33
you can just subscribe
to mqtt
will work
the mqtt server sends the data to all clents
the c-r-m server is just a client
it's bidirectional, so uploader/server/other clients can all "chat" over mqtt
Jason Calabrese
@jasoncalabrese
Jul 02 2015 23:35
yeah, I thought about the re-publishing
Ben West
@bewest
Jul 02 2015 23:35
would be nice to implement cursors
no need to republish on mqtt
Matthias Granberry
@mgranberry
Jul 02 2015 23:35
but with unmerged records. An upsert will merge them easily enough, but that logic is potentially getting repeated
Jason Calabrese
@jasoncalabrese
Jul 02 2015 23:36
yeah showing raw on a watch should NOT require doing the matching
other things can be published from the server too
iob,cob, etc
Ben West
@bewest
Jul 02 2015 23:37
yeah
want cursors for message passing on both ends
use that for true gap sync
Scott Leibrand
@scottleibrand
Jul 02 2015 23:40
openaps-js is usable but untested.
Probably still some bugs. Ali found one already.
Matthias Granberry
@mgranberry
Jul 02 2015 23:40
when writing a client, I don't care about what the differences are between a dexcom and a medtronic sensor or pump events vs. manually entered data from an MDI patient. I just want therapy data to act upon. The MQTT stream only exposed low-level data last I checked. It would be handy to have a processed stream to use too.
Scott Leibrand
@scottleibrand
Jul 02 2015 23:40
just don't use it for real life insulin delivery. :-)
@thefutureofamerica ^^