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

22nd
Feb 2016
Scott Leibrand
@scottleibrand
Feb 22 2016 00:11
Also think about how often you get new BG data, and being able to respond promptly to cancel high temps or set low temps if BG starts to drop.
Most people do something <= 5m for that reason.
Nyadach
@Nyadach
Feb 22 2016 00:18
was morning thinking of speed of insulin, time delay with the dex and real BG level, and wondering if a 15min or so would save much power?
Scott Leibrand
@scottleibrand
Feb 22 2016 00:20
I haven't seen any effect of loop interval on Edison/Pi battery.
for pump battery, just get lithium AAAs.
Nyadach
@Nyadach
Feb 22 2016 00:22
pump never really had issue battery wises, that seems to last forever usually
Dana Lewis
@danamlewis
Feb 22 2016 00:27
that will change with frequent comm to pump
live4sw
@live4sw
Feb 22 2016 00:31
hi guys - just wanted to check back on this ValueError issue when I run iter_pump_hours
have you seen this one? i saw something in the chat history about it for one person but it seemed to resolve on its own
also - glad to be back and trying this out again, i decided to give it another shot after hearing dana on hanselminutes
Dana Lewis
@danamlewis
Feb 22 2016 00:37
Can you paste what you were running to get that error?
Also :)
live4sw
@live4sw
Feb 22 2016 00:40
openaps use pump iter_pump_hours 4
error came back:
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.0.10', 'openaps-use')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 724, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1650, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/init.py", line 44, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/uses/use.py";, line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/vendors/medtronic.py";, line 455, in main
for rec in self.range( ):
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/models/init.py", line 67, in call
for record in page:
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/models/init.py", line 46, in download_page
for record in self.find_records(page):
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/models/init.py", line 139, in find_records
decoder = history.HistoryPage(response.data, self.inst)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/history.py";, line 764, in init
if lib.BangInt(crc) != computed:
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/lib.py";, line 235, in BangInt
( x, y ) = ints
ValueError: need more than 0 values to unpack
other commands seem to work fine - it reads the model, can suspend and resume, etc
Dana Lewis
@danamlewis
Feb 22 2016 00:43
Is this your live pump, or a test pump?
live4sw
@live4sw
Feb 22 2016 00:43
live pump
Dana Lewis
@danamlewis
Feb 22 2016 00:44
Ok. So you probably have enough records in there...
live4sw
@live4sw
Feb 22 2016 00:44
yep. to be fair, i just started using it around 4 hours ago though (was on my 530G until earlier today)
Dana Lewis
@danamlewis
Feb 22 2016 00:44
Oh
Yea you probably need more records in the pump
Try a smaller number, different result?Ie what happens for 1?
live4sw
@live4sw
Feb 22 2016 00:46
same error for 1
it's weird in two respects, first, iter_pump_hours 4 was working at first
second, iter_pump 1 pulls my change to my bolus wizard setup from 4:35pm, but nothing more recently
Dana Lewis
@danamlewis
Feb 22 2016 00:48
When did you install openAPS and all the dependencies? Have you updated, or is it still there from your original attempt?
live4sw
@live4sw
Feb 22 2016 00:49
i installed it about 3 hours ago then ran into that error, then i figured i'd start from the beginning, so I reformatted my SD card, reinstalled raspbian fresh
and then started again and just installed openaps and created a new init, setting up my two devices
running this command right after
i used curl to install
Nyadach
@Nyadach
Feb 22 2016 00:55
Ack! just broke it utterly!! Reinstall time I think sigh
live4sw
@live4sw
Feb 22 2016 01:06
it is weird, in that when i do iter_pump n, the stuff at the top is dated from september 2001
but the pump clock is accurate
Dana Lewis
@danamlewis
Feb 22 2016 01:38
Oh, you may need to do the y2k16 fix
Are you in the openAPS-dev Google group? Search in there for the y2k16 bug fix info
Can't remember offhand (on my phone) what'll fix it with one line, but the email has what you need (or someone else can paste it in here)
The other thing may be that your pump needs more records, so try i suspending and re suspending a bunch, sending a bunch of temps, etc to see if that changes what you get back
live4sw
@live4sw
Feb 22 2016 01:54
wow! that fixed it (am in the google group, all i had to do was sudo easy_install -ZU openaps)
strange that the curl command in the Phase 0 (Setting Up openaps and Dependencies
) docs installed a version that had the bug though
but i'm back on track! thanks
Dana Lewis
@danamlewis
Feb 22 2016 01:57
:+1:
Aaron Michelson
@Aaybob
Feb 22 2016 03:35
My tech savy smart friend wasn't much impressed. He said he'd check it out when it worked with G5 and tandem pump. When we parted he said he'd want a car link that could alarm his dashboard. I said someone will have to hack it because if a corporation can't make money they say why bother. I hadn't thought about it. I was just hoping he would put his talents to work. How are people intercepting communications? Are communications being encrypted so that new medtronic pumps are un-hackable? Are standardized protocols being used or proprietary communicaations?
Jason Calabrese
@jasoncalabrese
Feb 22 2016 03:39
Sounds like he's making excuses
Dana Lewis
@danamlewis
Feb 22 2016 03:39
The older pumps allowed remote control over RF with Carelink, which is what we are using. The new Medtronic pumps don't have this capability.
G5 is possible to use already, and ppl are exploring the other pumps by sniffing the radi
Radio comms
If he's interested, he should join the omniAPS slack channel to see where those efforts are progressing for Omnipod and animas vibe and see if he can apply that to tandem
Jason Calabrese
@jasoncalabrese
Feb 22 2016 03:43
Tandem "just" needs new firmware, like they use in the ap trials, but way easier to use something we already know how to use
Aaron Michelson
@Aaybob
Feb 22 2016 03:44
He loves the tandem pump as people do love it. omniAPS slack channel. I'll forward that to him. His tandem model has bluetooth and its capable of CGM screen with a user employed download but tandem needs gov. approval before deploying the code. yeah it can all be overwelming and then we have life to deal with
If i didn't have to eat Id be so healthy
Nutritionist said last week that i could have one treat per day
Dana Lewis
@danamlewis
Feb 22 2016 03:47
@Aaybob Here's the link to share so he can add himself to the group: https://omniapsslack.azurewebsites.net
Aaron Michelson
@Aaybob
Feb 22 2016 03:57
I messaged him the info, thanks, no pressure, Maybe we need more success stories of what OpenAPS does. My dilemma is I should have bought two KMASHI batteries and I'm being so stupid not wanting to buy another one. I've got several smaller batteries that output 2.1A. And I guess a plentitude of chords is needed too. Some chords maybe don't work to charge with. Why do I hesitate on such small expenses?
Jim Matheson
@jmatheson
Feb 22 2016 05:23
@scottleibrand did you end up getting bluetooth tehtering to work on the edison? I’ve been having a lot of trouble with wifi tethering and I hear it chews the most battery so thinking about trying ble tethering (iphone 6s)
Jason Calabrese
@jasoncalabrese
Feb 22 2016 06:02
I moved around my status upload, put at the end of the main loop, also an extra cron that goes every 20m.
That plus new relic seems like a good mix
Jim Matheson
@jmatheson
Feb 22 2016 06:10
my main issue is that when i leave the house i often have to flip off and on my hotspot several times before the edison connects via wifi (att / iphone6s). Then some of the time it seems to cause some sort of hiccup with my ble which chokes my G5 transmitter to G5 app which leaves no BG for NS. I am basically flipping switches left and right when i leave the house :)
i think it is an issue on the iphone /att side. but wondering if ble and no wifi hotspot would help.
Jason Calabrese
@jasoncalabrese
Feb 22 2016 06:15
You're using wpa suplicant?
Jim Matheson
@jmatheson
Feb 22 2016 06:19
yes.
scripts work fine switching back to home network when i get home.
but if i leave hotspot on then leave the house it does not connect most of the time.
half the time one off/on of hotspot works but sometimes it takes upwards of 5x to work.
i have never used my hotspot for anything else besides this so i dont have anything to compare to
Matthias
@ceben80
Feb 22 2016 06:22
I'm on my way to work. APS is running :+1:
Jim Matheson
@jmatheson
Feb 22 2016 06:24
:thumbsup:
Jason Calabrese
@jasoncalabrese
Feb 22 2016 07:29
:smile:
Matthias
@ceben80
Feb 22 2016 08:48
So awesome, I am running totaly flat :+1:
Nyadach
@Nyadach
Feb 22 2016 11:30
Sounds great @ceben80 :)
Matthias
@ceben80
Feb 22 2016 13:27

