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

4th
Jul 2016
Scott Leibrand
@scottleibrand
Jul 04 2016 00:47
@mariannesmith77_twitter you are probably thinking of something like killall -g --older-than 10m openaps
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 04 2016 03:19
@jaylagorio congrats. The next couple of days of fine tuning are fun. I'm not sure about others but with the carelink I find its best on the 8's (18,38,58) of every hour to setup a crontab to Reset USB and do a Git Reset. My first few nights I had Git corruption every night.
Paul Martin
@Spazholio
Jul 04 2016 03:20
…I thought git corruption only happened with an unexpected loss of power. That’s interesting.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 04 2016 03:21
Ahh maybe that was the prob. I do the reset and have perfect coverage at nights now.
Scott Leibrand
@scottleibrand
Jul 04 2016 04:50
The reset-git script can and should be run every minute. It won't do anything if there's no corruption.
I only reset USB when preflight and mm-stick warmup fail: that is an extremely reliable indicator that the carelink stick needs reset.
There's really no reason to reset usb otherwise.
yiyoMX
@yiyoMX
Jul 04 2016 05:18
This message was deleted
Ben West
@bewest
Jul 04 2016 07:25
oy vey, bluez 5.38+ will break openaps
it needs porting... I could use some help
so that means it works for the very narrow band of >= 5.33 && <= 5.37
John Sjolund
@sjolundjohn
Jul 04 2016 09:44
Hi - I has anybody made any inroads into putting OpenAps status, via Nightscout, onto a Android watch? I have Nightwatch running, but want to get OpenAps status running
Chris Oattes
@cjo20
Jul 04 2016 11:00
@bewest in nightscout.sh, any particular reason for > /dev/stderr over >&2? The former seems to truncate my logfile which I append all the tool output too, whereas >&2 seems to work
japrobo
@japrobo
Jul 04 2016 11:10
@scottleibrand yes that is it! Thank you.
Chris Oattes
@cjo20
Jul 04 2016 11:18
@scottleibrand FYI, my change to basal rounding probably isn't actually doing anything atm. I didn't realise SetTempBasal also rounded the suggestedRate using the old truncation style
Jarred Yaw
@jyaw
Jul 04 2016 12:03
The NS COB pill on my site shoes crazy big numbers that continue to increase (noticed the last 2 days or so, 400+ g this AM). OpenAPS appears to be calculating reasonable COB based on data from NS and pump. Anyone seen this?
Scott Leibrand
@scottleibrand
Jul 04 2016 12:12
@cjo20 ah. Was wondering why I didn't seem to see any effect.
Brandon Faloona
@bfaloona
Jul 04 2016 13:01
I'm testing my rig and suddenly I can't talk to the carelink stick. I've tried sudo oref0-reset-usb and also rebooting the OS, but nothing works. Any ideas?
I've reset the usb stick successfully before, so I know that WAS working.
Is the pump required to be in range before the USB stick will be recognized?
I'm assuming that sudo mm-stick scan would find the stick, even if the pump is out of range.
Chris Oattes
@cjo20
Jul 04 2016 13:16
@scottleibrand When I get some time I'll move the round_basal out to a seperate file, make it take the pump model so it can be done properly and then try to find all the places that round basals
It'll probably mean adding model.json as a requirement for get-profile (if it isn't already?)
Scott Leibrand
@scottleibrand
Jul 04 2016 13:29
@cjo20 probably better to make it optional and default to the 522 behavior if not provided.
Chris Oattes
@cjo20
Jul 04 2016 13:29
ok
Scott Leibrand
@scottleibrand
Jul 04 2016 13:29
@bfaloona I think you want warmup rather than scan, IIRC
Brandon Faloona
@bfaloona
Jul 04 2016 13:37
@scottleibrand warmup exits with a 1.
Brandon Faloona
@bfaloona
Jul 04 2016 14:00
In case it's helpful, here's the error: Attempting to use a port that is not open from /usr/lib/python2/.../serialposix.py
Dana Lewis
@danamlewis
Jul 04 2016 14:01
Always worth asking - do you have the stick plugged in to the pi?
Chris Oattes
@cjo20
Jul 04 2016 14:01
@scottleibrand any mechanism for having multiple optional files (i.e. carbratio and model) for get-profile?
Brandon Faloona
@bfaloona
Jul 04 2016 14:17
@danamlewis Yes! :smile I switched rigs (from pi zero to pi3) and now it works.
:smile: is what I meant. @danamlewis
Brandon Faloona
@bfaloona
Jul 04 2016 15:04
What's the best reference for understanding determine-basal output? I'm reading the wip Phase3 docs now.
For example "Avg. Delta N.N < Exp. Delta N.N" is not clear to me. What is "Exp." and what time period is used to evaluate?
Brandon Faloona
@bfaloona
Jul 04 2016 15:31
I've got a closed loop running on a test pump and it reports "Not Enacted" but I'm not sure why.
enacted-temp-basal.json reports recieved is false, which sounds correct, but I'm not sure why.
jaylagorio
@jaylagorio
Jul 04 2016 15:34

