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

10th
Sep 2015
Dana Lewis
@danamlewis
Sep 10 2015 00:38
@channemann looking at your notes, what is "Add 8192cu.conf to /etc/modprobe.d/" ? Where the current doc says "sudo modprobe bcm2708_wdog"?
Chris Hannemann
@channemann
Sep 10 2015 00:42
Oh, that's a note for me
Two different things
There is the watchdog piece in the doc (Monica's writeup)
Dana Lewis
@danamlewis
Sep 10 2015 00:43
@channemann never mind. figuring out how to cat the instructions
yea
I got it now, yay google
thanks!
Chris Hannemann
@channemann
Sep 10 2015 00:43
ha, no worries
Dana Lewis
@danamlewis
Sep 10 2015 00:43
(Massive PR about to come soon about the raspberry pi setup)
Chris Hannemann
@channemann
Sep 10 2015 00:44
I think the link below where I say "Add 8192cu.conf to /etc/modprobe.d/" also explains it; has to do with the wifi dongle going into powersave
Oh, BTW, I believe where all of that installing of basic dependencies occurs, pip should also be installed
I believe it's required for openaps-monitor
Dana Lewis
@danamlewis
Sep 10 2015 00:48
K will get to the with all of the git installs next :)
Rachel Sandlain
@audiefile
Sep 10 2015 03:15
is there a special syntax to set up openaps alias? I seem to be missing something
Chris Hannemann
@channemann
Sep 10 2015 03:19
Here is an example:
openaps alias add refresh "report invoke read_settings.json read_bg_targets.json read_insulin_sensitivies.json read_selected_basal_profile.json read_carb_ratios.json"
so there, refresh is the name of the alias
and everything after report invoke is a report that was set up prior
Rachel Sandlain
@audiefile
Sep 10 2015 03:20
I was missing the " "
Chris Hannemann
@channemann
Sep 10 2015 03:20
Easy to miss
Rachel Sandlain
@audiefile
Sep 10 2015 03:20
I knew it was something simple like that I just couldn't see it!
thank you!
Chris Hannemann
@channemann
Sep 10 2015 03:20
Glad to help!
Dana Lewis
@danamlewis
Sep 10 2015 03:37
@bewest or @channemann : $ sudo openaps-install-udev-rules
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 915, in resource_string
return get_provider(package_or_requirement).get_resource_string(
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 213, in get_provider
import(moduleOrReq)
ImportError: No module named decocare
failed /etc/udev/rules.d/80-medtronic-carelink.rules
installed /etc/udev/rules.d/80-dexcom.rules
also:
$ sudo activate-global-python-argcomplete
sudo: activate-global-python-argcomplete: command not found
Ben West
@bewest
Sep 10 2015 03:38
confused, how did you install openaps?
Chris Hannemann
@channemann
Sep 10 2015 03:38
hmmmm, this sounds familiar
Ben West
@bewest
Sep 10 2015 03:38
that sounds like you mimght have synced a repo, but not run sudo python setup.py install
Dana Lewis
@danamlewis
Sep 10 2015 03:39
I did sudo easy_install -ZU openaps
Ben West
@bewest
Sep 10 2015 03:39
oh
hmmm
well that sounds bad
Dana Lewis
@danamlewis
Sep 10 2015 03:39
:D
Chris Hannemann
@channemann
Sep 10 2015 03:40
Trying to think if this was related to my DNS issue, @bewest
(or whatever that weird routing thing was)
Ben West
@bewest
Sep 10 2015 03:41
dunno, want to say no
Chris Hannemann
@channemann
Sep 10 2015 03:42
Yeah, just went and looked at that convo, was a different issue
Ben West
@bewest
Sep 10 2015 03:43
I remember there being an issue with the build artefacts
there's two kinds I think, the egg, and the tarball
think one of them is broken
or something
not sure
there's a way to download it using that special link syntax
https://github.com/openaps/openaps/releases/....
Chris Hannemann
@channemann
Sep 10 2015 03:45
Shouldn't need to though ...
Ben West
@bewest
Sep 10 2015 03:45
seems like it didn't get dependencies or something
Dana Lewis
@danamlewis
Sep 10 2015 03:46
hold on retrying with pip
pip fixed both of those issues
Ben West
@bewest
Sep 10 2015 03:50
oh... well then
guess I need to update my old ways
Chris Hannemann
@channemann
Sep 10 2015 03:50
weird
good to know
Scott Leibrand
@scottleibrand
Sep 10 2015 03:53
apt-get install python-pip installed python2.6 as a dependency, which might have been what it needed
Chris Hannemann
@channemann
Sep 10 2015 03:55
ahhhh, yes, that sounds very familiar @scottleibrand
I think it was something to do with pip switching the default python version on the system, perhaps?
Scott Leibrand
@scottleibrand
Sep 10 2015 03:57
yeah, probably something like that
anyway, Dana added python-pip to the prerequisites which should prevent it in future
sudo modprobe --first-time usbserial vendor=0x0a21 product=0x8001
(that's from insert.sh)
Dana Lewis
@danamlewis
Sep 10 2015 04:02
@bewest one other thing - having trouble in gitbooks now. I was in raspberry pi earlier this evening, but other pages are 404ing for me now suddenly. I can obviously go to the individual page to read from, but wondering overall what kills the books?
@scottleibrand that worked, will add it
Scott Leibrand
@scottleibrand
Sep 10 2015 04:02
let's check with @bewest first
@bewest are you still supposed to have to run insert.sh?
it doesn't seem to be included with decocare via easy_install
Ben West
@bewest
Sep 10 2015 04:17
no, that udev thing does the insert thing automatically
it's same thing
Dana Lewis
@danamlewis
Sep 10 2015 04:18
yea but didn't work until I did the sudo mod probe thing
Scott Leibrand
@scottleibrand
Sep 10 2015 04:18
it didn't work. does it require a reboot or something else to activate it?
Scott Leibrand
@scottleibrand
Sep 10 2015 05:02
ok, someone please school me on syntax here:
openaps report add iob.json text calciob --require "pumphistory.json profile.json clock.json" shell
trying to generate:
[report "iob.json"]
device = calciob
input = pumphistory.json profile.json clock.json
use = shell
reporter = text
that openaps report add syntax is incorrect
not sure how I'm supposed to provide those input fields though
Scott Leibrand
@scottleibrand
Sep 10 2015 05:12
@bewest @channemann @loudnate ^^
Nathan Racklyeft
@loudnate
Sep 10 2015 05:16
I'd take a look at the help for the "shell" use in the calciob device
I am pretty sure you need to put "shell" before ---require
Openaps use calciob shell -h
Scott Leibrand
@scottleibrand
Sep 10 2015 05:17
pi@raspberrypi ~/openaps-dev $ openaps report add iob.json text calciob shell --require="pumphistory.json profile.json clock.json"
usage: openaps-report [-h] [--version] {add,remove,show,invoke} ...
openaps-report: error: unrecognized arguments: --require=pumphistory.json profile.json clock.json
yeah, I looked at that help: not helpful
Chris Hannemann
@channemann
Sep 10 2015 05:18
hmmm, I haven't seen quotations used in a report add
Nathan Racklyeft
@loudnate
Sep 10 2015 05:18
Well if the help doesn't show "require" as a kwarg then that's the issue,
Scott Leibrand
@scottleibrand
Sep 10 2015 05:19
I'm just trying to figure out how to pull all those pieces of information from my openaps.ini into a single line command to generate it
I did it once about 6 months ago and since then have just copied and pasted the openaps.ini stanzas and modified as needed
Nathan Racklyeft
@loudnate
Sep 10 2015 05:19
After the "shell" command comes the arguments. What does the help command show as expect arguments for shell?
Scott Leibrand
@scottleibrand
Sep 10 2015 05:20

pi@raspberrypi ~/openaps-dev $ openaps use calciob shell -h
usage: openaps-use calciob shell [-h]

run a process in a subshell

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

it doesn't want my input, but when I run it without them it gives me a traceback
Nathan Racklyeft
@loudnate
Sep 10 2015 05:20
So it looks like it doesn't take any arguments :)
I don't know where that device came from,
Who wrote it?
Scott Leibrand
@scottleibrand
Sep 10 2015 05:20
I did.
[device "calciob"]
fields = input
cmd = calculate-iob
vendor = openaps.vendors.process
args =
openaps-js/bin/iob.js
Nathan Racklyeft
@loudnate
Sep 10 2015 05:21
Oh interesting, it's the process vendor
It's possible you need to specify those arguments during device creation rather than use.
I'd have to look at the code for the process vendor.
Scott Leibrand
@scottleibrand
Sep 10 2015 05:22
k, let me try something else
thx
Nathan Racklyeft
@loudnate
Sep 10 2015 05:22
But I'm on my phone. There should be some methods in the vendor package that define args
But I would make sure you can make the openaps-use command work before adding the report
Scott Leibrand
@scottleibrand
Sep 10 2015 05:24
yeah. I think some prereqs are still missing
fixing that first
Scott Leibrand
@scottleibrand
Sep 10 2015 05:58
figured it out. had to do --require input on the device
openaps device add calciob process --require input calculate-iob
openaps report add iob.json text calciob shell "pumphistory.json profile.json clock.json"
Ben West
@bewest
Sep 10 2015 06:51
yes
Scott Leibrand
@scottleibrand
Sep 10 2015 07:05
Does anyone have experience setting up nodejs tests? I think iob.js needs some tests, but I'm not sure how it's done. Any volunteers to do the first one?
John Males
@johnmales
Sep 10 2015 11:48
This message was deleted
John Males
@johnmales
Sep 10 2015 12:21

Hi All,
I wanted to introduce myself - my name is John Males and I am very impressed with the work you are doing here. I'm a medico by background but my interest is because of two of my children having T1D. I have a long history of fiddling with computers going as far back the Amiga (!) so hopefully I won't be too out of my depth. I'm looking to set this up and will appreciate your assistance as I go along. A few comments and questions:

  1. The quick install option for the decoder, dexcom_reader and openaps repos didn't work for me i.e.:
    curl -s https://gist.githubusercontent.com/bewest/84f134f7b6d5375e2f04/raw/b2275153d1731a8f43df8c2fe2563612382ed8d4/install.sh | bash
    Manually cloning each of the three repositories worked fine.
    The error message was:
    Cloning into 'decoding-carelink'... Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly Cloning into 'dexcom_reader'... Permission denied (publickey). fatal: The remote end hung up unexpectedly Cloning into 'openaps'... Permission denied (publickey). fatal: The remote end hung up unexpectedly bash: line 7: cd: decoding-carelink: No such file or directory python: can't open file 'setup.py': [Errno 2] No such file or directory bash: line 11: cd: dexcom_reader: No such file or directory python: can't open file 'setup.py': [Errno 2] No such file or directory bash: line 15: cd: openaps: No such file or directory python: can't open file 'setup.py': [Errno 2] No such file or directory

  2. Being in Australia I'm used to mmol/L - how do you deal with this? Is it best to use mg/dl and then convert only when displaying values, or is there another way of doing this?

  3. I have the carelink usb successfully reading values from my sons pump - it returns Medtronic model number 554 (model 512 according to the FCC ID). With the setup of the carelink on the Pi, do I need to run the sudo insert.sh at each reboot? If so, presumably you are doing this with a cron job?

  4. I have just received the cc1111 from TI - what are the pros/cons of this as opposed to the carelink? It is a bit smaller, is the range better or are there other advantages?

Thanks very much, sorry for the long post.

Lori
@LoriLori
Sep 10 2015 13:13
you might need to setup git because you are getting Permission denied (publickey)
create github account and get your public/private key
John Males
@johnmales
Sep 10 2015 13:38
@LorelaiL - Thanks, forgot that my Raspberry Pi didn't have ssh keys setup - duh!
Nathan Racklyeft
@loudnate
Sep 10 2015 15:09
@gljev welcome! You can find more about CC111x programming in the ps2/rileylink group.
Rachel Sandlain
@audiefile
Sep 10 2015 16:48
@gljev Just a heads up - the US 512 doesn't have all the commands but there are work arounds to get up and running
Dana Lewis
@danamlewis
Sep 10 2015 17:26
@bewest magically able to see the gitbook for openaps again. not sure if anything changed, or you changed something, or the magical new calendar day fixed whatever I happened to break yesterday.
Sulka Haro
@sulkaharo
Sep 10 2015 19:46
Hey re: Medtronic pumps - they really are aggressively moving onto 640G here. Anyone that has an older gen pump break gets a 640G and obv new patients get 640s. The distribution of sensors to old Enlites is to cease as well (do not know of dates). So it'd be pretty cool to have a contingency plan for people not having access to current / old gen Medtronic.
Scott Leibrand
@scottleibrand
Sep 10 2015 19:48
Any ideas what would be viable?
Pete Schwamb
@ps2
Sep 10 2015 19:52
where are you, @sulkaharo?
Sulka Haro
@sulkaharo
Sep 10 2015 19:56
Finland
No idea which other pumps would do. Which ones have a remote API?
Scott Leibrand
@scottleibrand
Sep 10 2015 20:13
a couple of them have remote controls of varying capabilities. only the Dana R has full remote access via an Android app, but it sucks in other ways (not least of which it's not available in the US).
I don't know of a "good" candidate, really
Oliver Schumacher
@oschumac
Sep 10 2015 20:59
@Sulkaharo Yes if no other things will work. In europe dana air from soil is an option. I have made already some python scripts which work. But from my side it would be nice we find other ones which have better hardware. Like roche accu check combo or insight.
Jason Calabrese
@jasoncalabrese
Sep 10 2015 21:20
is omnipod available there? would be great to control the pods without a cgm
what about getting old pumps, the issue is Enlite?
Lori
@LoriLori
Sep 10 2015 21:37
some good, small, silent HW with remote API would be nice
Lori
@LoriLori
Sep 10 2015 21:44
sometimes it is hard to understand this study https://www.clinicaltrials.gov/ct2/show/NCT01961622
and that person has contacts to all manufacturers
at the end they use Dana R, because nobody wants its brand to be at night news
Dana Lewis
@danamlewis
Sep 10 2015 21:46
@LorelaiL what do you mean by "nobody wants its brand to be at night news"?
jwedding
@jwedding
Sep 10 2015 21:49
If I read it right, she's saying that none of the manufacturers want to include a public API because they don't want to be the brand mentioned when someone does something dumb (not this group, just a "someone,") and winds up in the hospital. The story will be, "Insecure device from Company X allows local man to almost kill himself!"
Lori
@LoriLori
Sep 10 2015 21:49
night mare of every CEO of every pump company even not connected
Dana Lewis
@danamlewis
Sep 10 2015 21:52
ah
Lori
@LoriLori
Sep 10 2015 21:55
here is study protocol design http://bmjopen.bmj.com/content/4/9/e006075.full
it was a first time 3moths at home long study
and there is no company partnering it http://www.apathome.eu/project/consortium/
Lori
@LoriLori
Sep 10 2015 22:12
btw. DaR has max 100% bolus and 1 hour step, but it has 30 min extended basal which can serve as high temp, last extended bolus is canceled if new extended bolus is entered
history record is only created after full b. was delivered
there is a status indicated that extended bolus is being delivered with a amount delivered so far
just millions of details porting to different pump