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

19th
Jun 2015
Ben West
@bewest
Jun 19 2015 00:18
@amazaheri do you have a cron job set up? it sounds like there is a cron job using your stick automatically
@amazaheri the failure you showed me would also fail the stick test: python -m decocare.stick $(python -m decocare.scan) would fail
basically it's not responding to any stick commands, if issue is temporary like that, I wonder if @scottleibrand set you up with cron job or something
diabeticgonewild
@diabeticgonewild
Jun 19 2015 00:50
There are a lot of good references on cron jobs. There are a lot of unique commands in cron including @reboot which you can use to issue commands to the pump whenever the Pi is rebooted, which is a good safety measure
Ben West
@bewest
Jun 19 2015 01:03
@amazaheri curious if crontab -l will print anything
diabeticgonewild
@diabeticgonewild
Jun 19 2015 01:23
FML GI problems are out of control, courtesy of not having adequate medicine...
Dana Lewis
@danamlewis
Jun 19 2015 02:16
Good timing @bewest :)
Ben West
@bewest
Jun 19 2015 03:02
:-)
diabeticgonewild
@diabeticgonewild
Jun 19 2015 03:02
Yeah, I just checked. You can't get the Medtronic 530G pump if you have Medicare as your primary insurance, even if you have completely private secondary insurance, unless you pay out of pocket which will set you back around $7000. There is no code to be billed to Medicare (due to "regulations"), cause basically in the end it costs Medicare more money. Medicare is cheap. Very cheap. So, since there is no Medicare billing code, there is no way for Medicare, as your primary insurance, to deny the claim, so there's no explaination of benefits that you can provide to the secondary insurance for them to take up the tab and pay for it.
Like there are all of these weird rules. Like I technically can't get more than "3 strips per day" taking insulin, unless there is a "justifiable cause", and then I have to provide all of my BG test records to my endo consistently cause the US government "audits" my endo medical record, even several times. Yet, every single time I need a new insulin pump, I have to provide a written record with 30 days of blood sugars, testing a minimum of 4x/day. If I have ONE DAY that I test less than 4 times, no pump
So, if you're on a pump, you end up paying out of pocket for strips unless your endo basically writes those idiots (yes, my endo calls them that at every single appointment! :D ) explaining why you need those strips in your medical record (every single appointment that you have to remind them)
diabeticgonewild
@diabeticgonewild
Jun 19 2015 03:09
But, I would say that Medicare works, despite all of the crazy rules and hassles to it. I definitely can't complain. But, this info is good to know. Disability can really happen to anyone at any time.
Dana Lewis
@danamlewis
Jun 19 2015 03:16
@diabeticgonewild you should blog a lot of this stuff :). That way people can stumble across this info who are looking for tips (and support), vs here where people won't have a chance to see it.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 03:16
Sorry. Spamming the room. I will work on a blog on Wordpress.
And yes, I should. Somebody else recommended that to me awhile back. :D !
Dana Lewis
@danamlewis
Jun 19 2015 03:24
:)
diabeticgonewild
@diabeticgonewild
Jun 19 2015 03:24
I'm pretty much done writing up the hardware part of the setup for the #OpenAPS stuff, although I have to make sure it logically makes sense. Link: https://gist.github.com/diabeticgonewild/5a2755fc031b68f06ba6
I need an intro too, but that I can come up with later.
Yeah, so like what posted to the Gitter chat, that's not the complete version, so you will have to click on the link.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 04:14
OK I found an awesome article!!!!! It's not open access though! If anyone wants it, PM me! It's perfect for missed boluses! Brilliant idea!
Efficacy of dual-hormone artificial pancreas to alleviate the carbohydrate-counting burden of type 1 diabetes: A randomized crossover trial
The article came out 8 days ago!
diabeticgonewild
@diabeticgonewild
Jun 19 2015 04:25
Also, I don't know the credibility of this article, but it looks good. A group of researchers derived a way to deal with diurnal variation for diabetes, which can be applied to the artificial pancreas. (Remember that with #VirtualPancreas there are 3 variables with diurnal variation--that have no units--used in Bayesian Estimation in Markov chain Monte Carlo methods, using Metropolis-Hastings algorithms with random walks, specifically intrinsic Gaussian conditional autoregression)
Title of article: Investigation of stability in a two-delay model of the ultradian oscillations in glucose–insulin regulation (This is so exciting!)
Yeah so it would eliminate 2 out of 3 of those variables, at least with respect to missing units and stuff. The food related variable would not be eliminated based on that article, given if it's credible enough to be used and is verifiable.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 04:48
If I can get very good at programming systems of differential equations in MATLAB and Python, life will be super super good.
Scott Leibrand
@scottleibrand
Jun 19 2015 06:15
I don't recall setting @amazaheri up with a cron job, but I like your additional stick/busy check. @bewest can you PR that into my repo as well?
also got the Jennings up to the same point Ali is, so they might start editing JavaScript soon. :-)
diabeticgonewild
@diabeticgonewild
Jun 19 2015 06:17
:D !
Scott Leibrand
@scottleibrand
Jun 19 2015 06:17
(and Krista said they'd join this room too.) :-)
diabeticgonewild
@diabeticgonewild
Jun 19 2015 06:17
Another female :D !
Scott Leibrand
@scottleibrand
Jun 19 2015 06:18
The other two are Jen, and Elliot (good gender ratio there too) :-)
don't think either of them are up to editing code yet, but they're looping manually...
diabeticgonewild
@diabeticgonewild
Jun 19 2015 06:20
yeah I need to start working hands on with the Pi, but got to finish up this writeup. If we can get some people on board over this writeup, if it's presumably good enough, it would be good. Also a YouTube video of something similar, like tuts would be good, for those that don't like to read...but that is kind of an "out there" idea for this project.
Scott Leibrand
@scottleibrand
Jun 19 2015 06:22
Yeah. Once you finish the write up, and are ready to start working with the openaps-dev code, LMK and I can walk you through it on a hangout like I did Ali.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 06:22
Got it. Will do.
Thanks
Scott Leibrand
@scottleibrand
Jun 19 2015 06:24
Same offer for anyone else who's got their Pi set up and running with the openaps toolset and a test pump.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 06:29
@gcastellanos is, but he isn't here all of the time. I will text him tomorrow and see if he's interested.
He knows JS and it's extensions backwards and forwards.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 07:27
I think I'm halfway done with the writeup, which is good. Of course, even when you're done with it, it's always work in progress because you want to improve it. Check out the gist link if you want to read it https://gist.github.com/diabeticgonewild/5a2755fc031b68f06ba6
It's very much work in progress though.
I am recommending a "cableless" AKA "headless" install in case people do not have a USB keyboard or an HDMI display to use.
The setup allows you to use Windows/Mac OS X/Linux/iOS/Android to SSH in!
Fokko Driesprong
@Fokko
Jun 19 2015 08:33
Cool, @diabeticgonewild, will look into the article today!
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:34
Thanks!
Fokko Driesprong
@Fokko
Jun 19 2015 08:34
it is 10 in the morning here. Just woke up.
How did you find the article?
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:35
What article specifically?
Im
Fokko Driesprong
@Fokko
Jun 19 2015 08:36
Would like to have some trigger on my university publishing search-engine, but the software they are using is ancient
Investigation of stability in a two-delay model of the ultradian oscillations in glucose–insulin regulation
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:36
a student and I have access to a ton of research databases
Fokko Driesprong
@Fokko
Jun 19 2015 08:36
Yea, me too here.
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:36
My school uses "library one search"
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:37
I was searching for "artificial pancreas" on science direct
Fokko Driesprong
@Fokko
Jun 19 2015 08:37
Cool
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:37
I sometimes have to search the big databases independently cause library one search doesn't pick up everything
Fokko Driesprong
@Fokko
Jun 19 2015 08:38
Hehe, same here, relevancy is not taken into account when sorting and presenting the articles
diabeticgonewild
@diabeticgonewild
Jun 19 2015 08:40
I search by date when looking through stuff and I refine my searches based on what I get listed based on date. I basically have scoured (scavenged or searched extensively) the databases so it's best to look for new stuff
Matthias Granberry
@mgranberry
Jun 19 2015 13:17
@TC2013 the lite is smaller and has the light. Supposedly the freedom light is more accurate. I use both and don't notice a practical difference.
Matthias Granberry
@mgranberry
Jun 19 2015 13:22
I do some calibration checks and the difference between readings on the 2 is always <3 if I use good testing technique.
< 3
Jason Calabrese
@jasoncalabrese
Jun 19 2015 14:54
ordered my cc-debugger
Ali Mazaheri
@amazaheri
Jun 19 2015 15:43
@bewest applied the changes to .sh file, been running through out the night will look at the logs and get back to you.
Toby Canning
@TC2013
Jun 19 2015 16:11
@mgranberry Thanks, that is just what I was looking for!
Nathan Racklyeft
@loudnate
Jun 19 2015 17:05
@jasoncalabrese from TI directly?
Mikyla
@divishinating
Jun 19 2015 18:33
Does anyone know if a 2008 723 pump might work for this project? I'm contemplating ordering The Rasperry Pi but I'm concerned that the pump is too new.
Paul Andrel
@stavlor
Jun 19 2015 18:48
@divishinating Whats the software version?
Jason Calabrese
@jasoncalabrese
Jun 19 2015 18:55
@loudnate yeah, used the like @Fokko posted (in the rileylink room) http://www.ti.com/tool/CC-DEBUGGER?keyMatch=CC-DEBUGGER&tisearch=Search-EN-Products
Mikyla
@divishinating
Jun 19 2015 19:13
@stavlor version 2.3
Paul Andrel
@stavlor
Jun 19 2015 19:14
@divishinating I think you may be good with 2.3 i don't think anything newer that 2.4 will work but 2.3 should be good i think
Mikyla
@divishinating
Jun 19 2015 19:28
@stavlor Thanks!!!!!
Ben West
@bewest
Jun 19 2015 21:36
https://github.com/bewest/openaps-example/tree/master/monitor I aliased openaps get to run all the monitoring reports (for pump)
Ali Mazaheri
@amazaheri
Jun 19 2015 21:49
Nice!
Ben West
@bewest
Jun 19 2015 21:53
puts it in subdirectory
figure, we'll do subdirectory for different phases
put bunch of interstitial results in analysis subdir, put, enact results in enacted subdirectory
Ali Mazaheri
@amazaheri
Jun 19 2015 21:55
:+1:
Ben West
@bewest
Jun 19 2015 21:56
could use some help mapping the stuff the pump gives us to the stuff diyps expects
looks like you did something to import profile, rather than hard code it
Ali Mazaheri
@amazaheri
Jun 19 2015 21:56
yeah
Ben West
@bewest
Jun 19 2015 21:56
I think what diyps considers profile is actually 2, 3 things from pump
Ali Mazaheri
@amazaheri
Jun 19 2015 21:56
everything except carb/hr
Ben West
@bewest
Jun 19 2015 21:57
yeah, carb-ratios.json is separate
so is insulin-sensitivities.json
so is bg-targets.json
Ali Mazaheri
@amazaheri
Jun 19 2015 21:58
great to put the JS logic or similar into an OpenAPS extension
Pump get_profile
Ben West
@bewest
Jun 19 2015 21:58
yeah, what should be in there
and also, getting the condensed treatment summaries out
Ali Mazaheri
@amazaheri
Jun 19 2015 21:59
yeah
Ben West
@bewest
Jun 19 2015 21:59
so munging data to get "uses of insulin" from suspend/resume/bolus/temp-basals/basal-schedule
so I need some more help organizing these concepts... what are they, how are they defined
we need this to be part of the spec
Ali Mazaheri
@amazaheri
Jun 19 2015 22:00
cool! I am in
brb
Ben West
@bewest
Jun 19 2015 22:03
@diabeticgonewild the gist is looking pretty good, fwiw, markdown is the same as what you use here, so mostly plain text... if you rename the file so it ends with .md, github will render it as markdown for you, for getting it into official docs, you might try forking https://github.com/openaps/docs/tree/master/getting-started and adding/porting your writeup in there?
I've heard this is good for editing http://marked2app.com/, but I just use vim for everything so can't help too much with recommendations, but can help with pointers, idiomatic use
diabeticgonewild
@diabeticgonewild
Jun 19 2015 22:06
Thanks so much @bewest ! I will take your advice!
Paul Andrel
@stavlor
Jun 19 2015 22:26
Vi Improved for the win
Ben West
@bewest
Jun 19 2015 22:29
so, for tab completion, I did this to get it to work: sudo activate-global-python-argcomplete
then I logged out, and logged back in
now I can tab complete on the pi
erg... not quite working right though
weird, it works on my machine
oh, no it does work
hehehe
diabeticgonewild
@diabeticgonewild
Jun 19 2015 22:37
What do you mean by tab completion. n00b here
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:04
Yeah I suck. I slept all day. Probably the new med but not in much pain anymore...
Need to finish up the write up by the end of the weekend!
Ben West
@bewest
Jun 19 2015 23:17
tab completion is when you start typing, and hit tab, and the computer gives you suggestions for possible completions, or if there's only one matching, it will automatically type the rest of the match for you
so I typically only type opena[tab] u[tab] p[tab] read_[tabtab]
Paul Andrel
@stavlor
Jun 19 2015 23:18
its quite helpful
Ben West
@bewest
Jun 19 2015 23:18
makes it so I don't have to learn exactly what to type
I just get kind of close, and can actually learn what the options are as I'm typing the command
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:19
That's pretty cool!
Ben West
@bewest
Jun 19 2015 23:21
oh dear, tried installing python-dev and python-scipy and it filled disk and memory
Paul Andrel
@stavlor
Jun 19 2015 23:21
heh
Wonder what interesting news will come out of DockerCon next week
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:27
Oh no!
You could always use my Ubuntu install which has all of the cool Python stuff but it requires a 16 GB SD card
Ben West
@bewest
Jun 19 2015 23:28
this is tiny card
that's why
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:28
Also you need the TPLink WiFi adapter
Ben West
@bewest
Jun 19 2015 23:28
it's 3G
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:28
That sucks!
Paul Andrel
@stavlor
Jun 19 2015 23:28
ah, ouch
Ben West
@bewest
Jun 19 2015 23:28
probably should remove bunch of packages anyway
remove all gui stuff probably, ditch X, omxplayer, lots of others, squeak
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:29
Or go to the consumer electronics store
Yeah you definitely don't want any GUI stuff on your Pi for this project
Ben West
@bewest
Jun 19 2015 23:30
oy, dpkg is in corrupted state and fixing it runs out of disk/memory
Paul Andrel
@stavlor
Jun 19 2015 23:31
yikes, not fun, have had that happen a few times
Ben West
@bewest
Jun 19 2015 23:31
was hoping to find some bad tmp file somewhere
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:31
Yeah that sucks
Ben West
@bewest
Jun 19 2015 23:37
and we're back
first to go is minecraft
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:39
LMAO. You play video games?! I play like once a month at most. Have a PS4
Ben West
@bewest
Jun 19 2015 23:39
no, it's on the pi by default
so it's first to be removed
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:40
Oh...
Paul Andrel
@stavlor
Jun 19 2015 23:40
heh
Ben West
@bewest
Jun 19 2015 23:40
I get addicted to games and it's a problem
supercollider is next
Paul Andrel
@stavlor
Jun 19 2015 23:41
This system is pretty much built for games too many to choose from though
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:41
That sucks. I find programming more stimulating to me than video games, which is good, especially as somebody with ADHD (Hahaha I will openly admit I have it)
Ben West
@bewest
Jun 19 2015 23:41
lot of interesting stuff yeah
nice, it's removing wolfram also, bet that's sizeable
dpkg-query -l lists installed packages, fwiw
diabeticgonewild
@diabeticgonewild
Jun 19 2015 23:43
Good to know
Paul Andrel
@stavlor
Jun 19 2015 23:43
I do all that stuff on a different system, this one is the only windows system in the house all the others are running various *nix based