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

11th
May 2016
Ben West
@bewest
May 11 2016 00:12 UTC
we have that already
it's in openaps-contrib
oh, not quite, nevermind, misread ;-)
for timeseries it works, I think for random json objects, you can combine them using cat foo.json bar.json | json -g
I introduced yargs to determine-basal
that will help with some of the command line argument handling
Ben West
@bewest
May 11 2016 00:17 UTC
the templates stuff should alleviate the need to curry your arguments in a json file
it's kind of ironic... that's the job openaps is doing for you, anyway
openaps is currying your args in an INI file
adding another layer on top to do same thing again seems kind of funny to me
Dan Piessens
@dpiessens
May 11 2016 01:02 UTC
Hey @bewest have you ever gotten openxshareble working on an Edison? I used your code base as a starting point to get G5 communication working but it's AidaFruit is crashing on importing GObject
 self.ble = Adafruit_BluefruitLE.get_provider()
  File "/home/root/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/platform.py", line 38, in get_provider
    from .bluez_dbus.provider import BluezProvider
  File "/home/root/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 31, in <module>
    from gi.repository import GObject
ImportError: No module named gi.repository
This is your fork of Adafruit btw
Dan Piessens
@dpiessens
May 11 2016 01:07 UTC
I did check the package manager and opkg lists this: python-pygobject - 2.28.3-r0
tazitoo
@tazitoo
May 11 2016 01:16 UTC
...I have openxshareble working on edison - but I changed from yocto to debian jessie.
Ben West
@bewest
May 11 2016 01:24 UTC
hmmm
on debian style systems, the package is called python-gobject
oh
actually
I'm wrong
that one is um, python-gi I believe
Dan Piessens
@dpiessens
May 11 2016 01:25 UTC
ok let me see if I can install that
Ben West
@bewest
May 11 2016 01:29 UTC
hmm, this doesn't look promising https://github.com/Guacamayo/meta-gir
Dan Piessens
@dpiessens
May 11 2016 01:33 UTC
yeah that doesn't look good. I'm wondering if I can just remove that part of the provider, I don't really need a gui if that's what it's for
Ben West
@bewest
May 11 2016 01:40 UTC
this bit of technology is kind of like windows registry or ios framework stuff/plists
it's used heavily by gui stuff/desktop environment, but it's not the gui stuff per say, it's a lot of the system glue that allows linking services together in a flexible way, it might be possible to get only the needed bits rather than full package
@tazitoo what bluez version did you wind up using?
also, which kernel? default?
tazitoo
@tazitoo
May 11 2016 01:56 UTC
I followed @TC2013 instructions - bluez 5.37
Ben West
@bewest
May 11 2016 01:59 UTC
nice
what kernel?
uname -a if possible
that says for rasperrypi
oh, it says for edison too
Dan Piessens
@dpiessens
May 11 2016 02:04 UTC
Hmm, looks like I'll have to switch OS then
tazitoo
@tazitoo
May 11 2016 02:05 UTC
maybe - hold on - doubt the jessie kernel is any newer...
'ernie' is booting
ernie[22:05]:~ > uname -a
Linux ernie 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
and many thanks to you Ben for the work on openxshareble!
I'll post a cat picture or two tomorrow....
:+1:
Dan Piessens
@dpiessens
May 11 2016 02:08 UTC
@tazitoo Were these the instructions you use to switch the OS image: https://learn.sparkfun.com/tutorials/loading-debian-ubilinux-on-the-edison
tazitoo
@tazitoo
May 11 2016 02:09 UTC
yeah - that's part of it - @oskarpearson has a wiki that is a little more complet
Dan Piessens
@dpiessens
May 11 2016 02:09 UTC
oh right ok
it is a thing of beauty when it all comes together and the first loop happens...had the portable edison rig in my pocket for 10 hours and it seemed flawless - haven't scrubbed the logs to look for gaps yet...
Dan Piessens
@dpiessens
May 11 2016 02:13 UTC
Yeah I'm looking forward to it, I have a PI 2 rig now, but need this as I want this during the day
tazitoo
@tazitoo
May 11 2016 02:13 UTC
anyways - time to call is a day - good luck. If you have to reflash, it's still pretty quick to set up...
Dan Piessens
@dpiessens
May 11 2016 02:14 UTC
thanks, me too battery is dying
tazitoo
@tazitoo
May 11 2016 02:14 UTC
Understand that - I dropped about 1.5 lbs from Pi2 to edison.
ciao
David Daniels
@ddaniels1
May 11 2016 03:18 UTC
Just filled the pump hooked up my daughter and tried a real manual loop for the first time. Got this error any ideas:

