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

3rd
Aug 2016
Paul Martin
@Spazholio
Aug 03 2016 00:30
So…this is a shot in the dark, but about 3h ago, my rig died and I just noticed. I’m getting the following, over and over and over. I’ve rebooted, so I have no idea what it MIGHT be, other than a wire coming loose (which doesn’t appear to have happened), so - thoughts?
.Traceback (most recent call last):
  File "/home/edison/src/mmeowlink-source/bin/mmeowlink-any-pump-comms.py", line 15, in <module>
    app.run(None)
  File "/usr/local/lib/python2.7/dist-packages/decocare/helpers/cli.py", line 113, in run
    self.prelude(args)
  File "/home/edison/src/mmeowlink-source/mmeowlink/cli/any_pump_comms_app.py", line 28, in prelude
    super(AnyPumpCommsApp, self).prelude(args)
  File "/home/edison/src/mmeowlink-source/mmeowlink/cli/base_mmeowlink_app.py", line 26, in prelude
    self.link = link = LinkBuilder().build(args.radio_type, port)
  File "/home/edison/src/mmeowlink-source/mmeowlink/link_builder.py", line 16, in build
    return SubgRfspyLink(port)
  File "/home/edison/src/mmeowlink-source/mmeowlink/vendors/subg_rfspy_link.py", line 55, in __init__
    self.open()
  File "/home/edison/src/mmeowlink-source/mmeowlink/vendors/serial_interface.py", line 27, in open
    self.check_setup()
  File "/home/edison/src/mmeowlink-source/mmeowlink/vendors/subg_rfspy_link.py", line 71, in check_setup
    self.serial_rf_spy.sync()
  File "/home/edison/src/mmeowlink-source/mmeowlink/vendors/serial_rf_spy.py", line 117, in sync
    raise CommsException("Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Scott Leibrand
@scottleibrand
Aug 03 2016 00:33
have you hard power-cycled?
the TI stick can get into a funky state that only killing its power gets out of
sudo halt and then push the white button
Paul Martin
@Spazholio
Aug 03 2016 00:33
I rebooted, but I’ll power-cycle.
Paul Martin
@Spazholio
Aug 03 2016 00:43
@scottleibrand with the save! Thanks. I knew that, but completely whiffed on it. And for once, I decided to shutdown “properly” rather than just holding the white button down for 10s. Irony!
Scott Leibrand
@scottleibrand
Aug 03 2016 00:44
you might want to install acpi or whatever it is
it makes a short white button press do a halt
Paul Martin
@Spazholio
Aug 03 2016 01:16
Does it require programming after the fact, or does it Just Work ™?
Scott Leibrand
@scottleibrand
Aug 03 2016 01:18
just works iirc
Paul Martin
@Spazholio
Aug 03 2016 01:23
Hmmmm. I have a few acpi packages installed, but not acpi-support.
Martin Haeberli
@mhaeberli
Aug 03 2016 02:40
one more question for 522 / 523 users - given the small reservoir, do you switch infusion sites each time, or “double up” - two reservoirs in sequence, one site, then change sites ?
Scott Leibrand
@scottleibrand
Aug 03 2016 03:01
I don't have T1D, but my impression is that most people choose 522 or 722 based on whether it can hold enough insulin to last through a single pump site. Changing sites regularly seems way more important than replacing reservoirs every time (they are easy to refill).
Martin Haeberli
@mhaeberli
Aug 03 2016 03:15
@scottleibrand thx
Dana Lewis
@danamlewis
Aug 03 2016 04:06
Yes. The site change every 3 days is for good reason (look up the studies and pics on what happens to sites inside your body over time, there’s a reason they seem less effective at the end), the 5 vs 7 size is about convenience of refills...
Martin Haeberli
@mhaeberli
Aug 03 2016 04:18
@danamlewis also thx … (i remember that some stuff builds up that makes the insulin less effective …)
Dana Lewis
@danamlewis
Aug 03 2016 04:18
yup
Dave Ewall
@daveewall
Aug 03 2016 06:59
@scottleibrand thanks, Scott. I was going down that road about the carb ratios myself, but then i thought that it must be something else if i have to lower them but keep using the same amount of insulin anyway. I had 10:1 for brekfast and 9:1 for lunch, and 12:1 for dinner, but its never happened at dinner now that i think about it. I set them all to 12:1, but since I'm in a different
...time zone for the week, ill have to keep it for a while and see if t makes a long term difference. Thanks for looking into it, i appreciate it.
Scott Leibrand
@scottleibrand
Aug 03 2016 14:23
@daveewall sounds good. we really designed AMA to work like DIYPS, which means an eating soon mode before each meal, then bolusing to cover about 2/3 of the carbs at meal time, and the rest as/if needed based on BG rise. It can of course handle a full meal bolus, but the combination of a too-small meal bolus and telling AMA (via too-low carb ratios) you've already bolused for all the carbs doesn't work as well it seems.
John Dodds
@johners97
Aug 03 2016 16:15
Hey folks, just back from training. Blood sugars shot up a little bit due to adrenaline then started falling. I think i'm going to install auto sensitivity
The purple predictive BG line that is supposed to be displayed, it only displays two cyan ones. I believe it's called ar2 projection?
Is the one that's meant to be displayed inbetween a median?
Chris Oattes
@cjo20
Aug 03 2016 16:18
no, it's calculated differently
John Dodds
@johners97
Aug 03 2016 16:18
I'll get back here later on if I get really stuck. Giving myself until 10pm to get the additional things added
How ist it calculated?
is*
Chris Oattes
@cjo20
Aug 03 2016 16:19
using iob and cob data
John Dodds
@johners97
Aug 03 2016 16:19
Hmm, does it use a differential equation?
Chris Oattes
@cjo20
Aug 03 2016 16:19
that's not a particularly clear question
John Dodds
@johners97
Aug 03 2016 16:20
Ok, iob and cob data is just data. The computer program must be doing something with the data. So it must be making calculations. Are the calculations applications of a differential equation?
Chris Oattes
@cjo20
Aug 03 2016 16:21
The code is on github :)
John Dodds
@johners97
Aug 03 2016 16:22
I know!
It's fine anyway, once i've learnt enough javascript I want to add in some of my own equations
Chris Oattes
@cjo20
Aug 03 2016 16:26
johners97: How old are you, if you don't mind me asking?
John Dodds
@johners97
Aug 03 2016 16:27
18
why?
Chris Oattes
@cjo20
Aug 03 2016 16:28
just curious :)
John Dodds
@johners97
Aug 03 2016 16:28
What age are you, if you don't mine me asking :D
Chris Oattes
@cjo20
Aug 03 2016 16:28
30
John Dodds
@johners97
Aug 03 2016 16:29
I know I look about 12 so... i'm not surprised you asked lol
Colin Lennon
@colinlennon
Aug 03 2016 16:31
@johners97 I've just noticed you're in Glasgow. I am too, so if there's anything you need to borrow further down the line - e.g. a CC debugger for flashing firmware onto TI and ERF sticks - let me know! :)
Chris Oattes
@cjo20
Aug 03 2016 16:32
johners97: '97' because that's when you were born?
John Dodds
@johners97
Aug 03 2016 16:33
@colinlennon Haha I have a CC debugger already, how long have you had it? PS how do your diabetes team react to openaps
Eric Jensen
@elnjensen
Aug 03 2016 16:35
@mhaeberli Re: your question about 5xx vs. 7xx and reservoir sizes, here's my experience. My daily insulin use is about 30 units/day. So even the 180-ml reservoirs in the 5xx series last me about six days, but I can't go much more than two days on an infusion site without it going bad. So for me, cartridge changes and site changes are pretty much totally unrelated to each other; I change sites every two days, and change the cartridge when it's empty, about every six days.
Colin Lennon
@colinlennon
Aug 03 2016 16:36
@johners97 Ah okay, cool. I've been up and running with an Edison-based rig for a quite a while now, maybe about 5 months. My doc was very supportive and positive about it, but I think she's the exception to the rule. I'm actually going along to the Diabetes Managed Care Network meeting next month to present on what I'm doing, but I've heard through the grapevine that a lot of the docs are fairly sceptical about the whole Nightscout / OpenAPS / wearenotwaiting thing :worried:
Eric Jensen
@elnjensen
Aug 03 2016 16:38
All - I'm working on a possible PR for the docs, and curious about what others think. I have made a small mod to the templates for the HTML docs so that there can be "previous" and "next" links at the bottom of each page to help navigate through the documentation. These already exist in the sidebar (at the very bottom), but they are easy to miss, and require scrolling back up if it's a long page (which many of them are) - this would also add links like that to the end of each page. Useful?
Martin Haeberli
@mhaeberli
Aug 03 2016 16:39
@elnjensen thx
Chris Oattes
@cjo20
Aug 03 2016 16:39
@colinlennon You'll have to convince them to be less sceptical
Eric Jensen
@elnjensen
Aug 03 2016 16:41
Re: infusion sites, one of my long-term worries is just running out of spots on my body to attach things. :worried: I'm pretty lean, so I have pretty limited real estate for infusion sites and sensor sites - hopefully they will hold up OK!
Colin Lennon
@colinlennon
Aug 03 2016 16:41
@cjo20 I'll try! Hopefully my hba1c improvement might change minds.
John Dodds
@johners97
Aug 03 2016 16:49
@colinlennon Diabetes Managed Care Network?
Andy Sharrow
@dramageek
Aug 03 2016 17:12
I could use help connecting my G4 Share receiver into my Edison rig using openxshareble
I've paired the receiver with bluetoothctl, and it shows as connected.
Installed the helpers as in the docs. Added the serial as in the openxshareble docs.
This message was deleted
This message was deleted
edison@openaps1:~/openaps$ openaps use cgm glucose
ERROR:dbus.proxies:Introspect error on :1.1:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.16" (uid=1002 pid=2209 comm="/usr/bin/python /usr/local/bin/openaps-use cgm glu") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=1908 comm="bluetoothd ")
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', u'openaps-use')
  File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 1510, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-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.1.5-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.1.5-py2.7.egg/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openxshareble/__init__.py", line 87, in __call__
    self.setup_ble( )
  File "/usr/local/lib/python2.7/dist-packages/openxshareble/app.py", line 29, in setup_ble
    self.adapter = self.ble.get_default_adapter()
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_BluefruitLE/interfaces/provider.py", line 94, in get_default_adapter
    adapters = self.list_adapters()
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 164, in list_adapters
    return map(BluezAdapter, self._get_objects('org.bluez.Adapter1'))
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 179, in _get_objects
    for opath, interfaces in self._bluez.GetManagedObjects().iteritems():
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.16" (uid=1002 pid=2209 comm="/usr/bin/python /usr/local/bin/openaps-use cgm glu") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=1908 comm="bluetoothd ")
Eric
@ecc1
Aug 03 2016 17:33
I've found 3 areas of potential BLE trouble on the Edison. I'm away from my system fur a few days so I can't paste the exact details, but hopefully this will still help. 1. Make sure blutoothd is running with the --expwrimental option. 2. Make sure you've added permissions for the right org.bluez interfaces, either for root or for the user you'll be running as, to the Bluetooth.conf
file.
  1. You might have to do sudo hciconfig hci0 down; sudo hciconfig hci0 up before it will work.