@jlucasvt @Spazholio It's funny you mention the stick reset, I've never had that work properly. I have a Pi 2 and this is the result I get whenever I've tried it:

pi@openaps:~ $ sudo mm-stick reset-usb                                                                                         
/usr/local/bin/mm-stick: line 73: cd: /sys/bus/pci/drivers/?hci_hcd: No such file or directory                                 
Weird error. Failed to change directory to /sys/bus/pci/drivers/?hci_hcd

As for the Git reset I have my startup script clear out any JSON files, delete the .git directory, and do a git init because otherwise like you said I get weird Git errors even if I reboot cleanly.

As @scottleibrand said above I have the reset command executed only when the warmup fails even though it doesn't work, I figured I'd leave it there for when the time comes, like now, to ask about it.
Brandon Faloona
@bfaloona
Jul 04 2016 15:41
Is there a way to review historical openaps suggestions that have not ben enacted?
Elisabeth J LaMotte
@elisjoy_twitter
Jul 04 2016 15:46
Does anyone know if a new medtronic pump will work to set this up - or do I still need to find an old one? My daughter uses omnipod and I'm sure we can easily switch to medtronic, but I imagine it is difficult to find an old medtronic. Thoughts?
jaylagorio
@jaylagorio
Jul 04 2016 15:47
@jlucasvt @scottleibrand Nevermind, I just tried the sudo oref0-reset-usb command @bfaloona used and it works. One more kink worked out just like you said.
Eric
@ecc1
Jul 04 2016 15:50
@elisjoy_twitter Sorry, only the older pumps will allow a closed loop. See https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/hardware.html for details. You can "open loop" with a newer pump -- the tools can monitor and make suggestions, but you'd have to perform the temp basal commands manually.
Elisabeth J LaMotte
@elisjoy_twitter
Jul 04 2016 15:54
@ecc1 Thanks for helping me try to get started!
Brandon Faloona
@bfaloona
Jul 04 2016 16:00
@jaylagorio I'm glad my problem helped solve yours!
Paul Martin
@Spazholio
Jul 04 2016 16:06
@jaylagorio I don’t think that question mark should be in the path like that, but I have literally never used the Carelink stick in “production” nor have I used that tool, so I don’t know.
Eric
@ecc1
Jul 04 2016 16:07
@elisjoy_twitter There is a used-medical equipment website whose name escapes me that some people have used. I've personally had success finding Craigslist ads for older pumps, not local to me, and seeing if the sellers would ship. All have been willing so far.
Paul Martin
@Spazholio
Jul 04 2016 16:08
If my experience is common, be prepared to pay.
Eric
@ecc1
Jul 04 2016 16:09
I've paid $250 to $800 for 522/722 pumps in quite good condition from craigslist.
Chris Oattes
@cjo20
Jul 04 2016 16:13
@bfaloona Not sure on the time period, but I suspect 5 minutes (I'd have to look at the code). "Exp." means expected. Bascially it checks whether you're dropping more than the algorithm would expect you to drop from your iob
Paul Martin
@Spazholio
Jul 04 2016 16:17
How far apart do you have to put your sensor from your infusion site? My sensor is giving radically low/inaccurate readings today, so I was going to let my new one soak, but where I was planning on putting it is sorta close to my current infusion site...
Brandon Faloona
@bfaloona
Jul 04 2016 16:23
@cjo20 Thanks!
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 04 2016 16:24
@jaylagorio hope you had a great overnite. All Happy 4th
Kim St. Dennis
@kimstdennis_twitter
Jul 04 2016 16:27
@Spazholio normally I keep 3" between the sites
I use the top of a deck of cards to measure. :)
Paul Martin
@Spazholio
Jul 04 2016 16:29
Interesting tactic.
Kim St. Dennis
@kimstdennis_twitter
Jul 04 2016 16:29
@Spazholio are you using the Edison? and if so, did you put the OS on the 4Gb flash or on an SD card somehow (sparkfun board?)
jaylagorio
@jaylagorio
Jul 04 2016 16:31
@Spazholio Yeah, it does look out of place but that's something internal to the tool I imagine.
@jlucasvt Thanks, you too! I haven't hooked the rig up to me yet but last night was the first night it ran consistently and doing what I thought it should be doing all night long. My Nightscout instance even died sometime in the night but when I restarted it and waited a couple minutes everything the rig did over night loaded right up without me touching it. I'll be hooking it up to me in the next day or two.
ryanchen26
@ryanchen26
Jul 04 2016 16:49
BBChmm uu mutch Viv nj it
Elisabeth J LaMotte
@elisjoy_twitter
Jul 04 2016 16:54
@ecc1 @Spazholio thanks!
iananders
@iananders
Jul 04 2016 16:54
@AndyProbolus_twitter turns out that was my issue as well. thanks for the tip
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 04 2016 16:58
:+1:
Paul Martin
@Spazholio
Jul 04 2016 17:45
@kimstdennis_twitter Using the Edison, yes, but using the Intel breakout board - no additional storage.
Scott Leibrand
@scottleibrand
Jul 04 2016 18:22
@bfaloona Exp. Delta is "expected delta", which is how much you "should" be rising/falling based on insulin activity, adjusted for how much more/less you'd need to be rising/falling to get eventualBG up/down to target (over DIA hours).
Jarred Yaw
@jyaw
Jul 04 2016 18:24
Anybody seen their COB pill value on NS go up and up?... mine is at 400+ now.
Weird, just checked it and it went back to normal after displaying increasing values for 2 days... maybe deserved a NS re-start I guess.
Kim St. Dennis
@kimstdennis_twitter
Jul 04 2016 19:19
@Spazholio cool thanks. figure I'll use the breakout for logs.
Paul Martin
@Spazholio
Jul 04 2016 19:40
How do you mean?
Eric
@ecc1
Jul 04 2016 20:02
Anyone seen a Carelink upload get (consistently) stuck? I'm trying to read the pump history via their web page with the Java applet, so that I can compare the data with what I'm decoding. But it consistently stops at the 25% mark, and asks me to replace the battery and/or move the pump closer to the Carelink stick, both of which I've done. I can read all the history data with my own code, so I know it's there :-)
David Cintron
@loudestnoise
Jul 04 2016 20:18
@jyaw I’ve seen that before too. A COB number that seems crazy high and I’m not sure where it got it from
Ben West
@bewest
Jul 04 2016 20:28
usually that means treatment information is being duplicated
Garrett Webb
@garetis
Jul 04 2016 20:39
Quick questions about auto sensitivity.. I'm using a 712 and have a static file for my insulin sensitivities. Is there something special I'd have to do when enabling it for it to be able to update that variable?
David Cintron
@loudestnoise
Jul 04 2016 20:56
@bewest Yeah that would make sense. I think I saw that a couple of loop editions ago now that I think about it. I just did one now and it’s representing the COB as I inputted and looks like they’re decaying based on my absorption rate I put in my profile
Scott Leibrand
@scottleibrand
Jul 04 2016 21:02
@garetis no, that shouldn't be an issue.
Garrett Webb
@garetis
Jul 04 2016 21:05
@scottleibrand Thanks. So the sensitivity get updated, but it won't change in the static file
?
Scott Leibrand
@scottleibrand
Jul 04 2016 21:12
Autosens doesn't change the data coming from the pump. It writes an autosens.json with an adjustment ratio that is then used in determine-basal to adjust the pump's basal rates and ISF.
Garrett Webb
@garetis
Jul 04 2016 21:14
Good to know. I am just setting it up, so looking forward to diving in. Thanks.
Paul Martin
@Spazholio
Jul 04 2016 21:17
I suspect a call to Dexcom is in my future. I switched sensors less than 2 hours ago, and the tape is already starting to peel...
Feels a waste to use a GrifGrips so early on. That being said, if Dexcom made their adhesive tape out of the same material that GrifGrips made theirs out of, I suspect it would work SO much better.
David Cintron
@loudestnoise
Jul 04 2016 21:20
I’m all about the SkinTac. I apply it on top of the adhesive before putting on my skin. I just make sure not to go over where the needle goes in.
Paul Martin
@Spazholio
Jul 04 2016 21:20
I’ve never had SkinTac work well for me. I may try again. I’ve heard you can use it after the tape starts to peel up, but that just makes the tape stiff, and not more sticky.
And does it really matter if you cover where the needle goes in? I’ve heard both ways. I’ve tried using it, but once it dries, I’ll be damned if I can tell where I left it out to place the needle. =)
jaylagorio
@jaylagorio
Jul 04 2016 21:41
@Spazholio @jmatheson turned me on to SkinTac, I've had some good luck with it. I'm not sure getting the skin where the needle goes in is a good idea but I haven't tried it enough times to know for sure. I've also put it on the adhesive area after it started peeling off and it seemed to get me to the end of the week OK but I do agree that Dexcom should do better with the adhesive on the fabric in general.
Garrett Webb
@garetis
Jul 04 2016 21:44
I feel like if dexcom improved their adhesion on the sensors then it would make people more inclined to leave them in after the week is up, which may be good from a consumer standpoint, but bad from the company's revenue perspective. Thus, they aren't too incentivized to pursue that, unfortunately
jaylagorio
@jaylagorio
Jul 04 2016 21:44
I agree with you. That's in line with the one "conspiracy theory" I allow myself to believe.
Paul Martin
@Spazholio
Jul 04 2016 21:48
Damn your talons of logic! Stupid Dexcom and their stupid profits...
jaylagorio
@jaylagorio
Jul 04 2016 21:50
^^
Garrett Webb
@garetis
Jul 04 2016 21:51
I actually only just found out that they're a public company, I do like the product, so may become an investor sometime as soon as I can check out some of their filings and investor presentations
jaylagorio
@jaylagorio
Jul 04 2016 21:53
That's an interesting thought, I'd be curious to find out what kind of information you can get pre-investment.
Dana Lewis
@danamlewis
Jul 04 2016 22:08
Keep in mind lots of people have been developing adhesive allergies to their sensors. They've gone through several iterations, trying to find a balance.
Paul Dickens
@thebookins
Jul 04 2016 22:16
Does anyone else get annoyed by the three beeps from the pump on the hour when a temp basal is active? I don't suppose it's possible to turn off? Thought about setting a temp duration one minute less than the time until the hour but duration has to be a multiple of 30 mins.
Dana Lewis
@danamlewis
Jul 04 2016 22:19
you can't turn it off, but you can turn off the "always set a temp feature" (aka if no modified temp needed it sets your current as a temp so you know you're looping) to reduce some of those hourly things. Not a guarantee but likely to reduce some.
Paul Martin
@Spazholio
Jul 04 2016 22:20
@danamlewis It’s less the adhesive, and more the stretchy fabric that GrifGrips uses. I like that. I think the issue I’m having today with my sensor is that I put it closer to the side than I usually do, so when I stretch or twist, it’s pulling.
Paul Dickens
@thebookins
Jul 04 2016 22:20
thanks @danamlewis, thought so - have to put up with it - hopefully it won't wake my son up too often
Dana Lewis
@danamlewis
Jul 04 2016 22:24
@thebookins fingers crossed! That's the one benefit of being a super sound sleeper I guess, those don't phase me. (Another benefit being OpenAPS is what came out of that, too, so maybe there's lots of benefits ;))
@Spazholio ah, gotcha. Wasn't sure if people were talking fabric or sticky.
Paul Martin
@Spazholio
Jul 04 2016 22:25
The fabric at least has a bit of give to it. Ah well, worst case, I get a new sensor sent tomorrow and a new 2-hour hole punched in my records. =)
Dana Lewis
@danamlewis
Jul 04 2016 22:26
Or it's an excuse not to stretch twist or otherwise move ;) if you wanted one!
Scott Leibrand
@scottleibrand
Jul 04 2016 22:30
@thebookins there is also vibrate mode on the pump...
Paul Dickens
@thebookins
Jul 04 2016 22:41
thanks @scottleibrand we'll try it out
Paul Dickens
@thebookins
Jul 04 2016 22:50
for any x12 users out there we've had to hand-code monitor/status.json, raw-pump/bg-targets-raw, settings/selected-basal-profile.json, and settings/settings.json. Is that typical? I note there's a command ReadProfile_STD512 in mm-send-comm.py but the openaps command read_selected_basal_profile doesn't map to it
Chris Oattes
@cjo20
Jul 04 2016 22:52
@scottleibrand got a carb_ratios.json handy that I can use to test this argument stuff?
Paul Martin
@Spazholio
Jul 04 2016 23:03
I think you can just create a zero-length file. touch carb_ratios.json
Andy Probolus
@AndyProbolus_twitter
Jul 04 2016 23:23
Trying to modify our cron so that it only runs if the loop process is not already running. can't quite get this to work but it is close (it seems to work once but then always believes a loop is running). Anybody see an error or have a hint?
cd /home/pi/myopenaps && flock -xn /home/pi/myopenaps.lck -c "openaps loop &>> /tmp/output"
Chris Oattes
@cjo20
Jul 04 2016 23:53
@Spazholio I needed a file that actually did something. Worked it out though.