pi@raspberrypi:~/Documents/try5 $ openaps loop
PREFLIGHT OK
pump://JSON/read_settings/settings/settings.json
reporting settings/settings.json
pump://JSON/read_bg_targets/settings/bg_targets.json
reporting settings/bg_targets.json
pump://JSON/read_insulin_sensitivities/settings/insulin_sensitivities.json
reporting settings/insulin_sensitivities.json
pump://JSON/read_selected_basal_profile/settings/basal_profile.json
settings/basal_profile.json raised ACK is 0 bytes:

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.0', 'openaps-report')
File "/usr/local/lib/python2.7/dist-packages/setuptools-20.10.1-py2.7.egg/pkgresources/_init.py", line 719, in run_script
File "/usr/local/lib/python2.7/dist-packages/setuptools-20.10.1-py2.7.egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.1.0-py2.7.egg/openaps/vendors/medtronic.py", line 219, in main
return getattr(self.pump.model, name)(self.get_params(args))
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/models/init.py", line 234, in read_selected_basal_profile
return patterns[selected](
kwds)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/models/init.py", line 25, in call
self.response = inst.session.query(self.msg, **kwds)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/session.py", line 101, in query
self.execute(command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/session.py", line 98, in execute
return super(type(self), self).execute(command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/session.py", line 35, in execute
self.transfer( )
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/session.py", line 61, in transfer
return self.stick.transmit_packet(self.command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/stick.py", line 861, in transmit_packet
result = self.process( )
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/stick.py", line 496, in process
ack, response = self.command.respond(raw)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/stick.py", line 411, in respond
ack, body = super(type(self), self).respond(raw)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.23-py2.7.egg/decocare/stick.py", line 71, in respond
raise AckError("ACK is 0 bytes:\n%s" % lib.hexdump(raw))
decocare.errors.AckError: ACK is 0 bytes:

No CGM data..

Dana Lewis
@danamlewis
May 11 2016 03:19 UTC
Same pump you were using before to test, or not?
David Daniels
@ddaniels1
May 11 2016 03:20 UTC
same pump. only thing I did is fill the reservoir.
at the end it says "No CGM data" is that the error? Using nightscout for glucose.json and NS is up
Dana Lewis
@danamlewis
May 11 2016 03:21 UTC
Weird. This is with carelink? Or ti and mmeowlink?
David Daniels
@ddaniels1
May 11 2016 03:21 UTC
carelink
JaysonEwer
@JaysonEwer
May 11 2016 03:22 UTC
And you have the temp basal type set correctly?
David Daniels
@ddaniels1
May 11 2016 03:22 UTC
you mean units not %?
Dana Lewis
@danamlewis
May 11 2016 03:22 UTC
Is she close to the rig? If ack is 0 bytes could be range
Correct re units required for temps
David Daniels
@ddaniels1
May 11 2016 03:22 UTC
Yes that is correct.
Dana Lewis
@danamlewis
May 11 2016 03:22 UTC
But that's usually a different error
Range possibly?
David Daniels
@ddaniels1
May 11 2016 03:23 UTC
probably range
JaysonEwer
@JaysonEwer
May 11 2016 03:23 UTC
yeah, most likely range
Dana Lewis
@danamlewis
May 11 2016 03:23 UTC
K. I imagine it's harder with her :) but try getting rig closer and do again
David Daniels
@ddaniels1
May 11 2016 03:23 UTC
how much better is the range with the TI? can I use that with the RPI or do I need to go with Edison?
Dana Lewis
@danamlewis
May 11 2016 03:24 UTC
You can do with Pi. It's a lot better.
JaysonEwer
@JaysonEwer
May 11 2016 03:24 UTC
I have mine carelink attached to a 1 meter usb extension that I remove from the bag and prop right next to my bed so it can communicate with my pump all night.
Dana Lewis
@danamlewis
May 11 2016 03:24 UTC
Requires some extra work, but with a 1yo might be worth going ahead and doing it
Check the mmeowlink wiki for details on that, it's not in the main openaps docs right now @ddaniels1
David Daniels
@ddaniels1
May 11 2016 03:26 UTC
OK, I was starting to loop at the docs for the TI, I will start working on that this weekend. Is the battery better with the Edison?
Dana Lewis
@danamlewis
May 11 2016 03:27 UTC
Yes it's smaller battery and can last longer because less power required compared to big Pi setup
David Daniels
@ddaniels1
May 11 2016 03:27 UTC
Back to the ACK 0 bytes error is it weird that it passed preflight and ran the initial reports and then errored out?
Dana Lewis
@danamlewis
May 11 2016 03:28 UTC
But a lot of us keep a Pi for bedside still too
If it errored out on pump history, no it's not weird because it's such a long command
David Daniels
@ddaniels1
May 11 2016 03:28 UTC
Would you suggest getting the TI working on PI first and then converting to Edison or doing all at once?
Dana Lewis
@danamlewis
May 11 2016 03:29 UTC
I tend to suggest people get one rig going, then it's a lot easier to build 2nd and 3rd rigs because you've got the algorithm logic squared away, cron, etc.
But if you're already to that point, and want to build more rigs, you can, just more work and more time before you've got a working loop
Edison etc has its own headaches to deal with
David Daniels
@ddaniels1
May 11 2016 03:36 UTC
OK, also she was on the omnipod which was super convienient to bolus because of the remote. I know the 523 has a remote for simple bolus but don't think one can enter carbs. Any way around this?
hard to pin a 1 year old down to get pump off and on when trying to bolus several times per meal because you are never sure how much she will eat.
Dana Lewis
@danamlewis
May 11 2016 03:38 UTC
You can enter carbs via NS carb portal, which may help
And Doing that enables AMA which helps with not knowing how much food after the initial partial meal bolus
David Daniels
@ddaniels1
May 11 2016 03:40 UTC
Don't I need to do some special configuring to get AMA working? IS that worthwhile up front or should I run with the basic loop for a while?
Dana Lewis
@danamlewis
May 11 2016 03:40 UTC
Not a complete fix, but it's similar to how I do (example now -60 carb dinner, only did 3u because walking mile+ home and not sure when absorption pauses due to activity. Once BGs start rising again, AMA knows carbs left and will assist getting more iob going to cover end of meal)
Yea. It's advanced feature, I would get basic loop live first. Just wanted you to know carb entry via NS is possible
(It's easier to trouble shoot additional features one at a time after you know you have a live working loop)
David Daniels
@ddaniels1
May 11 2016 03:45 UTC
OK thanks. looking at my upload-status report see the error near the bottom, any idea what is missing?
'''"pump": {
"battery": {
"status": "normal",
"voltage": 1.26
},
"status": {
"status": "normal",
"timestamp": "2016-05-11T03:34:36.000Z",
"bolusing": false,
"suspended": false
},
"reservoir": 113.2,
"clock": "2016-05-10T20:34:44-07:00"
},
"openaps": {
"suggested": {
"bg": 166,
"temp": "absolute",
"snoozeBG": 126,
"timestamp": "2016-05-11T03:34:42.000Z",
"reason": "Eventual BG 41<110bolus snooze: eventual BG range 41-126", "eventualBG": 41, "tick": -6 }, "iob": { "timestamp": "2016-05-11T03:34:33.000Z", "activity": 0.01268938271604938, "iob": 1.3393293353955555, "bolusiob": 0.5654761693866668 }, "enacted": { "bg": 165, "temp": "absolute", "missing": [ "duration", "rate" ], "timestamp": "2016-05-11T00:31:15.000Z", "snoozeBG": 158, "reason": "Eventual BG 158>130, adj. req. rate:1.1 to maxSafeBasal:0.9, temp 0.8 >~ req 0.8999999999999999U/hr",
"eventualBG": 158,
"error": "missing required input fields",
"input": {
"bg": 165,
"temp": "absolute",
"snoozeBG": 158,
"reason": "Eventual BG 158>130, adj. req. rate:1.1 to maxSafeBasal:0.9, temp 0.8 >~ req 0.8999999999999999U/hr",
"eventualBG": 158,
"tick": "+2"
},
"tick": "+2"
}
'''
Dana Lewis
@danamlewis
May 11 2016 03:48 UTC
Which version of openaps do you have?
Ah, you have new.
That's the expected output when no action is required
David Daniels
@ddaniels1
May 11 2016 03:49 UTC
OK, just wanted to make sure everything was seemingly working proprerly
Dana Lewis
@danamlewis
May 11 2016 03:49 UTC
Duration is missing up there, that's an output showing no temp needs to be set from determine basal. Then openaps says you're missing something, don't enact. So it's fine
You could set a slightly low temp and watch it read and cancel that. But it's fine.
:+1:
David Daniels
@ddaniels1
May 11 2016 04:10 UTC
I noticed the temp basal does not show on NS until the next cycle, I think this because in my loop alias temp_basal is collected as part of the gather alias up front, then enact changes the temp basal and the temp_basal report is not re run prior to upload-status. Perhaps I could re invoke the temp_basal report after enact.json and before upload status and that would fix it to update on that cycle. Any issues with trying that?
David Daniels
@ddaniels1
May 11 2016 04:16 UTC
Actually, now that I look again temp_basal is not part of the upload-status report.
Scott Leibrand
@scottleibrand
May 11 2016 04:24 UTC
it's pumphistory that you're probably looking for (that's what drives the blue basal lines)
normally that gets pulled at the beginning of the loop, like you said. it's certainly possible to pull that after an enact and before an upload, but since the pumphistory query is the slowest part of the loop, you might as well just run the loop more often at that point. No matter what you do with your loop aliases, the basal visualization will always be a few minutes behind, because it takes awhile to re-download the pumphistory and upload it to NS.
David Daniels
@ddaniels1
May 11 2016 04:44 UTC
Got it thanks
A historic moment.....Openaps Just issued the first command to my daughter's pump. Told my wife we were going to call her APS "Hal", she is a few years younger than me and didn't get the reference:)
Screenshot 2016-05-10 21.43.41.png
Dana Lewis
@danamlewis
May 11 2016 04:47 UTC
:)
Happy first live loop moment! :)
Scott Leibrand
@scottleibrand
May 11 2016 04:51 UTC
:confetti_ball: :clap:
Jason Calabrese
@jasoncalabrese
May 11 2016 05:51 UTC
:clap:
David Daniels
@ddaniels1
May 11 2016 05:52 UTC
Thanks!, nice WSJ article by the way
Jason Calabrese
@jasoncalabrese
May 11 2016 06:01 UTC
thanks
David Daniels
@ddaniels1
May 11 2016 06:02 UTC
You all have helped me immensely. Thank you so much.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:04 UTC
so great to watch this take off, going to be a lot more loopers
what are all the gray dots on your chart? something might not be uploading right
David Daniels
@ddaniels1
May 11 2016 06:07 UTC
That was me programming the pump with her correction factor, IC ratio ect right before hooking her up for the first time. Switched her from the omnipod to Medtronic to make this work :)
YEah, when I first started doing this I thought this might be a good thing until the commercial versions come along. I have the suspicion now that this group will likely be one or many steps ahead of what the commercial guys can do because of the regulatory environment we live in. I am a cardiologist that does a lot of device development and I get very frustrated with our federal agency. So glad we have the opportunity to DIY and there legally can't be much interference.
Scott Leibrand
@scottleibrand
May 11 2016 06:11 UTC
:+1: yes, I suspect it will take a few generations for the commercial systems to catch up.
Maybe iLet will be better than OpenAPS, once they get glucagon approved...
Jason Calabrese
@jasoncalabrese
May 11 2016 06:12 UTC
not because they don't know how, but they will be forced to take steps
maybe they'll make the iLet flashable
David Daniels
@ddaniels1
May 11 2016 06:15 UTC
Not sure about that. There was a big metanalysis in the Lancet I believe about single vs. dual hormone systems. very minimal difference in hypos that is statistically, but not clinically significant.
Possible it could make meal bolusing simpler, which really seems like the final frontier. If you've got the cushion of the glucagon on the bottom end once can be a bit more cavalier about meal dosing.
Scott Leibrand
@scottleibrand
May 11 2016 06:16 UTC
Those studies are often difficult. Study design requires them to use really conservative targets.
Being able to dose aggressively with the glucagon cushion will allow much better averages / a1c's.
David Daniels
@ddaniels1
May 11 2016 06:18 UTC
I've heard of people on Openaps getting under 6%, that seems pretty good to me, but having the protection from the lows seems an added bonus I agree
Glucagon works very quick even at doses of 1-2 mcg. We have given it to our daugther sub q and faster than any carb you can take
Scott Leibrand
@scottleibrand
May 11 2016 06:19 UTC
Nice.
iLet will be able to eliminate carb entry, even with insulin only. That'll be nice.
Still have to do meal announcements, but only S/M/L.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:22 UTC
I think we could do that
Scott Leibrand
@scottleibrand
May 11 2016 06:23 UTC
I think we might be close to being able to do that with AMA, but I haven't really tested how precise the bolus needs to be.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:23 UTC
could remove some limits to allow a very high temp for right after announcement if steady/rising
Scott Leibrand
@scottleibrand
May 11 2016 06:23 UTC
Maybe with eating soon plus a S/M/L meal bolus plus AMA we could match iLet, dunno.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:24 UTC
but with eating soon might not need it
it would work with whatever this stomach bug did
David Daniels
@ddaniels1
May 11 2016 06:25 UTC
what is eating soon?
Jason Calabrese
@jasoncalabrese
May 11 2016 06:25 UTC
a temp target to 80 before a meal
Scott Leibrand
@scottleibrand
May 11 2016 06:25 UTC
If you do it soon enough (an hour before) you get enough insulin activity going to blunt the meal spike.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:26 UTC
with some meals an hour has been too much
Scott Leibrand
@scottleibrand
May 11 2016 06:26 UTC
The insulin activity allows the liver to pull out the incoming carbs into glycogen storage.
Hmm, too much? It shouldn't send him below 80...
Jason Calabrese
@jasoncalabrese
May 11 2016 06:27 UTC
depends on the meal, need to back off on the bolus more I think
David Daniels
@ddaniels1
May 11 2016 06:27 UTC
How do you issue that command?
Scott Leibrand
@scottleibrand
May 11 2016 06:27 UTC
or are you saying 1h eating soon plus meal bolus sends him low later?
it's an advanced feature, only in AMA branch.
But you activate it from Nightscout.
Or in our case from DIYPS.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:28 UTC
I'm still trying to adjust to it, but then everything changed after he got sick
David Daniels
@ddaniels1
May 11 2016 06:28 UTC
Figured it was part of AMA, from NS I see
Jason Calabrese
@jasoncalabrese
May 11 2016 06:28 UTC
so many uncovered carbs today
can't really see it on the chart since I wasn't entering them all to prevent ama from trying to catch up
David Daniels
@ddaniels1
May 11 2016 06:29 UTC
Jason does the battery last long enough on the Edison to last the whole day?
Scott Leibrand
@scottleibrand
May 11 2016 06:29 UTC
i am really liking the idea of a minimum level of assumed carb absorption, maybe 3 mg/dL per 5m.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:29 UTC
yeah and then some
with the 2000mAh battery it goes like 20 hours
never ran it down
Scott Leibrand
@scottleibrand
May 11 2016 06:30 UTC
That way even if the carbs never show up in BGs, it decays them by the time they age off.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:31 UTC
that would make the number look a lot more realistic too
it did work great before the stomach bug
Scott Leibrand
@scottleibrand
May 11 2016 06:32 UTC
Yeah, that's quite the stress test.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:33 UTC
last time this happened we had a bunch of tests done, everything was screwed up for about a week, and then just went back to normal
he says he feels fine
David Daniels
@ddaniels1
May 11 2016 06:34 UTC
IF only there was a sensor that could detect when someone was eating and the volume based on how many times they swallowed. Use that to drive meal dosing. then no more thinking...
Scott Leibrand
@scottleibrand
May 11 2016 06:34 UTC
Maybe could detect chewing more easily via audio...
David Daniels
@ddaniels1
May 11 2016 06:34 UTC
Maybe a "special necklace"
Scott Leibrand
@scottleibrand
May 11 2016 06:35 UTC
meal announcement could be made super easy: even could have a dedicated bracelet with S/M/L meal and exercise buttons....
David Daniels
@ddaniels1
May 11 2016 06:36 UTC
When you swallow, certain muscle groups are activated in a very specific way. If done right, You can't fake it out
Put your hand on your neck right now and swallow
Scott Leibrand
@scottleibrand
May 11 2016 06:36 UTC
Seems like you'd need it in contact with the neck, though: seems uncomfortable.
The throat even.
Jason Calabrese
@jasoncalabrese
May 11 2016 06:37 UTC
but drinking water or juice would sound the same
David Daniels
@ddaniels1
May 11 2016 06:37 UTC
Yes, perhaps the sensor just taps the user on the wrist via the "special bracelet" to remind them, then they click S/ML
S/M/L
Jason Calabrese
@jasoncalabrese
May 11 2016 06:38 UTC
we have our endo appt tomorrow, last time was right before we started sending the rig to school
Hristina Dimova
@xpucuto
May 11 2016 06:38 UTC
@jasoncalabrese how to activate the AMA so i can use meal soon ? do i have to clone the branch on the pi ? or somewhere in ns ?
Jason Calabrese
@jasoncalabrese
May 11 2016 06:38 UTC
trying to print 3 month reports, but I don't think they are ever going to load
everything needed on the NS side is in dev
on the pi you need the advanced-meal-assist branch, but also need to setup several new reports
Hristina Dimova
@xpucuto
May 11 2016 06:39 UTC
ok so i will update my dev branch in ns and sync the website. And then the easting soon will appear on my treatments list ?
Jason Calabrese
@jasoncalabrese
May 11 2016 06:39 UTC
what I have is very hacky, but works good so I haven't cleaned it up
yeah, it will show when you update
but to get the purple lines you need to get some things setup in your loop
Scott Leibrand
@scottleibrand
May 11 2016 06:40 UTC
When you switch to AMA branch it will break your loop until you set up new reports etc.
Hristina Dimova
@xpucuto
May 11 2016 06:40 UTC
oh so simple, thank you. Regarding the report you can try showing for 1 month and just change the dates ;)
Scott Leibrand
@scottleibrand
May 11 2016 06:41 UTC
So do it on an extra rig when you have time to fiddle with it.
Hristina Dimova
@xpucuto
May 11 2016 06:41 UTC
my extra rig with TI is still not working
Jason Calabrese
@jasoncalabrese
May 11 2016 06:41 UTC
I really want the full 3 months to compare a1c estimate
Scott Leibrand
@scottleibrand
May 11 2016 06:41 UTC
I'd fix that first then.
Hristina Dimova
@xpucuto
May 11 2016 06:41 UTC
i wish i could
my magic wand is not working ;)
Scott Leibrand
@scottleibrand
May 11 2016 06:41 UTC
;-)
what is it doing?
Hristina Dimova
@xpucuto
May 11 2016 06:42 UTC
saying dev/ttyAMC1 is busy if i am not mistaking
i removed again the pump device added it nothing changed
tracked all the steps from the instalation guide for mmeowlink
Scott Leibrand
@scottleibrand
May 11 2016 06:43 UTC
how do you know that is the right device name?
Hristina Dimova
@xpucuto
May 11 2016 06:43 UTC
but didint find a missed step
Scott Leibrand
@scottleibrand
May 11 2016 06:43 UTC
TI via USB?
Hristina Dimova
@xpucuto
May 11 2016 06:43 UTC
well it is not it is ACM0 but when i add this as a port when adding the device in pump.ini is goes to ACM1
yes
Scott Leibrand
@scottleibrand
May 11 2016 06:43 UTC
should be able to set up the udev rules to get a /dev/mmeowlink...
Hristina Dimova
@xpucuto
May 11 2016 06:43 UTC
you gave me a command how to check it
Scott Leibrand
@scottleibrand
May 11 2016 06:45 UTC
make sure nothing is running in cron, and do a full power cycle...
could also be a firmware thing...
Hristina Dimova
@xpucuto
May 11 2016 06:45 UTC
yes i have already stopped cron because it was causing trouble
full power cycle shoudl be reboot right ?
:blush:
Jason Calabrese
@jasoncalabrese
May 11 2016 06:46 UTC
if you're using usb try ls -l /dev/serial/by-id/, mine is /dev/serial/by-id/usb-Nightscout_subg_rfspy_000002-if00
you can get a nicer name with some udev config
Hristina Dimova
@xpucuto
May 11 2016 06:47 UTC
pi@malinka1:~/bulgaria $ ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 May 10 16:56 usb-Nightscout_subg_rfspy_000002-if00 -> ../../ttyACM0
i guess its the same
Jason Calabrese
@jasoncalabrese
May 11 2016 06:47 UTC
that is pointing to ttyACM0
Hristina Dimova
@xpucuto
May 11 2016 06:48 UTC
yes when i add the pump with it in the pump.ini it changes to ACM1
even after i manually change it with nano to ACM0 it doesnt want to pick up data from the pump
you asked about the mmtune probably i have installed it 2 ot 3 times
:)
Jason Calabrese
@jasoncalabrese
May 11 2016 06:51 UTC
90 report finished
Hristina Dimova
@xpucuto
May 11 2016 06:51 UTC
how did it take ?
Jason Calabrese
@jasoncalabrese
May 11 2016 06:51 UTC
Screenshot 2016-05-10 23.49.25.png
took at least 30mins
Hristina Dimova
@xpucuto
May 11 2016 06:52 UTC
green is my new favorite colour , i abandon the red for a good cause
great job to all of you
Jason Calabrese
@jasoncalabrese
May 11 2016 06:53 UTC
last a1c was 6, so this predicts no change
I normally bring a bunch of printouts, think I might just bring that
Hristina Dimova
@xpucuto
May 11 2016 06:55 UTC
says more than enough
Jason Calabrese
@jasoncalabrese
May 11 2016 06:55 UTC
Screenshot 2016-05-10 23.49.47.png
or maybe he'd like to try to find a pattern with that...
Hristina Dimova
@xpucuto
May 11 2016 06:55 UTC
:D
Jason Calabrese
@jasoncalabrese
May 11 2016 06:58 UTC
Screenshot 2016-05-10 23.58.34.png
in that you can see a nice pattern in waking BG
Hristina Dimova
@xpucuto
May 11 2016 06:59 UTC
i can guess for sure when you wake him up ;)
Milos Kozak
@MilosKozak
May 11 2016 07:00 UTC
blob
@jasoncalabrese it took 1.2 min on azure
your openaps must be generating much more records than on danar
Jason Calabrese
@jasoncalabrese
May 11 2016 07:01 UTC
I still have tons of temps from the triple enact bug
they should move out of the 90 window soon
crazy how close that is to mine
Milos Kozak
@MilosKozak
May 11 2016 07:02 UTC
that's probably the issue .... this was on very old laptop
Jason Calabrese
@jasoncalabrese
May 11 2016 07:02 UTC
how long have you been running the loop?
Milos Kozak
@MilosKozak
May 11 2016 07:03 UTC
our real hba1c is usualy 5 points IFCC higher .... probably meter is off
2.5 months or so
you must be better. i set range to 4-10
Jason Calabrese
@jasoncalabrese
May 11 2016 07:04 UTC
I was hoping for 85% in range, maybe without spring break it would have happened
I'm using 80-170
Milos Kozak
@MilosKozak
May 11 2016 07:06 UTC
working on meal assist. this is still old master. and trying to use extended boluses for temps 200%+ ...... i hope it will make it better ...
but still not reliable enough
Jason Calabrese
@jasoncalabrese
May 11 2016 07:07 UTC
the communications?
Milos Kozak
@MilosKozak
May 11 2016 07:10 UTC
complicated coding .... unable to use history for what has been done on danar ....
Jason Calabrese
@jasoncalabrese
May 11 2016 07:14 UTC
you have to keep your own state?
Milos Kozak
@MilosKozak
May 11 2016 07:15 UTC
yeah, track everything and compare with state from pump
using extended boluses made it very complicated .... meal assist was easy ....
Stephan
@MosiGitHub
May 11 2016 07:22 UTC
@scottleibrand Hi Scott, just for info. Tonight son came to low while looping (nothing bad, because nightscout was alerting), but I was thinking about why. In the late evening I recognized that auto-sens was judging an excess resistance and increased his basal by 0.2 (what means up to 40 %). This in combination with some sport he did could be the reason. I am going on a business trip tody so I will deactivate auto-sens for the next couple days until I have time for further investigation.
Another topic concerning AMA: I took a look at your nice setup script to find out what was missing in my setup of the other rig and used a couple of your lines. I found that in my setup openaps was complaining about misssing args at two points and added them manually. You want me to do a PR concerning the script or is this so unoffficial that the info is sufficient?
to make it clear: the args were missing in my setup after using some of your lines. So I think the args needed to be in the setup.sh as well...
John Sjolund
@sjolundjohn
May 11 2016 07:27 UTC