(sorry, couldnt get the numbered list right from my phone)
Or the typos
Dana Lewis
@danamlewis
Aug 03 2016 18:21
@elnjensen you just made my day :)
@johners97 you need AMA to get the purple line display. And no differential equations, ever. It's as simple as the plain language reference design describes the calculations :)
Andy Sharrow
@dramageek
Aug 03 2016 20:25
@ecc1 Bluez was apparently never installed. I must have missed that going back and forth between the mmeowlink and openaps documentations.
Now it pairs, but won't connect. In sudo bluetoothctl:
[bluetooth]# paired-devices
Device D2:2D:87:96:E1:EC DEXCOMRX
[bluetooth]# info D2:2D:87:96:E1:EC
Device D2:2D:87:96:E1:EC
    Name: DEXCOMRX
    Alias: DEXCOMRX
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: no
    LegacyPairing: no
[bluetooth]# connect D2:2D:87:96:E1:EC
Attempting to connect to D2:2D:87:96:E1:EC
[CHG] Device D2:2D:87:96:E1:EC Connected: yes
[CHG] Device D2:2D:87:96:E1:EC Connected: no
Failed to connect: org.bluez.Error.Failed
[CHG] Device D2:2D:87:96:E1:EC Connected: yes
[CHG] Device D2:2D:87:96:E1:EC Connected: no
Eric Jensen
@elnjensen
Aug 03 2016 22:17
@danamlewis Glad to hear it! :smiley_cat: Now that I have wrapped my head around how Sphinx templating works, let me know if there are other formatting tweaks that you think would be helpful for the docs.
Dana Lewis
@danamlewis
Aug 03 2016 22:17
:) :D
Eric Jensen
@elnjensen
Aug 03 2016 22:26
But I probably should start spending more time reading the docs, too, or I'll never get my own openaps system going!
Eric Jensen
@elnjensen
Aug 03 2016 22:42
A practical question for the experienced loopers here: in the open-loop phase of your setup, in practice how did you actually see and execute (or not) the suggested actions? The code is running on the Raspberry Pi, but there's no obvious way to see what is happening unless you have an open SSH connection to it. Did you take some time each day where you were just sitting at a computer and watching the loop suggestions?
Chris Oattes
@cjo20
Aug 03 2016 22:49
@elnjensen Do you have a phone/device that can use a service called pushbullet?
Eric Jensen
@elnjensen
Aug 03 2016 22:56
Yes, I have an iPhone. Looks like there's an iOS app. So you can push notifications to the phone, presumably. Can it go the other way, too? Any examples to point me to? Thanks!
Chris Oattes
@cjo20
Aug 03 2016 23:02
@elnjensen Give me a minute and I'll write up a guide
Dana Lewis
@danamlewis
Aug 03 2016 23:03
:+1:
Eric Jensen
@elnjensen
Aug 03 2016 23:04
@cjo20 Awesome, thank you!
Paul Martin
@Spazholio
Aug 03 2016 23:05
So I’m using this battery: https://www.adafruit.com/products/1781. I’m noticing that it’s hitting 20% capacity a lot sooner than it used to. I presume that LiPo batteries have a limited number of recharges before they can’t hold a charge well anymore - should this happen in a few months with nightly charging? Should I stock up on these?
Chris Oattes
@cjo20
Aug 03 2016 23:12
@Spazholio you don't want to stock up on them, because lipos don't store brilliantly
John Dodds
@johners97
Aug 03 2016 23:13
My pump got wet and i've got a button error . Googled it and is caused by moisture getting in between the gold and metal plates under the adhesive... If medtronic send me out a new pump do I have the choice of what pump to get?
Chris Oattes
@cjo20
Aug 03 2016 23:15
@johners97 no
@elnjensen openaps/docs#337 Try that
Scott Leibrand
@scottleibrand
Aug 03 2016 23:20
@johners97 they will send you one that can't loop
so don't send yours back. if the error doesn't clear when it dries, you can carefully remove the plastic over the buttons to clean them out: there are pictures and videos online showing how
Dana Lewis
@danamlewis
Aug 03 2016 23:20
@johners97 there's a link on the hardware page in the docs if you want to try to fix it. But don't send your pump to Medtronic, you won't get a loop able one back
John Dodds
@johners97
Aug 03 2016 23:24
@danamlewis I fixed it, it was wet underneath. Used a drier. Infact, now my pump works more effectively. The delay between pressing the button and action is about 3-4 times faster!
Dana Lewis
@danamlewis
Aug 03 2016 23:24
Nice
Scott Leibrand
@scottleibrand
Aug 03 2016 23:24
fwiw that error can also caused by other gunk in the buttons, not just water.
Chris Oattes
@cjo20
Aug 03 2016 23:25
Note: Getting your pump wet isn't a good method of trying to solve button problems :P
John Dodds
@johners97
Aug 03 2016 23:25
:)) @scottleibrand Yeah, read something about that. So relieved! I
That is true...Chris
The UK is quite a damp place so this was inevitable. Besides, I had it beside me in the bath. Feel like I should slap myself in the face. What we do just to keep CGM in range...
Chris Oattes
@cjo20
Aug 03 2016 23:26
You don't need to keep the CGM in range like that
it's ok to be out of range for a while
John Dodds
@johners97
Aug 03 2016 23:28
I realize that now, I'm relatively new to CGM, didn't know
no excuse though, that warrants a face slap :D
Eric Jensen
@elnjensen
Aug 03 2016 23:30
@cjo20 Awesome, thanks! I'll give it a try. To act on notifications, did you just enter into pump manually?
Yeah, I just manually set the rates.
John Dodds
@johners97
Aug 03 2016 23:31
Is anyone here on a ketogenic diet?
Matt Walker
@walker0
Aug 03 2016 23:32
I do low carb and so does @Spazholio I believe
John Dodds
@johners97
Aug 03 2016 23:33
Ok, did your insulin sensitivities rise?
Matt Walker
@walker0
Aug 03 2016 23:34
Not particularly but I wouldn't be surprised if they did. I definitely find I have to pay much more attention to how much protein I'm eating and bolus for it appropriately
Chris Oattes
@cjo20
Aug 03 2016 23:35
There's probably a factor that your carb counting will tend to be more accurate for ketogenic amounts. If you're 10% off with 10g carbs, a 1:10 ratio will still cover it. If you're 10% off with 100g carbs, it won't
Paul Martin
@Spazholio
Aug 03 2016 23:40
I haven't noticed my sensitivity change all that much. What I DID notice is that I take way less insulin and am in control way more than I ever was before.
Matt Walker
@walker0
Aug 03 2016 23:50
I agree with taking way less insulin than before and way more time in range, I am consistently getting above 93% time in range (72-144) month to month with openaps and low carb. The time out of range is almost exclusively eating out and guessing carbs wildly
John Dodds
@johners97
Aug 03 2016 23:53
What's your HbA1c been like
Matt Walker
@walker0
Aug 03 2016 23:54
I haven't had one done since I started low carb or OpenAPS but dexcom indicates it should be 5.1-5.2% and it has been spot on with my past HbA1c measurements