@/all
I have a question of understanding:

The max. basal rate is set to 4U, why is a limit here set to 3.6U?

My APS parametes are:

max_daily_basal:1.2
max_basal:4
req. rate: 3.8 to maxSafeBasal: 3.6

blob
Dragan Maksimovic
@dm61
Feb 22 2016 14:17
There is a limit for max temp set by openaps at any time, which is equal to 3*max_daily_basal = 3.6 in your case. This limit overrides your pump setting for max_basal. There is also max_iob, which is a different limit - it applies to a limit for the total extra insulin delivered by openaps over past 4 hours (or whatever DIA is)
Matthias
@ceben80
Feb 22 2016 14:21
@dm61 Thanks for your answer :+1:
Dragan Maksimovic
@dm61
Feb 22 2016 14:53
To be more precise, the limit for temp basal is min(3*max_daily_basal, max_basal), so 3.6 in your case
Jason Calabrese
@jasoncalabrese
Feb 22 2016 15:00
also there's a 4X current basal limit
Scott Leibrand
@scottleibrand
Feb 22 2016 15:08
@jmatheson no, only on the Pi. Will have to try different distros or something...
Matthias
@ceben80
Feb 22 2016 15:08
The day at the office today went well. I am very satisfied after some days looping :smile:
Scott Leibrand
@scottleibrand
Feb 22 2016 15:09
i haven't noticed trouble with wifi tethering though.
@ceben80 :-)
which branch are you using? Master? dev?
Matthias
@ceben80
Feb 22 2016 15:11
Dev 0.0.11, I think a have choose master in Dana's form by mistake
Scott Leibrand
@scottleibrand
Feb 22 2016 15:12
Do you have meal assist configured?
Matthias
@ceben80
Feb 22 2016 15:12
Not yet
scottleibrand @scottleibrand nods
Matthias
@ceben80
Feb 22 2016 15:13
Should I test the Meal Assist?
Matthias
@ceben80
Feb 22 2016 15:19
But first gain experience with the basics of APS.....and alway tail /var/log/messages for monitoring the system
blob
Scott Leibrand
@scottleibrand
Feb 22 2016 15:51
Once you're comfortable with how it works during the day, and would like it to do more to high-temp after meals instead of just bolus snooze, you should set up meal assist and test that. No hurry though.
Jason Calabrese
@jasoncalabrese
Feb 22 2016 15:56
Indy-E3 is at school, 3rd rig I sent to school and the 2nd edison rig
Matthias
@ceben80
Feb 22 2016 16:07
@scottleibrand Right, first the system really get to know. I'll do this later. I'm totally relaxed :smile:
Scott Leibrand
@scottleibrand
Feb 22 2016 16:13
:+1:
Peter Miller
@ochenmiller
Feb 22 2016 16:45
Quick update: About a month ago I mentioned that we'd been half comping meals as a hedge against lows with the then-current determine basal, and the spotty connection rate of our portable rig. With the addition of meal-assist and wtf-assist, and the fact that our pocket sized rig has a near 100% connect rate. We've moved to full comping on meals, or 75% if we're not confident. Post meal highs are much lower, and we haven't had many lows. Algorithm improvement and wearable rigs make a huge difference!
Dana Lewis
@danamlewis
Feb 22 2016 16:46
awesome to hear!
Jason Calabrese
@jasoncalabrese
Feb 22 2016 16:49
"half comping meals" ~ "bolusing for half of the meal"?
Peter Miller
@ochenmiller
Feb 22 2016 16:50
Here's a picture of the latest rig-wip. Battery and Carelink stick not showing yet. Also removed the HDMI connector after taking this shot. Should be only about 5/8" thick with the 2500 mAh battery included.
@jasoncalabrese - bolusing for only half the carbs, letting openaps do the rest.
resulted in higher, longer excursions.
Nyadach
@Nyadach
Feb 22 2016 16:51
nice, just ordered one of those powerboards myself! :)
Peter Miller
@ochenmiller
Feb 22 2016 16:52
Going to also remove the JST connector so the battery lies a little flatter against the rest
Nyadach
@Nyadach
Feb 22 2016 16:52
how long is the 2500mA battery lasting?
Peter Miller
@ochenmiller
Feb 22 2016 16:52
about 13 hours
Was playing with software powering down USB , but the Carelink stick kept freezing up.
Might build a transistor circuit to do the same.
Nyadach
@Nyadach
Feb 22 2016 16:54
does underclocking the Pi help any?
Peter Miller
@ochenmiller
Feb 22 2016 16:54
With that I'm confident on a full day of operation
haven't tried that
there is a command to power down the video. Saves a few mA
Jason Calabrese
@jasoncalabrese
Feb 22 2016 16:54
would love to get a wixel working with the edison
Peter Miller
@ochenmiller
Feb 22 2016 16:55
That would be pretty ideal
Jason Calabrese
@jasoncalabrese
Feb 22 2016 16:55
sounds that we'll need to use spi, since the edison only has 2 uarts, and 1 is the console
Peter Miller
@ochenmiller
Feb 22 2016 16:56
On RPi i'm using pigpio to bit bang. Leaves me the regular serial in for a console when I need it
Also, I was splitting the UART for both Wixel and HM11
receive from Wixel, send to HM11
So, you could get a 2 for one on the Edison uart
Jason Calabrese
@jasoncalabrese
Feb 22 2016 16:58
I have a lot to learn, but bit banging sounds cool
Peter Miller
@ochenmiller
Feb 22 2016 16:59
wixel does I2C and SPI support too, so that might work for Edison
Jason Calabrese
@jasoncalabrese
Feb 22 2016 17:02
@sulkaharo and @jstevensog were talking about using spi, but I don't really understand exactly what that would mean
Sulka Haro
@sulkaharo
Feb 22 2016 17:34
I2C too? @jasoncalabrese these are "just" another serial bus definition - the reason I was interested in those is the fact that the Edison has limited UARTs, so in order to have a build with a pump radio, xDrip AND data module, one or two of those need to use something other than UART
Jason Calabrese
@jasoncalabrese
Feb 22 2016 18:37
but with the console in the way don't we need the spi or i2c
even for only the wixel
without the data module
Nyadach
@Nyadach
Feb 22 2016 18:52
daft question, but why not add a hub? http://www.yoctopuce.com/EN/products/extensions-and-networking/micro-usb-hub-v2 is what I'm now using with the zero?
Scott Leibrand
@scottleibrand
Feb 22 2016 18:59
I think the idea is to avoid USB to avoid the power hit of going form 3.7V to 5V
Nyadach
@Nyadach
Feb 22 2016 19:00
ah ok, was more thinking of easier sourcing of wireless cards and other addons
Sulka Haro
@sulkaharo
Feb 22 2016 19:39
Yeah this is to have as compact and low power setup as possible. Our current rig is the same size as a small MedTronic pump and contains the Edison, battery and xDrip. Still needs the Android phone, but that could be eliminated as well
No cables is awesome :)
Peter Miller
@ochenmiller
Feb 22 2016 20:33
One additional benefit to implementing with wixel/xDrip. We don't drive our loop from cron. As soon as a new BG record comes in, we process it and reach out to the pump. When polling BG data via cron, the loop can be as much as 5 minutes out of date.
Jason Calabrese
@jasoncalabrese
Feb 22 2016 20:35
interesting, the wixel drives the loop
seems that would fit with the dbus work @bewest has been doing
Peter Miller
@ochenmiller
Feb 22 2016 20:36
I have a cron that runs every 5 minutes to check that the listener process is running. Would be better to create a daemon and use init
dbus, exactly!
no more cron
currently re-implementing openxshareble and mmeowlink as d-bus services in their own right
Pete Schwamb
@ps2
Feb 22 2016 21:07
Sounds nice. That’s more like the architecture we have on the phones, where everything is event driven.
Ben West
@bewest
Feb 22 2016 21:08
yes, openaps will have a schedules and signals tools
various daemons, the medtronic service, the dexcom service, etc will generate well known signals
users can map them to do things
do is just fancy interface around alias, it's like invoke for alias/top-level
there's a prototype UI that shows all the events getting scheduled and happening, facebook-timeline style
ran into a technical issue, been stuck for last week or so
Pete Schwamb
@ps2
Feb 22 2016 21:15
Seeing the events is great. It’s important to know which events are available/being generated.
Ben West
@bewest
Feb 22 2016 21:17
image.png
I'm also using proper rrule to trade in scheduling info, so ical integration should be a snap at some point
make integration with google calendars and other things possible :-D
Peter Miller
@ochenmiller
Feb 22 2016 21:25
:smile:
Ali Mazaheri
@amazaheri
Feb 22 2016 21:27
:+1:
Nyadach
@Nyadach
Feb 22 2016 21:30
that looks great!
Dragan Maksimovic
@dm61
Feb 22 2016 21:32
wow :+1:
Peter Miller
@ochenmiller
Feb 22 2016 21:33
oacids. That's "no acids" right. So, no ketoacidosis for openaps!
Dana Lewis
@danamlewis
Feb 22 2016 23:17
OpenAPS is (n=1)*37! :) (24 adults, 13 kids)
Scott Leibrand
@scottleibrand
Feb 22 2016 23:18
:chart_with_upwards_trend:
eyim
@eyim
Feb 22 2016 23:19
Wow nice - as large as many clinical trials now
Stephan
@MosiGitHub
Feb 22 2016 23:20
👍 that is great
Dana Lewis
@danamlewis
Feb 22 2016 23:20
thanks to @channemann for some chart putting together :) we're getting up to that ballpark.
Cumulative Person-Days = 3,970
Cumulative Person-Hours = 67,536 <----lots of APS hours :)