Hi there, just wondering if there has been any success in getting the below working:

openapscontrib.timezones

This is the last bit holding me up from going live

Error that I get:
pi@raspberrypi:~/openaps $ openaps vendor add openapscontrib.timezones
No module named recurrent
openapscontrib.timezones doesn't seem to be an importable python module
If it is a python module, try using --path to influence
PYTHONPATH
Ben West
@bewest
May 11 2016 07:32 UTC
sudo pip install recurrent to fix that
John Sjolund
@sjolundjohn
May 11 2016 07:36 UTC
@bewest Yes sir that did it, many thanks! Going to do some final testing offline and then hope to hook up from Monday and do some daytime testing.
Hristina Dimova
@xpucuto
May 11 2016 07:47 UTC
my receiver is draining too much power i tried a command to disable it but after a preflight or reboot its start to drain the battery again.
Ben West
@bewest
May 11 2016 07:58 UTC
which command to disable did you try?
oh, reboot reset the status if I understand?
Hristina Dimova
@xpucuto
May 11 2016 08:05 UTC
yes
openaps use cgm WriteChargerCurrentSetting —Off
Ben West
@bewest
May 11 2016 08:11 UTC
ah ok, you sent that command
then it stopped recharging?
Hristina Dimova
@xpucuto
May 11 2016 08:11 UTC
yes
Ben West
@bewest
May 11 2016 08:11 UTC
then some kind of reboot happened?
Hristina Dimova
@xpucuto
May 11 2016 08:11 UTC
no when i reboot to swtich battery or just to fix something it starts to charge it again
i tries also with -status Off
Ben West
@bewest
May 11 2016 08:12 UTC
on the pi?
Hristina Dimova
@xpucuto
May 11 2016 08:12 UTC
yes
Ben West
@bewest
May 11 2016 08:12 UTC
so the pi rebooted
Hristina Dimova
@xpucuto
May 11 2016 08:12 UTC
yes
Ben West
@bewest
May 11 2016 08:12 UTC
this is through usb cable?
Hristina Dimova
@xpucuto
May 11 2016 08:12 UTC
the receiver is plugged trough usb cable
i dont have share here
Ben West
@bewest
May 11 2016 08:13 UTC
ok so usb cable attached, you issue "stop charging" command
it stops charging
then the pi reboots
nothing on dex changes
and when pi reboots, the dexcom starts charging again
Hristina Dimova
@xpucuto
May 11 2016 08:14 UTC
after every reboot the dex starts charging again, pi doesnt reboot after i run the command fo rpower off the dex
Ben West
@bewest
May 11 2016 08:14 UTC
very interesting :-)
Hristina Dimova
@xpucuto
May 11 2016 08:14 UTC
if you want interesting bugs i am the right person
Ben West
@bewest
May 11 2016 08:14 UTC
almost like it's renewing power source
I eat bugs for breakfast :-)
that sound s grosser than I meant ;-0
Hristina Dimova
@xpucuto
May 11 2016 08:15 UTC
but its bedtime now for you ,not a time for breakfast.
hahahah yeah
i am sure i di something because my basal stops from nowhere , probably from not enought power
Ben West
@bewest
May 11 2016 08:16 UTC
you are first or maybe second user to report feedback for that command :-), so I'm quite delighted
Hristina Dimova
@xpucuto
May 11 2016 08:16 UTC
but i am revoring my image on the sd card and
Ben West
@bewest
May 11 2016 08:16 UTC
been waiting on feedback :-)
wasn't sure of performance properties
now we know when "the power source" reboots, the logic to maybe turn off charging is also rest
so it'd each "plug in" that determines the charging logic on dexcom itself
I wasn't sure before, your report confirms it
that sound you hear is the wheel of progress grinding forward
Hristina Dimova
@xpucuto
May 11 2016 08:19 UTC
i thought i am not running the command correctly
i like that sound
do you know that it doesnt matter whether you type —status Off or just —Off the answer is the same ? but the off must be with capital O
Ben West
@bewest
May 11 2016 08:23 UTC
ah, very good
good question: it does not
that's a "feature" where I tried to make the flags work in multiple "easy" ways
Hristina Dimova
@xpucuto
May 11 2016 08:24 UTC
i dont get it but its ok as long as you know what about :)
Ben West
@bewest
May 11 2016 08:24 UTC
I figured the one style would be easier for some while the single switch would be easier for others
they are equivalient
Hristina Dimova
@xpucuto
May 11 2016 08:24 UTC
:+1:
Ben West
@bewest
May 11 2016 08:25 UTC
they "target" the same feature, yes
it's very clever to pick up on that
very clever question
Hristina Dimova
@xpucuto
May 11 2016 08:25 UTC
:dancer: im getting better with every day
Ben West
@bewest
May 11 2016 08:25 UTC
I welcome any suggested explanation for others
I hope you find similar wear and tear in the other tools
the openaps tools all have similar style
Hristina Dimova
@xpucuto
May 11 2016 08:28 UTC
the one tool i find hard to understand it use I understand how it workd for units and sensitifity but not for the other examples ….
it takes time of course
Ben West
@bewest
May 11 2016 08:29 UTC
yeah, use is pretty interesting
Hristina Dimova
@xpucuto
May 11 2016 08:29 UTC
Ben while you are here is there a short instruction how to get cgm data from ns site when dec is notplugged in ?
Ben West
@bewest
May 11 2016 08:29 UTC
hmmmmm yes
maybe
sort of
I would combine two things
I believe you now have ns device
Hristina Dimova
@xpucuto
May 11 2016 08:30 UTC
yes i want that too, to be able to get data when there is a receiver an if not to look online
yes i do
Ben West
@bewest
May 11 2016 08:30 UTC
so you can use ns shell get entries.json 'count=20'
or simimilar for report:
Hristina Dimova
@xpucuto
May 11 2016 08:31 UTC
so to add this for monitor/glucose.json ?
Ben West
@bewest
May 11 2016 08:31 UTC
report add nightscout/fetched-entries.json JSON ns shell get entries.json 'count=20'
for example that would create nightscout/fetched-entries.json with last 20 sgv recods
Hristina Dimova
@xpucuto
May 11 2016 08:32 UTC
why i cant invoke it ?
something more missing right ?
Ben West
@bewest
May 11 2016 08:33 UTC
hmmmm
try the use
openaps use ns shell get entries.json 'count=20'
Hristina Dimova
@xpucuto
May 11 2016 08:33 UTC
no JSON can be decoded
probablyi have messed up somehing else i will try it when i get to the original working sd card image
Ben West
@bewest
May 11 2016 08:34 UTC
oh, hmm
Hristina Dimova
@xpucuto
May 11 2016 08:34 UTC
and then i have to add this fetched-entries to glucose.json , right?
Ben West
@bewest
May 11 2016 08:34 UTC
hmm, that use works for me
hmm, yeah, I would try to experiment with lsgaps and select from the tz device
select can combine several "time series" into one
Hristina Dimova
@xpucuto
May 11 2016 08:35 UTC
i dont have lsgaps and select as openaps commands
update git to dev again ?
Ben West
@bewest
May 11 2016 08:36 UTC
so you can use tz select nightscout/fetched-entries.json monitor/glucose-from-dexcom.json and get single glucose
oh
hmm
openaps-contrib part, yes
so maybe
Hristina Dimova
@xpucuto
May 11 2016 08:36 UTC
i dont think so
Ben West
@bewest
May 11 2016 08:36 UTC
erm, depending on ls ~/src
Hristina Dimova
@xpucuto
May 11 2016 08:36 UTC
oref0
Ben West
@bewest
May 11 2016 08:37 UTC
sudo pip install -U recurrent openaps-contrib
bewest @bewest crosses fingers
Hristina Dimova
@xpucuto
May 11 2016 08:38 UTC
still oref0 only
but it di install a lot of things
Ben West
@bewest
May 11 2016 08:38 UTC
:-)
hmmm openaps use tz -h
Hristina Dimova
@xpucuto
May 11 2016 08:39 UTC
pi@malinka2:~/bulgaria $ openaps use tz -h
usage: openaps-use tz [-h] USAGE ...

