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

25th
Feb 2016
Dana Lewis
@danamlewis
Feb 25 2016 00:16
@inform880 if you think there’s a more clear way to articulate that, would love for you to submit edits (via a pull request, or PR) to the docs once you work your way through that step!
@dm61 definitely adding the << and >> etc links to the next phase of documention when it’s built out to make inter-section navigating more easy!
William Fallon
@inform880
Feb 25 2016 00:28
@danamlewis Thanks for the suggestion I have no problem doing that
Dana Lewis
@danamlewis
Feb 25 2016 00:28
excellent, thanks! that’s how we make the docs better :)
live4sw
@live4sw
Feb 25 2016 01:45
Quick question - if I've created a new openaps instance in a new folder, it doesn't cause any trouble to completely remove the folder with my prior instance, right? 99.9% sure but just making sure
Scott Leibrand
@scottleibrand
Feb 25 2016 01:47
shouldn't. I usually mv it to /tmp/, which will get cleaned up on next reboot
live4sw
@live4sw
Feb 25 2016 01:48
makes sense, thanks
Jason Calabrese
@jasoncalabrese
Feb 25 2016 01:50
just found out that running git gc in my openaps repo really reduced the number of inodes that we used
went from 73% used to 6%
but on 2nd rig, ran out of space in the process, so be careful
Scott Leibrand
@scottleibrand
Feb 25 2016 01:57
nice. maybe should cron that
Jason Calabrese
@jasoncalabrese
Feb 25 2016 01:59
if you wait to long you won't have the space to run it
I was thinking I'd have a cron to cycle repos
but maybe I won't need to
Scott Leibrand
@scottleibrand
Feb 25 2016 02:05
does git gc lock the repo while it's running?
doesn't look like it.
rafaelmatuk
@rafaelmatuk
Feb 25 2016 02:16
hi everyone - I have a quick, dumb question: I am trying to recover from some GIT corruption using oref0-fix-git-corruption.sh. However, I do not seem to be able to find it - can someone share the command line to execute the script please?
Scott Leibrand
@scottleibrand
Feb 25 2016 02:24
@jasoncalabrese our bedside Pi was only at 178K (38%) inodes used, and only dropped to 140K (30%)
@rafaelmatuk:
$ which oref0-fix-git-corruption
/usr/local/bin/oref0-fix-git-corruption
@rafaelmatuk looks like it's not in the master branch of oref0, just dev
should be able to just download it from https://github.com/openaps/oref0/blob/dev/bin/oref0-fix-git-corruption.sh if you don't want to clone the repo
wget https://raw.githubusercontent.com/openaps/oref0/dev/bin/oref0-fix-git-corruption.sh
chmod +x ./oref0-fix-git-corruption.sh
./oref0-fix-git-corruption.sh
rafaelmatuk
@rafaelmatuk
Feb 25 2016 02:34
thanks! got it already and fixed my corruption...thanks again
Jason Calabrese
@jasoncalabrese
Feb 25 2016 02:50
I was expecting it to lock the repo
Worked great on 1, on the 2nd I was already low and had to RM .git
Scott Leibrand
@scottleibrand
Feb 25 2016 03:08
Wonder what you're doing to use up all your inodes. I've never had mine use them up.
Ben West
@bewest
Feb 25 2016 03:16
yeah, he seems to generate more commits somehow, I think, not sure
or somehow convincing my python-git stuff to do lot of work perhaps
during report invocation, for each report in reports, it does git add $report
git add itself is a "high level command/app" of git which does number of different things
if the report has no diff, the git commit at the end of the process basically ignores it
but it could be that all those spurious adds are doing extra work on the index/cache or other git internals
Jason Calabrese
@jasoncalabrese
Feb 25 2016 04:01
On a 3rd rig I went from 45% to 6%
Scott Leibrand
@scottleibrand
Feb 25 2016 04:36
Edison or Pi?
Jim Matheson
@jmatheson
Feb 25 2016 06:42
i ran git gc the other day and it did not save much for me.
Ben West
@bewest
Feb 25 2016 09:55
I think there'd be a cumulative effect
where every other day is not so big a change
but once a week is a much much bigger change
and once a month might be a much much much bigger change
jason's evidence suggests that openaps is churning lot of inodes, which fits with the evidence of git corruption
some debugger may treat these as two separate issues but my spidy sense is telling me they are linked
as in a PM may treat this as separate bugs (and they may well be!) but my intuition is there is a linkage
this is the kind of thing where agile falls down and FOSS methods win, btw
we rely on as much reproducible data as possible to make the bug shallow
with enough eyes, even deep bugs are shallow, to paraphrase
Ben West
@bewest
Feb 25 2016 10:02
I took up MS yourfirstpr challenge/thing and was really impressed
it's definitely not faster using FOSS methods, but it "wears well"
Colin Lennon
@colinlennon
Feb 25 2016 10:08
@oskarpearson Hi Oskar. Thanks, yeah I might still go down the Edison+TI/RL route. I've just order at Medtronic 722 so I think I'll start with an RPi + Carelink setup then work on something more portable! I'm in Glasgow, but in London quite often with work so if there are any London meetups in future I can try and join you all.
Oskar Pearson
@oskarpearson
Feb 25 2016 10:12
@colinlennon Sounds good
Where did you buy the 722 from? We're concerned our pump's going to die on us (especially since something seems dodgy in our setup - trying to figure out if it's insulin or the pump or the sites), so we're looking for a spare / replacement
Siobhan is actually going to be somewhere near Glasgow in the next few weeks, I think
Colin Lennon
@colinlennon
Feb 25 2016 10:14
@ochenmiller thanks. Still weighing up the options but I really like your approach. I'm getting the impression that the RPi is currently more stable than the Edison for most people.
@oskarpearson I got it from medwow.com but won't arrive until next week, it's being shipped from the US. The person I bought from seems to have a whole range pumps and related components for sale. If the transaction all goes smoothly I can point you in their direction. I'm actually not on a pump at the moment, I'm on basal/bolus injections, so I'll need to take a few weeks to get used to the pump, set basal rates etc. before diving into OpenAPS!
Ben West
@bewest
Feb 25 2016 10:18
that's my impression too
if you want the thing with most hours and docs behind it, its pi2
there is tremendous pressure to make it smaller, which drives burden/maintenance
the edison is obvious next step in shrinking pi2 with all same software, but it's a different build
with it's own quirks
openaps is like the android of artificial pancreas: be together, not the same
that's the core of precision medicine, is it not?
together healthy, altogether different treatments
Colin Lennon
@colinlennon
Feb 25 2016 10:23
absolutely! i love the flexibility of being able to pick the parts which work best for you - which pump, which CGM, various hardware options.
Oskar Pearson
@oskarpearson
Feb 25 2016 10:28
I've put in requests on medwow about 5 or 6 pumps, but haven't got a reply to even one of the messages yet.
Ben West
@bewest
Feb 25 2016 10:28
I like medwow
not even 1?
Oskar Pearson
@oskarpearson
Feb 25 2016 10:28
I think people don't remove their pumps after they have sold them, and there's no clear way of seeing when something was listed
I'll carry on submitting requests :)
Ben West
@bewest
Feb 25 2016 10:28
when I use medwow, I pretend I'm a millionaire and just go shopping
yes, many are not removed
it's about quantity to some degree
Oskar Pearson
@oskarpearson
Feb 25 2016 10:29
Haha
So do you not query the firmware version before or similar?
Ben West
@bewest
Feb 25 2016 10:30
oh, you only want $800 for a pump worth $8000? sure!
Matthias
@ceben80
Feb 25 2016 10:30

@/all
I have attached my 712. I am able to retrieve model,battery, reservoir, clock but running openaps use pump read_status should work, correct? Unfortunately this will not work.

pi@raspberrypi:~/myopenaps $ openaps use pump712 model
"712"pi@raspberrypi:~/myopenaps $
pi@raspberrypi:~/myopenaps $ openaps use pump712 read_settings
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-use", line 63, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/home/pi/src/openaps/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 217, in main
    return getattr(self.pump.model, name)(**self.get_params(args))
  File "/home/pi/src/decoding-carelink/decocare/models/__init__.py", line 26, in __call__
    self.validate( )
  File "/home/pi/src/decoding-carelink/decocare/models/__init__.py", line 18, in validate
    self.response.check_output(data)
  File "/home/pi/src/decoding-carelink/decocare/commands.py", line 123, in check_output
    return self.checker(data)
  File "/home/pi/src/decoding-carelink/decocare/commands.py", line 75, in __call__
    self.check_fields(data)
  File "/home/pi/src/decoding-carelink/decocare/commands.py", line 72, in check_fields
    raise BadResponse( )
decocare.commands.BadResponse

decocare 0.0.22.dev0 is already the active version in easy-install.pth


pi@raspberrypi:~ $ sudo easy_install -ZU decocare
Searching for decocare
Reading https://pypi.python.org/simple/decocare/
Best match: decocare 0.0.22.dev0
decocare 0.0.22.dev0 is already the active version in easy-install.pth

Any idea?

Ben West
@bewest
Feb 25 2016 10:30
oh
oh ok
ok
so model works
and on 712 you are finding specifically read_settings is bogus
you can file a bug on decoding-carelink
actually this is great yourfirstpr material
move this line to uh 515
read_settings does not work on X12, sorry
it's ok
you don't need it, per se
@ochenmiller I usually decide on budget and think about "how much would I pay for a retail pump right now that I can control, etc?"
meets the requirements
medtronic prices around $8k
so I figure ok...
$8k, go to work for me...
let's vote with our wallets
and I get five or six pumps
a handful
Ben West
@bewest
Feb 25 2016 10:36
we need to be simultaneously give this feedback to vendors
vendors simply respond to market
it's that simple
Matthias
@ceben80
Feb 25 2016 10:36
@bewest tbh....what do I have to move to whereever - sorry my stupid question :worried:
Ben West
@bewest
Feb 25 2016 10:36
if we refuse to buy product without access, they'll sell us product with access
no move
@ceben80 the read_settings command is not supported, you can't use it
it won't work
others will
@amazaheri and others have put together some special X12 notes
the 12 is a little bit older and doesn't have all the commands, but it's ok
Matthias
@ceben80
Feb 25 2016 10:38
there is a workaround for my 712?
Ben West
@bewest
Feb 25 2016 10:38
yes, but I cannot recall offhand
@amazaheri and others know all
basically you skp that one
Matthias
@ceben80
Feb 25 2016 10:39
so waiting for a response in x12...
Ben West
@bewest
Feb 25 2016 10:39
skip t
skip t
skip it
you can use the other commands
focus on iter_pump_hours 4
or 5 or 6 or 7 or 8
for read_settings, basically you will create a json file by hand
Matthias
@ceben80
Feb 25 2016 10:40
That means I don't need read_settings?
Ben West
@bewest
Feb 25 2016 10:40
correct
Matthias
@ceben80
Feb 25 2016 10:40
ok
Ben West
@bewest
Feb 25 2016 10:40
it's optional
skip it
Matthias
@ceben80
Feb 25 2016 10:40
great
understood
Ben West
@bewest
Feb 25 2016 10:40
normally we get json files from pump
well, we "create" json files based on our translation from pump data
this may or may not be correct and may or may not match what medtronic says
but we try
given that they do not give a manual...
anyway
Matthias
@ceben80
Feb 25 2016 10:42
I thinks same for settings.json
Ben West
@bewest
Feb 25 2016 10:42
so for settings.json
there's stuff in there
Matthias
@ceben80
Feb 25 2016 10:42
create this as static
Ben West
@bewest
Feb 25 2016 10:42
we can get it from pump on newer models
correct
but you can just hardcode the contents
static file
you can even create a script that given time of day, creates the file
Matthias
@ceben80
Feb 25 2016 10:42
that's ok for me Ben - thanks again :+1:
Ben West
@bewest
Feb 25 2016 10:43
just for thought exercise, the latter is one way to personalize openaps for you
if you can make a script that given time of day and other inputs in openaps,you can create your own json
and create device in openaps
and use/report it
static file is one way to do it
it all works
Matthias
@ceben80
Feb 25 2016 10:45
Now I'am happy to use my 712 as a spare pump - great :+1:
Ben West
@bewest
Feb 25 2016 10:45
yeah, given your situation the quick advice is skip read_settings and generate a static file (need a tool! firstpr!?) instead
15 works too and has a few more of these features
we're trying to shop for all the ones we can find
they don't make'em like they used to anymore
collect any you can
Matthias
@ceben80
Feb 25 2016 10:46
:+1:
Nyadach
@Nyadach
Feb 25 2016 11:03
@oskarpearson had a load of dodgy novorapid recently myself, so wouldn't put it past being that either
Oskar Pearson
@oskarpearson
Feb 25 2016 11:05
Also Novorapid, btw.
Siobhan's actually been in contact with their patient safety department and has sent a sample to them for testing.
Nyadach
@Nyadach
Feb 25 2016 11:06
i've thrown two vials due to it needing double the amount to function, drove me well into the teens for a week
Chris Oattes
@cjo20
Feb 25 2016 11:11
@oskarpearson what problems has she been having?
Dana Lewis
@danamlewis
Feb 25 2016 12:10
@colinlennon You might be the first person working on openAPS who hasn't been on a pump before..we should think/talk through what other steps you might want to take, tools to use like the auto sensitivity detection (or whatever else we build in the meantime) to make sure basals etc are in the right ballpark before looping. (Having somewhat reasonable basals is an assumption for openAPS operations, so just wanted you double check you are aware, as I think per earlier notes you are, that it'll take a few extra weeks)
@ceben80 Looks like @bewest walked you through it, but for future if anyone's looking for it, the note about the x12 workaround is tucked in on the a hardware page
.. Aka https://github.com/openaps/docs/blob/master/docs/getting-started/hardware.md and its under the notes on Medtronic pumps
Colin Lennon
@colinlennon
Feb 25 2016 12:19
@danamlewis thanks Dana, yip I'm definitely planning to wait until I'm comfortable with the pump before starting on OpenAPS. I'll start work on building a rig, but won't be using it until I'm on the pump, have basal rates fixed etc. I was supposed to be starting on a 640g next week through the National Health Service here in the UK, but funding was withdrawn at the last minute. I'm arguing my case so I may still get one. That would be ideal as I'd get pump training and support and wouldn't need to fund reservoirs and infusion sets myself. Plus I'd have the 640g as a backup in case the 722 fails (or until we've cracked comms with the 640g!)
Is "Pumping Insulin" a good book for a beginner to read? Any other recommendations would be welcome!
Dana Lewis
@danamlewis
Feb 25 2016 12:22
Oh, excellent to hear! And then you'll get associated training for that, which will help.
Is that Gary schreiner's book? I've heard it recommended, although I've been on a pump so long (13 years) I can't personally recommend any good books since I'm sure many have come out since the
*then
Fingers crossed for your appeal, good luck!
Colin Lennon
@colinlennon
Feb 25 2016 12:24
Thanks Dana. Yeah, Gary Schreiner's book, a few people have recommended it to me.
JaysonEwer
@JaysonEwer
Feb 25 2016 13:27
@colinlennon Pumping Insulin is a very technical book and is certainly worth having as a reference. I bought the older version and the newer version and haven't read either of them through but have referenced both. From what I understand it is highly regarded.
Colin Lennon
@colinlennon
Feb 25 2016 13:32
Thanks @JaysonEwer , I'll get a copy and have a read.
JaysonEwer
@JaysonEwer
Feb 25 2016 13:33
Have you checked out Sugar surfing?
Sugar Surfing: How to manage type 1 diabetes in a modern world by Stephen Ponder et al. http://www.amazon.com/dp/B017EIX9HG/ref=cm_sw_r_cp_udp_awd_7kWZwbWZESGQE
Oskar Pearson
@oskarpearson
Feb 25 2016 13:43
@cjo20 She's had similar issues to Nyadach - eg: with sugar slightly raised (10) and not having eaten for a few hours, she'll give herself many units of insulin and her sugar will go up
(And having changed her site that day)
And a little while later (the next day, for eg) the same amount of insulin will cause her to go low
Basically incredibly non-linear responses to insulin
We've found no correlation with the insulin site that we can tell. So it's either the pump giving her varying and incorrect amounts of insulin, it's the insulin that's dodgy, or it could be a batch of dodgy site inserters.
We suspect the insulin
We're changing pharmacy and pharmacy chain to see
Colin Lennon
@colinlennon
Feb 25 2016 13:53
@JaysonEwer I haven't, I'll have a look at that too. Thanks
tazitoo
@tazitoo
Feb 25 2016 15:09
Quick question on control strategy -
BG=232, eventual BG = 151 > 120 target, delta -8.33 < exp delta -8.3 cancel temp
Current BG is 100% above goal, eventual BG is 25% above goal, and delta is -1/3% below expectation. That seems "cautious" is I guess the word I'd use...
JaysonEwer
@JaysonEwer
Feb 25 2016 15:33
@danamlewis how long are you in town? DC, that is? I'm watching live, will you be speaking?
Scott Leibrand
@scottleibrand
Feb 25 2016 15:34
@tazitoo We've found that if you're dropping more quickly than expected, there's a good chance you'll end up a fair bit lower than eventualBG. So it's best to stop high-temping until BG flattens out or even rises slightly.
@JaysonEwer Dana won't be speaking on the live stream. She doesn't have signal in there, so she won't be online unless she figures out how to connect to a working hotspot.
tazitoo
@tazitoo
Feb 25 2016 15:38
Almost like calculating an updated ISF? Or at least trusting what is happening vs. what might happen in the future?
JaysonEwer
@JaysonEwer
Feb 25 2016 15:39
Thanks @scottleibrand , is her schedule crazy while here? I'm not that far away, it would be really cool to say hello while she is on the east coast.
William Fallon
@inform880
Feb 25 2016 15:41
What do you guys do about a corrupt repo? when I try git-status, I just keep getting a lot of bad object HEAD. git fsck is taking forever. It's been running for 10 minutes now
Scott Leibrand
@scottleibrand
Feb 25 2016 15:41
@JaysonEwer they have a happy hour after the event, and she flies home tomorrow at 10am EDT
@inform880 there is an oref0-fix-git-corruption.sh in the dev branch that should fix that
JaysonEwer
@JaysonEwer
Feb 25 2016 15:42
So no impromptu meetups/hackathons, eh? :-D
That's cool, I'm not going to be THAT GUY that crashes the happy hour.
Scott Leibrand
@scottleibrand
Feb 25 2016 15:45
not sure how late it's supposed to go. @danamlewis will get Internet eventually, so you can check in with her then.
William Fallon
@inform880
Feb 25 2016 15:47
@scottleibrand Thanks. That seemed to have fixed it.
Scott Leibrand
@scottleibrand
Feb 25 2016 15:53
in dev, the oref0-reset-git script now tries that first, and then resets the repo if that doesn't work to get your loop up and running again (at the cost of loss of history)
William Fallon
@inform880
Feb 25 2016 15:54
Screenshot 2016-02-25 10.50.36.png