optional arguments:
  -h, --help  show this help message and exit

## Device tz:
  vendor openapscontrib.timezones

  Timezones - manage timezones in diabetes data with ease.



  USAGE       Usage Details
    clock     Manage timezones of device clock.
    glucose   Manage timezones on glucose times.
    rezone    Manage how timezones are expressed in data.
Ben West
@bewest
May 11 2016 08:39 UTC

  USAGE       Usage Details
    clock     Manage timezones of device clock.
    glucose   Manage timezones on glucose times.
    lsgaps
    rezone    Manage how timezones are expressed in data.
    select    select some data out of a timeseries
Hristina Dimova
@xpucuto
May 11 2016 08:39 UTC
:(
This message was deleted
Ben West
@bewest
May 11 2016 08:39 UTC
hehe, yes, sad panda
but problem is clear at least
Hristina Dimova
@xpucuto
May 11 2016 08:39 UTC
how to write it @me or?
yes
Ben West
@bewest
May 11 2016 08:40 UTC
backlashme
/me
xpucuto @xpucuto :smile_cat:
Hristina Dimova
@xpucuto
May 11 2016 08:41 UTC
i hope you didnt drink coffee this afternoon
Ben West
@bewest
May 11 2016 08:41 UTC
hmm, ok, I expected the sudo pip install git+git://github.com/openaps/openaps-contrib.git to install new openaps-contrib
that variant is slightly different
I wonder what version it might have installed
Hristina Dimova
@xpucuto
May 11 2016 08:42 UTC
i@malinka2:~/bulgaria $ openaps use tz -h
usage: openaps-use tz [-h] USAGE ...

optional arguments:
  -h, --help  show this help message and exit

## Device tz:
  vendor openapscontrib.timezones

  Timezones - manage timezones in diabetes data with ease.



  USAGE       Usage Details
    clock     Manage timezones of device clock.
    glucose   Manage timezones on glucose times.
    lsgaps
    rezone    Manage how timezones are expressed in data.
    select    select some data out of a timeseries
Ben West
@bewest
May 11 2016 08:42 UTC
oh wow
Hristina Dimova
@xpucuto
May 11 2016 08:42 UTC
i got them
Ben West
@bewest
May 11 2016 08:42 UTC
that's it
ok so select I hope you will find interesting
above I mentioned it can take a-history.json b-history.json
I haven't explained this well
but I haven not taken coffee
Hristina Dimova
@xpucuto
May 11 2016 08:43 UTC
ok i will read about it in -h
go to bed
Ben West
@bewest
May 11 2016 08:43 UTC
and I am indeed feeling tired
there's not much help there :-(
I encourage exploration and feedback
Hristina Dimova
@xpucuto
May 11 2016 08:44 UTC
i will experiment ;)
Ben West
@bewest
May 11 2016 08:44 UTC
there's a tool missing I think, still
Hristina Dimova
@xpucuto
May 11 2016 08:44 UTC
you learn best from your imstakes
Ben West
@bewest
May 11 2016 08:44 UTC
one that says ok, given lsgaps
lsgaps generates list of gaps
makedexcom, or medtronic, or ns generate data since "oldest" gap
then run select on that ;-)
will be a nifty trick, it's not perfected quite yet
Hristina Dimova
@xpucuto
May 11 2016 08:45 UTC
too complicated stop here so i dont get confused more than i am
Ben West
@bewest
May 11 2016 08:45 UTC
hehehe
well, I apologize it's not even better
Hristina Dimova
@xpucuto
May 11 2016 08:46 UTC
its ok dont have to apologize
Ben West
@bewest
May 11 2016 08:46 UTC
I hope the new tools invite exploration :-)
Hristina Dimova
@xpucuto
May 11 2016 08:46 UTC
:)
Scott Leibrand
@scottleibrand
May 11 2016 14:54 UTC
@MosiGitHub ouch. How much pumphistory and glucose data were you providing to autosens? It does best with 24h of glucose data and at least 24h+DIA of pumphistory.
And which of my branches were you using? There are a bunch, some of them older than others. If there's something I forgot to add in there, a PR would be welcomed. That script isn't necessarily maintained in a state it can just be run: it's more of a place for me to keep track of how I set things up. But if it's missing anything, I will need to fix that at some point...
Scott Leibrand
@scottleibrand
May 11 2016 15:00 UTC
@MosiGitHub on autosens, I might need to adjust the minimum amount of data required or something like that if you were passing a shorter glucose or pumphistory. Or there could be something else about autosens that doesn't work for your situation. Thanks for testing it: hopefully we can collect enough info from the git history to reproduce exactly why it was detecting excess resistance when it shouldn't have.
JaysonEwer
@JaysonEwer
May 11 2016 15:08 UTC
@ddaniels1 Congrats! :clap:
David Young
@wgs4
May 11 2016 15:57 UTC
so happy, just communicated with the pump for first time. :-)
Matthias
@ceben80
May 11 2016 15:57 UTC
:+1:
with Carelink or TI-Stick?
David Young
@wgs4
May 11 2016 15:58 UTC
carelink.
Jason Calabrese
@jasoncalabrese
May 11 2016 15:59 UTC
:smile:
David Young
@wgs4
May 11 2016 16:02 UTC
1st attempt to communicate with CGM:
openaps use G5 iter_glucose 1
returned
File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.0', 'openaps-use')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-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.0-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.0-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.1.0-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.1.0-py2.7.egg/openaps/vendors/dexcom.py", line 271, in main
    for item in self.dexcom.iter_records(self.RECORD_TYPE):