@scottleibrand Okay thanks.

Alright, so I kinda have my data uploading to nightscout, but the hover box the data is in is formatted completely differently then I've seen from screenshots. Any ideas on what I did wrong? Here's what it looks like:

Scott Leibrand
@scottleibrand
Feb 25 2016 15:55
that looks mostly correct
looks like you might be trying to enact "no action required" recommendations is all
William Fallon
@inform880
Feb 25 2016 15:56
Okay. I think I know how to fix that.
Scott Leibrand
@scottleibrand
Feb 25 2016 16:00
I do if (cat enact/suggested.json && grep -q duration enact/suggested.json); then
Scott Leibrand
@scottleibrand
Feb 25 2016 16:17
wh.gov/live if you want to see Obama talking to @danamlewis, @HowardLook, et. al.
she’s third row back, two seats left of center, just behind the half dozen photographers in the aisle :-)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:18
I see her
Scott Leibrand
@scottleibrand
Feb 25 2016 16:19
anyone see Howard?
JaysonEwer
@JaysonEwer
Feb 25 2016 16:19
I see her playing with his phone
Scott Leibrand
@scottleibrand
Feb 25 2016 16:19
maybe she'll get Internet finally. ;-)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:20
They're looking for the camera.
Matthias
@ceben80
Feb 25 2016 16:21
@bewest @danamlewis regarding my 712, I have setup the corresponding json to static - all works fine, will try my 712 spare pump for next night looping. Thanks for your help!
JaysonEwer
@JaysonEwer
Feb 25 2016 16:26
Yeah, Howard!
Scott Leibrand
@scottleibrand
Feb 25 2016 16:26
oh, wow. Didn’t realize @howardlook would be on stage! :-)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:35
:-d
Scott Leibrand
@scottleibrand
Feb 25 2016 16:37
really excited to hear what @HowardLook says. :-)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:37
No doubt
He's going shout out to DML. :-)
LOL
@bewest woohoo @danamlewis woohoo
Scott Leibrand
@scottleibrand
Feb 25 2016 16:41
so awesome!
JaysonEwer
@JaysonEwer
Feb 25 2016 16:41
:+1:
Scott Leibrand
@scottleibrand
Feb 25 2016 16:41
lol. Hugo with the snap :)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:41
:👏
Scott Leibrand
@scottleibrand
Feb 25 2016 16:51
sweet, POTUS explicitly wants patients to own their data. :-)
JaysonEwer
@JaysonEwer
Feb 25 2016 16:52
:+1:
Scott Leibrand
@scottleibrand
Feb 25 2016 17:10
that was awesome. so great to see POTUS actually understands these issues and is supporting us. :)
Jason Calabrese
@jasoncalabrese
Feb 25 2016 17:10
great job @HowardLook, glad you got a chance to make those points at the end
Scott Leibrand
@scottleibrand
Feb 25 2016 17:12
:+1: :clap:
JaysonEwer
@JaysonEwer
Feb 25 2016 17:12
👍👏
Dana Lewis
@danamlewis
Feb 25 2016 19:30
Finally have signal. And yay all around :)
@JaysonEwer If you're near downtown DC come to the happy hour!
JaysonEwer
@JaysonEwer
Feb 25 2016 19:33
@danamlewis cool, where is the Happy Hour?