AttributeError: 'NoneType' object has no attribute 'iter_records’
The CGM has not been connected to sensor for a week or so.. Is that the cause?
Dana Lewis
@danamlewis
May 11 2016 16:03 UTC
is your cgm on right now?
David Young
@wgs4
May 11 2016 16:03 UTC
it is powered on. It does not have a sensor to communicate with.
Dana Lewis
@danamlewis
May 11 2016 16:04 UTC
that’s probably why, then.
needs some data to feedit
David Young
@wgs4
May 11 2016 16:05 UTC
ok cool. Any way to generate fake data? I’m not really interested in sticking a sensor in myself for the sake of hacking. :-)
Dana Lewis
@danamlewis
May 11 2016 16:07 UTC
yes, there’s a way. but not one we’ve built :p
David Young
@wgs4
May 11 2016 16:07 UTC
doh!
Dana Lewis
@danamlewis
May 11 2016 16:07 UTC
any reason the person who will be using the system can’t go ahead and wear the CGM and start getting data, which you could pull down from NS to use for testing/building?
David Young
@wgs4
May 11 2016 16:08 UTC
They are wearing a different CGM that is connected to NS and collecting data for a week now.
Dana Lewis
@danamlewis
May 11 2016 16:08 UTC
@wgs4 why not pull data from that, then, into your setup?
Jason Calabrese
@jasoncalabrese
May 11 2016 16:08 UTC
yeah, that sounds like the way to go
David Young
@wgs4
May 11 2016 16:09 UTC
  1. ignorance :-)
  2. trying to setup the system so I am collecting data from CGM via USB for live use.
  3. I’d like the hybrid system where Pi collects data from CGM then dumps to NS.
I’ve got to learn how to pull the NS data to do the rest.. = my ignorance. :-)
Dana Lewis
@danamlewis
May 11 2016 16:10 UTC
heh
it’s probably faster if the person wearing the dexcom is not around, to build the system using their remote cgm data pulled from NS first. you can always then tweak it later so it pulls from cgm via usb.
David Young
@wgs4
May 11 2016 16:12 UTC
I got my hands on all the diabetic hardware today. up until now, I’ve only had a Pi. :-O
JaysonEwer
@JaysonEwer
May 11 2016 16:12 UTC
:+1:
Stephan
@MosiGitHub
May 11 2016 16:20 UTC
@scottleibrand thanks for your assistance. I will do the PR after being back from a business tip. The loop was running only a couple hours before, because my son is not looping at school and I have changed some correction factors in the evening. These factors were only valid for the daytime but could have influenced the calculations as well. I leave auto-sens off until I am back next weekend and then I will try again. I have to hurry now. The AMA script is a nice help by the way, because I found nowhere anything about temptargets except there ;-)
Scott Leibrand
@scottleibrand
May 11 2016 16:22 UTC
;-)
so yeah, sounds like we need a higher minimum on the amount of data required for autosens.
David Young
@wgs4
May 11 2016 16:37 UTC
so the MiniMED 640G is avaiable in UK and Australia from what I’m reading..? Does it have the logic to do all that OAPS is doing?
Or, am I misunderstanding the availability of the 640G ?
Dana Lewis
@danamlewis
May 11 2016 16:39 UTC
that’s a commercial device that does some elements of predictive reduction of insulin, etc.
it’s not a full hybrid closed loop, it will not high temp for highs, etc.
that will be in their 670G which is slated to go to FDA for US approval in mid 2017 of next year
David Young
@wgs4
May 11 2016 16:40 UTC
I thought what I was reading indicated it fell short on the Highs
Dana Lewis
@danamlewis
May 11 2016 16:41 UTC
yep
Matthias
@ceben80
May 11 2016 16:41 UTC
640G....bunch of garbage :wink: in terms of openAPS
David Young
@wgs4
May 11 2016 16:41 UTC
do you expect the CGM functionality of 670G to be in-line with dexcom’s high level of accuracy ?
Scott Leibrand
@scottleibrand
May 11 2016 16:43 UTC
enlite 3 may not be quite as good as the current-gen dexcom, but better than the original G4 firmware (pre-505). good enough for AP purposes, anyway (unlike current-gen enlite for a lot of people)
Dana Lewis
@danamlewis
May 11 2016 16:44 UTC
I have a friend doing a 670G trial and she is happy enough with the most modern Enlite..but she often still wears her dexcom, too.
Matthias
@ceben80
May 11 2016 16:45 UTC
but the ranges are so high, that's right?
Chris Oattes
@cjo20
May 11 2016 16:45 UTC
the most modern enlite is pretty good most of the time. Until it starts reading low and shuts off my basal for an hour in bed because of low-suspend, when really I was ~9 (160), because I was lying on the sensor
and my pump was under the duvet cover, so the beeping didn't wake me
Dana Lewis
@danamlewis
May 11 2016 16:54 UTC
@ceben80 my observation (having not worn the system) is it tends to be a bit conservative.
my other observation is it’s a black box, so you can’t see the predictions/forecast, or the decision making.
some people are ok with that type of system. I am not sure what my comfort level will be with it.
Matthias
@ceben80
May 11 2016 16:56 UTC
that means, never change a running system - openAPS :star2:
Dan Piessens
@dpiessens
May 11 2016 17:45 UTC
@danamlewis Do you know if there's a way to dial up logging when running a command? I know the code has messages but I don't see them in the console
Bill Stackpole
@billstackpole
May 11 2016 18:53 UTC
Hi all - wondering if someone has a pointer to a NightScout doc to allow me to use my OpenAPS as the primary uploader to mongo (or similar). Currently using the Minimed Connect, but there's some wonkiness in it thats frustrating me. Would like ultimately to have a tiered implementation - with OpenAPS reading the CGM from my pump FIRST, and using the network connection to OpenAPS for uploading glucose data. SECOND I'd like to fall back to the MiniMed connect (for now). (I'm thinking longer term of moving from the Enlight / Connect to the DexCom G5 - any reasons not to do that?)
Also looking for some scripting solutions to provide tiered network access (BLE NAP, then WiFi (WPA2 enterprise), then WiFi (WPA2 personal), then WiFi (phone hotspot). Appreciate any pointers / URLs / other helpful resources.
Bill Stackpole
@billstackpole
May 11 2016 18:58 UTC
@danamlewis - can your friend speak to the Enlight range limitations with respect to the 670G trial? I struggle with the limited range of the CareLink / Enlight sensor paired with a 723 - if the pump is not on the same side of the body as the sensor it often loses the connection.
Dan Piessens
@dpiessens
May 11 2016 18:59 UTC
@billstackpole Here's part of the solution for multiple APS: http://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks
Dana Lewis
@danamlewis
May 11 2016 18:59 UTC
@dpiessens not sure what you mean re: “dial up logging when running a command”? Can you clarify Q?
Dan Piessens
@dpiessens
May 11 2016 18:59 UTC
you can add a priority=1 (order as you see fit) to each network to proioritize
Bill Stackpole
@billstackpole
May 11 2016 18:59 UTC
Add to that the fact that the 723 "expires" the sensor every three days, rather than the claimed 6-day Enlight sensor lifetime. I reset the sensor and run it till it dies, but would be nice to change the default sensor lifetime to match the actual expected. Have heard that the DexCom sensor can be reset a few times as well.
@dpiessens - Thankyou!!!
Dan Piessens
@dpiessens
May 11 2016 19:00 UTC
@danamlewis there's a lot of log.info commands in the code and I'm trying to figure out how to activate that log
Bill Stackpole
@billstackpole
May 11 2016 19:00 UTC
:+1: :sparkles:
Dana Lewis
@danamlewis
May 11 2016 19:00 UTC
@billstackpole not sure the range is improved any.
re: using different sources for CGM…yes it’s possible, but don’t think we have it documented in the docs
Bill Stackpole
@billstackpole
May 11 2016 19:01 UTC
Yeah - that in mind, very likely to shift to Dexcom. Any word on whether the other pump mfr has yet turned on BT? (Tslim I think I heard was going to do that?)
Dana Lewis
@danamlewis
May 11 2016 19:01 UTC
we do between CGM and NS, though, so even if you borrowed from our stuff, you’ll have to do some magic around falling back to Connect since we’re not using it
@billstackpole no pump manufacturer has enabled BT for read/write comms in any modern pump
Bill Stackpole
@billstackpole
May 11 2016 19:02 UTC
Minimed Connect works OK but when it loses BT connectivity to the phone, the update to NS stops functioning (so I get "holes" in my data stream).
Boo hiss on no comms enabled via BT.
Dana Lewis
@danamlewis
May 11 2016 19:02 UTC
yep. i’m sure there’s a way to do it, just saying we haven’t done it ;)
Dan Piessens
@dpiessens
May 11 2016 19:02 UTC
@billstackpole I kept this to do BT networks with my phone but haven't tried it https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138706
Bill Stackpole
@billstackpole
May 11 2016 19:04 UTC
K. Those two links will keep me busy for a while <smile>
Bill Stackpole
@billstackpole
May 11 2016 19:06 UTC
I did enable BT on my Google Fi phone (5x - fi.google.com) and had a PAN going, but was doing it via the RasPi gui - found some references to the CLI BT cmds - now I need to translate to CLI. Will advise (and will put up a PR) when I crack that nut.
gotta go - tnx for the links - will keep you in the loop on progress.
Ben West
@bewest
May 11 2016 19:19 UTC
@dpiessens yes, which logging stuff would you like to see?
@dpiessens the logging is actually very flexible/configurable, you can increase the verbosity and control where it goes
by default, I usually expect it to show up in /var/log/messages
Dana Lewis
@danamlewis
May 11 2016 19:21 UTC
@billstackpole for more noodling later re: switching where you pull glucose from: https://github.com/scottleibrand/openaps-sh/blob/master/setup.sh#L113 & related
:+1: @bewest
Ben West
@bewest
May 11 2016 19:23 UTC
in your pump.ini, you can add logLevel and logAddress, logLevel=INFO or similar
Scott Leibrand
@scottleibrand
May 11 2016 19:23 UTC
@billstackpole see also the different branches for different versions of that file, adding more and more features.
Ben West
@bewest
May 11 2016 19:24 UTC
DEBUG, WARN, INFO, CRITICAL, ERROR I believe
it will be sent to logAddress, which by default is /dev/log aka syslog
Bill Stackpole
@billstackpole
May 11 2016 19:26 UTC
Mobile now ( so much slower typing) Tnx!
Dan Piessens
@dpiessens
May 11 2016 19:30 UTC
ah cool thanks @bewest that's what I'm looking for... need a lot of logging for this ble G5 setup :) It is scanning now that I switched my edison to ubilinux
Dana Lewis
@danamlewis
May 11 2016 19:30 UTC
:+1:
Thomas Emge
@ThomasEmge
May 11 2016 19:46 UTC
How do I get out of this one fatal: Unable to create '/home/pi/red_1/.git/refs/heads/master.lock': No space left on device
Scott Leibrand
@scottleibrand
May 11 2016 19:58 UTC
Check du -h and du -hi to see what is full to start with.
Dana Lewis
@danamlewis
May 11 2016 20:04 UTC
@baughaw is this the kind of thing you were ultimately thinking about? Just popped this page into dev so we could all riff on it and add more: https://github.com/openaps/docs/blob/dev/docs/docs/walkthrough/phase-6/Usability-considerations.md
All - please PR in your tidbits, tips, or Qs you think should be added and we can fill them in collectively. ^
Thomas Emge
@ThomasEmge
May 11 2016 20:12 UTC
I have about 1GB in my .git folder. To flush\abandon my local commits is it git gc --aggressive --prune=now?
Scott Leibrand
@scottleibrand
May 11 2016 20:15 UTC
If you have 1GB free that's not the problem. It's probably out of inodes. Some form of git gc is probably still what you want though.
Colin Lennon
@colinlennon
May 11 2016 20:22 UTC
@billstackpole Re setting up BLE tethering on Raspian via the command line - I added some steps to the docs last week
This has been working perfectly for me on Android (Google Nexus 6p)
Let me know if I can help with anything
Andrew Baugh
@baughaw
May 11 2016 20:36 UTC
@danamlewis That is exactly what I was thinking! Sorry I haven't gotten my list together. I will PR any tidbits as soon as I can. Great work!
Dana Lewis
@danamlewis
May 11 2016 20:38 UTC
Sounds good, thanks @baughaw
John Benjamin
@Bender1061
May 11 2016 20:52 UTC
So I have a rig running in open loop. First time im carrying it around with me today. Using a raspberry pi 3, and a smaller 7000mAh battery. Using my work iphone to teather it to the net (why use my data?) Im actually pretty impressed how long the battery is lasting. I bought a 26000 one and well ill keep it but probaly did not need it. So its open loop and with how im looking at what is going on from NS, ive never made so many changes in one day to my basel rates. Nice thing is i also have the carelink uploader which is also uploading to NS, with my personal galaxy s7 im keeping an eye on things there with my android watch. Looking like more options with a pebble, so I'll be getting one of those soon. Probabaly be a week or two till I start losed loop control, but yeah this is pretty amazing (though i think my wife is getting tired of me sitting in front of the computer every evening)
Thomas Emge
@ThomasEmge
May 11 2016 20:58 UTC
@scottleibrand yes, I am out of inodes. Thanks, careful cleaning it is.
Dana Lewis
@danamlewis
May 11 2016 20:59 UTC
@Bender1061 glad to hear it's going well!
Toby Canning
@TC2013
May 11 2016 21:30 UTC
@danamlewis I wanted to follow up on the post you made last week about the advanced autosens to create a better basal profile on an hour by hour basis. Does it look like this idea might gain traction and is there anything I can do to assist?
Dana Lewis
@danamlewis
May 11 2016 21:33 UTC
Definitely think it'll get traction, @TC2013 - it's on our (my and @scottleibrand 's) unofficial but as official as it gets list to do. Can't think of anything right now other than seeing if anyone else has ideas about requirements of other things we should be incorporating into it. Then of course we'll need help validating and testing after we do the plumbing.
Brian Bonner
@itsn0tm3
May 11 2016 21:34 UTC
:+1:
diabeticgonewild
@diabeticgonewild
May 11 2016 21:58 UTC
@bewest I'm confused as to what is going on in the TI Stick* section. I tried making a directory for the command, to no avail openaps/docs#132
diabeticgonewild
@diabeticgonewild
May 11 2016 22:05 UTC
I guess it's the place where rfspy or whatever is going to be installed, right? What would this be in the case of soldering the TI stick to the Edison?
Ben West
@bewest
May 11 2016 22:50 UTC
it's something like /dev/MFA123 or something, I believe, not 100% sure
/dev/ttyMFD1
Paul Martin
@Spazholio
May 11 2016 23:27 UTC
I feel like I’m doing something boneheaded. I finally got my Dexcom G4, and am attempting to do my first upload to NS. However, when I invoke the “monitor/upload-status.json” report, I get the following error: “AttributeError: 'Namespace' object has no attribute 'clock’”. I was advised to ask in here. Help?
David Daniels
@ddaniels1
May 11 2016 23:38 UTC
What do people find is a good target or target range once on a closed loop. We stared at 105-115. Does a small range work best or a single number?
Dana Lewis
@danamlewis
May 11 2016 23:39 UTC
doesn’t matter, but we usually suggest people start a bit higher (130-140) and work down from there as you get more comfortable with how it’s behaving.
Ben West
@bewest
May 11 2016 23:39 UTC
hard to say, I think mine is very similar to that
mine was already set to that before I started looping though
yeah, a range of about 5 - 20 seems to be pretty common
not sure if that's just folk lore or if there are solid reasons for it
Dana Lewis
@danamlewis
May 11 2016 23:42 UTC
it just depends on whether it annoys you to watch it “thrash” (switch back and forth from high to low temps) depending on the range of the target
Ben West
@bewest
May 11 2016 23:42 UTC
a range wider than your ISF would be kind of odd though
ah good point, too
@Spazholio Paul - I believe you either don't have "clock" defined in your [device "ns-status"] or in your report - upload-status.json you aren't passing the clock report to it correctly.
Jason Calabrese
@jasoncalabrese
May 11 2016 23:52 UTC
Are there any docs for uploading dexcom via OpenAPS to NS, I think that's what @Spazholio is looking for, I know there's been discussion about it, but not sure what came of it
Paul Martin
@Spazholio
May 11 2016 23:52 UTC

In openaps.ini, I have:
[device "ns-status"] vendor = openaps.vendors.process extra = ns-status.ini

And in ns-status.ini, I have:
[device "ns-status"] fields = clock iob suggested enacted battery reservoir status cmd = ns-status args =

This entry was created with this command openaps device add ns-status process --require "clock iob suggested enacted battery reservoir status" ns-status which I found here: http://openaps.readthedocs.io/en/master/docs/walkthrough/phase-1/visualization.html (about 2/3 down the page).

…there were supposed to be line breaks in those code blocks. They were there when I pasted them, dammit.
There are no docs that I know of for uploading dexcom bg data to NS. I thought Paul for trying to upload treatment info
Paul Martin
@Spazholio
May 11 2016 23:55 UTC
It’s quite possible I’ve misunderstood the intent of the page that I was on. I mean, I have the requisite data, but I’ve not started actually looping yet. Still getting my feet wet with the Dexcom and CGM stuff.
That being said, even though I’m not actually looping, I still have the suggested.json, which would be what I’d act on if I were looping…correct?
That page allows you to upload treatment data to NS. There currently is no documents on how to use openaps to upload bg data from dexcom via openaps. There is plenty of documentation on getting bg data from dexcom to NS at http://www.nightscout.info/
Sorry - not sure if I am answering your question
Dan Piessens
@dpiessens
May 11 2016 23:59 UTC
@jasoncalabrese I found some at one point, I'll contribute my version of it, although with @bewest work on ns upload I may be able to clean it up