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

9th
Aug 2015
Rachel Sandlain
@audiefile
Aug 09 2015 00:13 UTC
This is a total newby question, but I can't figure it out. How do I get the openaps-js plugins to work?
Ben West
@bewest
Aug 09 2015 00:43 UTC
git clone the repo into new directory, in the new directory you should be able to run npm install -g to install the project
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:44 UTC
Can somebody give me a clue as how to install openaps-js @bewest @amazaheri perhaps? Start there
Ben West
@bewest
Aug 09 2015 00:44 UTC
have you "installed" it @diabeticgonewild ?
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:44 UTC
Search for that post, and follow from there. The convo happened a couple of days ago
Ben West
@bewest
Aug 09 2015 00:44 UTC
might be good time if not, since you'll both have questions
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:44 UTC
No, haven't been feeling well.
Will start working on it right now. I am trying to help out a friend with T1D who hosts a support group locally for young adults set up NS. @bewest do you know if it costs more to have an addition NS site for IOB-COB for Heroku or Azure?
About to start working on it. At least I can do the writeup. I have helped her enough tonight.....
Ben West
@bewest
Aug 09 2015 00:46 UTC
you don't need an additional site
@audiefile , the code is here: https://github.com/openaps/openaps-js, unfortunately no readme
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:47 UTC
OK they say to do it, but I will just put it all in one site for her. About to get going on the Raspberry Pi. Don't even have an OS installed, embarrassed!
Ben West
@bewest
Aug 09 2015 00:47 UTC
but, you can download the repo doing this: git clone https://github.com/openaps/openaps-js.git
that'll create a new directory called openaps-js wherever you happen to be
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:47 UTC
Yeah @audiefile working on a readme. @channemann and I were working on one, and still are....
Ben West
@bewest
Aug 09 2015 00:48 UTC
cd openaps-js, then sudo npm install -g
then, "installation" is done
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:49 UTC
The readme pretty much covers everything before openaps-js, http://openaps.gitbooks.io/building-an-open-artificial-pancreas-system/content/
diabeticgonewild
@diabeticgonewild
Aug 09 2015 00:56 UTC
I am working on updating everything, including @danamlewis / @scottleibrand 's suggestion for Bluetooth connectivity, which can be done as a Bluetooth network connection....
But yeah, downloading Raspbian... (and charging my USB battery!--ordering more USB batteries right now!)
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:06 UTC
I am also going to work on getting some bash shell scripts for quick install of features....
Darrell Wright
@beached
Aug 09 2015 01:07 UTC
it's amazing the different between some of the embedded linux devices regarding power usage
looks like the pi model A is one of the better ones with lots of features though
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:11 UTC
WTF download has failed 3x with DLing Raspbian
Must fix internet connection at my house. It has to do with range. Going to put in a powerline to the room I hang out in, and then make an additional WiFi router an access point, and configure it....
Rachel Sandlain
@audiefile
Aug 09 2015 01:16 UTC
@diabeticgonewild I used that read me and it was a huge help!
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:16 UTC
You're welcome! I am glad it helped a lot! I still have a lot of work to do on it. :D
Thank you!
Rachel Sandlain
@audiefile
Aug 09 2015 01:17 UTC
@bewest does it matter where I clone repo? I followed those steps (or very similar) but when I try to run commands it says it can't find the module
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:18 UTC
OK I am right next to the WiFi router and it still quit the Raspbian DL.
My computer switched networks :/
Rachel Sandlain
@audiefile
Aug 09 2015 01:19 UTC
Could you try using an ethernet cable?
Ben West
@bewest
Aug 09 2015 01:20 UTC
@audiefile sounds ok
to test if installed
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:20 UTC
Laptop doesn't have an ethernet port. The computer came with a Ethernet to USB cable but I threw it away. Hahaha!
Ben West
@bewest
Aug 09 2015 01:20 UTC
you should be able to runiob.js I believe and it should error
some node error, like argument missing or undefined or something
if that works, you can go into your openaps directory, wherever that is
and start on configuring
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:21 UTC
I think you want your directory to be ~/openaps-dev for it to work with the bash shell script already written
Ben West
@bewest
Aug 09 2015 01:21 UTC
basically, openaps at it's core allows you "use" difference kinds of "devices" to generate "reports"
I'm trying to teach first principles so people understand what to do
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:22 UTC
and your OpenAPS instance should be named openaps with an openaps.ini file
Ben West
@bewest
Aug 09 2015 01:22 UTC
and why
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:22 UTC
OK I will stop interfering
Ben West
@bewest
Aug 09 2015 01:23 UTC
@audiefile you already have openaps set up somewhere locally?
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:23 UTC
Sorry @bewest
Ben West
@bewest
Aug 09 2015 01:23 UTC
it's less important for the directory to be named something particular, and more important for the script to be configurable so it'll work with any specified directory
Rachel Sandlain
@audiefile
Aug 09 2015 01:24 UTC
yes, I can use some basic 'use' commands i.e. read the time on the pump
Ben West
@bewest
Aug 09 2015 01:24 UTC
great
so those "uses" for example are some device you named it
Rachel Sandlain
@audiefile
Aug 09 2015 01:25 UTC
I can even add the iob.js as a process device, it just errors when I try to run it
Ben West
@bewest
Aug 09 2015 01:25 UTC
ah, good
close
very close
so "devices" are just mapping of your name to "vendor
a vendor is what implements the device
did you do vendor add at all?
vendor add sets up the "device" to be used
Rachel Sandlain
@audiefile
Aug 09 2015 01:26 UTC
not sure, I don't think so
Ben West
@bewest
Aug 09 2015 01:26 UTC
that's probably why
there are some "vendors" shipped with openaps
eg medtronic and dexcom
Rachel Sandlain
@audiefile
Aug 09 2015 01:27 UTC
is process not? or is that not the right vendor
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:27 UTC
vendor is not a literal term
Ben West
@bewest
Aug 09 2015 01:27 UTC
it is a literal term
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:27 UTC
like as in tangible
Ben West
@bewest
Aug 09 2015 01:27 UTC
openaps vendor is a command
with openaps vendor [add,show,remove]
device actually does not exist
device is a mapping of some name (for "use" commands) to a vendor
so you need to add openaps-js ad a vendor, then add it as device second
oh
sorry
gah
what does it print if you do openaps device show
for process, device is enough
you don't need vendor, vendor is for python plugins I guess
ha
Rachel Sandlain
@audiefile
Aug 09 2015 01:30 UTC
dexcom://cgm
medtronic://pump
process://bgpredict/node//home/pi/src/openaps-js/bin/bgpredict.js
process://calciob/node//home/pi/src/openaps-js/bin/iob.js
Ben West
@bewest
Aug 09 2015 01:30 UTC
nice
ok
where id you put your openaps-js directory?
when you did the git step
actually
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:30 UTC
Almost done DLing Raspbian....
Rachel Sandlain
@audiefile
Aug 09 2015 01:31 UTC
(good to know re python plugins, I know a bit more python than js but that isn't saying much)
Ben West
@bewest
Aug 09 2015 01:31 UTC
what does iob.js do?
if you try running just iob.js
think npm install -g should have made it available everywhere
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:32 UTC
you want to use npm preferrably, right?
Rachel Sandlain
@audiefile
Aug 09 2015 01:32 UTC
if i do node iob.js i get usage: [ 'node', '/home/pi/myopenaps/iob.js' ] <pumphistory> <profile.json> <clock.json>
Ben West
@bewest
Aug 09 2015 01:32 UTC
nice
perfect
ok
so you don't need that path/to/iob.js
because it's on the path
hmm
oh, I guess...
which iob.js
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:33 UTC
Do you need node installed for openaps-js? Also is npm the preferable instalation method?
Ben West
@bewest
Aug 09 2015 01:33 UTC
just to double check it's in path
Rachel Sandlain
@audiefile
Aug 09 2015 01:33 UTC
I know it didn't work when I didn't specify the path, but I'm not sure if it was the same error or a different one
It's the one from opens-js, I didn't modify it or anything
Ben West
@bewest
Aug 09 2015 01:34 UTC
I know, I'm trying to figure out where it got installed
hopefully /usr/local/bin or something similar
node iob.js depends on where you are and where iob.js is
which iob.js tells me if it's on the PATH or not, so whether or not you need to specify the absolute path when running it
the idea here is your openaps.ini file is in eg ~/myopenaps/openaps.ini, and the git clone step we did earlier is in like ~/src/openaps-js/ or something
they shouldn't be mixed
Rachel Sandlain
@audiefile
Aug 09 2015 01:36 UTC
I did it that way
Ben West
@bewest
Aug 09 2015 01:36 UTC
ok nice
Rachel Sandlain
@audiefile
Aug 09 2015 01:36 UTC
so they should be in separate places, I was starting to wonder if that was the problem
Ben West
@bewest
Aug 09 2015 01:37 UTC
oh
I see
they should be
ok
in your openaps instance:
is iob.js supposed to be a script?
or include only?
aha
it's called calculate-iob
that explains things
so it's ike this:
openaps device remove calciob (remove previous one)
Rachel Sandlain
@audiefile
Aug 09 2015 01:40 UTC
ok
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:46 UTC
WTF! FML! Tincture of opium (not for pain!) still isn't helping my GI problems at all! Might have to email my GI doctor on Monday. :( The next step, if this doesn't work is Ocreotide injections...
OK I have Raspbian written to my micro SD card.
Ben West
@bewest
Aug 09 2015 01:50 UTC
heh, just found a bug
or several
Rachel Sandlain
@audiefile
Aug 09 2015 01:51 UTC
oops!
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:52 UTC
I found issues with the install instructions too.
That I wrote.
can't find etc/network/interfaces
Were you able to find etc/network/interfaces @audiefile ?
Rachel Sandlain
@audiefile
Aug 09 2015 01:56 UTC
I wasn't able to do that part of the instructions exactly as written. I thought it was at least partially because I was using a mac
I think I used a different tutorial to set up wifi
diabeticgonewild
@diabeticgonewild
Aug 09 2015 01:57 UTC
Yeah I need to look into that. I am looking at another link. So I need to update that too.
I am using Windows, just FYI.
Rachel Sandlain
@audiefile
Aug 09 2015 01:59 UTC
I think what I did was to set up a monitor on my pi and setup wifi that way. That created that network file and then I could edit it
FWIW I couldn't ssh into my pi using pi@raspberrypi.lan, I have to use pi@ the IP address
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:01 UTC
Yeah thanks! I will make corrections to it as soon as I can. On Windows, apparently you can access the whole SD card using this Paragon extFs
It's a free tool.
Rachel Sandlain
@audiefile
Aug 09 2015 02:02 UTC
cool
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:02 UTC
Yeah, I am working on updating it. It should be pi@raspberrypi.local
or raspberry.local
My updated version (that I am working on) is at github.com/diabeticgonewild/docs @channemann put it into a book, and I can't push updates as quickly to that
sorry
Ben West
@bewest
Aug 09 2015 02:04 UTC
aha, ok @audiefile :smile:
openaps device add iob process --require history --require profile --require clock calculate-iob
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:05 UTC
I have 2 rare autoimmune neuropathies, and things like being sick and treatment interfere with this work...
Ben West
@bewest
Aug 09 2015 02:05 UTC
this is becausethe calculate-iob process takes three arguments, that are all required
@diabeticgonewild I think for simplicity, it'd be simpler if you forked the book doc
and work directly on your fork
that way you can submit PR direct
and after a few, you'll get commit rights directly
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:06 UTC
You can fork a GitBook?
Ben West
@bewest
Aug 09 2015 02:06 UTC
you can fork that repo
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:06 UTC
Yeah, most of that stuff is my writing, @channemann just made some edits.
I did fork the repo
recently
Ben West
@bewest
Aug 09 2015 02:06 UTC
and stuff you submit back via PR that way will go into book
so no extra translation
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:07 UTC
Oh, cool!
Nice!
Well, I need to get that done then
I can add some updates/corrections tonight. But focusing on the install right now.
Rachel Sandlain
@audiefile
Aug 09 2015 02:10 UTC
so iob needs pump history, a profile, and the time?
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:11 UTC
I got to etc/network/interfaces in Windows!
Ben West
@bewest
Aug 09 2015 02:11 UTC
@audiefile yeah, looks that way
I determined that by running calculate-iob with no args:
$ calculate-iob 
usage:  [ 'node', '/usr/local/bin/calculate-iob' ] <pumphistory> <profile.json> <clock.json>
bewest@hither:~/Documents/foo$
so 3 arguments, the device "add" step needs to note those
Rachel Sandlain
@audiefile
Aug 09 2015 02:12 UTC
ah! ok so that's what that means
Ben West
@bewest
Aug 09 2015 02:12 UTC
once that's done
it should show up in openaps device show
and in openaps use
the "process" type only has the "shell" use
Rachel Sandlain
@audiefile
Aug 09 2015 02:13 UTC
profile as in the doc in mongo lab that makes job-cob and the dev plugins work?
Ben West
@bewest
Aug 09 2015 02:13 UTC
uh... not sure
no
yes
yeah, I think it's same doc
yeah
would love a python thing that generates correct profile data from pump reports
or js
Rachel Sandlain
@audiefile
Aug 09 2015 02:14 UTC
ME TOO!
Ben West
@bewest
Aug 09 2015 02:15 UTC
so once that's done you should be able to openaps use iob shell -h
and it'll even remind you of those parameters
Rachel Sandlain
@audiefile
Aug 09 2015 02:15 UTC
great
Ben West
@bewest
Aug 09 2015 02:15 UTC
for these
when you config/use the "use"
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:15 UTC
Hey @bewest you never answered my question. Do you need node and is npm the preferable method for installing openaps-js?
Ben West
@bewest
Aug 09 2015 02:15 UTC
you'll want the --format stdout option
you need node installed to run openaps-js
npm doesn't install node js
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:17 UTC
--format stdout for what?
Ben West
@bewest
Aug 09 2015 02:17 UTC
for the use commands
for process type
when the process itself already emits json, the stdout format should be selected
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:17 UTC
This message was deleted
OK
Rachel Sandlain
@audiefile
Aug 09 2015 02:20 UTC
so ion needs history, profile, and time. history you can pull from the pump, profile I have already, I just have to copy it to the pi, but where/how do I get clock.json?
*iob
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:21 UTC
Got headless install to work, just need to fix the instructions (but not right now). SSHed in!
Ben West
@bewest
Aug 09 2015 02:23 UTC
read_clock
from the pump
Rachel Sandlain
@audiefile
Aug 09 2015 02:25 UTC
and use report invoke to save it as a file?
Ben West
@bewest
Aug 09 2015 02:25 UTC
yup
you can openaps use pump read_clock | tee clock.json
you have to add report before invoke once you like it
Rachel Sandlain
@audiefile
Aug 09 2015 02:26 UTC
right. I think I knew that
sorry for all the simple questions. I'm still trying to get everything straight in my head
Ben West
@bewest
Aug 09 2015 02:27 UTC
yeah, basic idea is play by hand with use's
no worries
I'm happy to explain it all
so use is to play with the commands by hand
once you like it, you save the report
Rachel Sandlain
@audiefile
Aug 09 2015 02:28 UTC
Great! Because I'm sure I'm going to ask you to probably multiple times
Ben West
@bewest
Aug 09 2015 02:28 UTC
so openaps add report basically "saves" your use configuration
Rachel Sandlain
@audiefile
Aug 09 2015 02:28 UTC
That makes sense
that makes a lot of sense actually
Ben West
@bewest
Aug 09 2015 02:28 UTC
once that's done, you can refer to the report name, and invoke will do it exactly the same way, and save the inputs/outputs in git
one thing I've been doing lately is starting to introduce additional directories
so I have in my instance: ./monitor/.keep
and I save all the initial data gathering reports in ./monitor/foo-bar.json
whatever foo-bar happens to be
so that way, the data from devices all winds up under ./monitor/
notice with the saved reports, you can invoke as many as you like
so you added your clock.json, pump history.json
you can do both at once: openaps report invoke monitor/pump-history.json monitor/clock.json
then when I'm happy with that, I add an alias openaps alias add monitor report invoke monitor/pump-history.json monitor/clock.json
and you can then call openaps monitor to call all that
Rachel Sandlain
@audiefile
Aug 09 2015 02:32 UTC
very cool!
Ben West
@bewest
Aug 09 2015 02:33 UTC
I keep a public example where people can see the commands I ran: https://github.com/bewest/openaps-example
the commands are in the history log itself, the first line is the command I used to do the thing
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:33 UTC
WTF my etc/network/interfaces file got edited upon reboot with sudo raspi-config WTF
Rachel Sandlain
@audiefile
Aug 09 2015 02:33 UTC
How would you define 'alias' in this case? Is it like a variable or nick-name that's essentially a short cut?
Ben West
@bewest
Aug 09 2015 02:34 UTC
yeah, it's a short-cut
nick-name
it uses same technique as git aliases
Rachel Sandlain
@audiefile
Aug 09 2015 02:34 UTC
I've been looking at that too. That's how I could add calc iob in the first place!
Ben West
@bewest
Aug 09 2015 02:34 UTC
yeah, that's a hacky way to add outside things :-)
it'll work, but without the git stuff per se
Rachel Sandlain
@audiefile
Aug 09 2015 02:35 UTC
oh ok (super unfamiliar with git)
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:35 UTC
my etc/network/interfaces was a bunch of Hex codes
Ben West
@bewest
Aug 09 2015 02:35 UTC
every time you run openaps add/remove, openaps makes a git commit in that directory
so your openaps "instance" is actually a git repo that openaps is maintaining for you
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:35 UTC
Oh, I know why. I formatted everything to ISO. Dumb
Ben West
@bewest
Aug 09 2015 02:35 UTC
if you type git log you'll see all the commands you just ran
if it ever gives a bad dose, we can use git log to see what happened
what the openaps report mechanism does is save your "use" in openaps.ini
when you invoke a report, it runs the use, saves it in the file, and then git commit -avm "everything that happened"
so it's all done for you automatically
there's some interesting benefits: you can easily backup/restore your openaps
Rachel Sandlain
@audiefile
Aug 09 2015 02:38 UTC
very cool!
Ben West
@bewest
Aug 09 2015 02:38 UTC
I put a version on github for example, that's all the "output"
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:38 UTC
You can back up your SD card too
to an *.img file
Ben West
@bewest
Aug 09 2015 02:38 UTC
lot of people are putting their's up in a private github repo, and then we add eachother as collaborators so we can keep up to date
the report --format, stdout and text are basically the same
for saving the report, you want text
Rachel Sandlain
@audiefile
Aug 09 2015 02:40 UTC
nice! I'm not even close to that point yet but good to know
Ben West
@bewest
Aug 09 2015 02:41 UTC
they're easy to set up/delete
no penalty
I'll walk you through a few pump ones if you want
clock, status, and history are great candidates
you'll want all those things at least
Rachel Sandlain
@audiefile
Aug 09 2015 02:42 UTC
sure! I'm happy to learn all I can.
Ben West
@bewest
Aug 09 2015 02:42 UTC
mkdir monitor
set up empty directory called monitor
Rachel Sandlain
@audiefile
Aug 09 2015 02:43 UTC
does it matter where?
Ben West
@bewest
Aug 09 2015 02:43 UTC
yeah, inside your openaps "instance"
Rachel Sandlain
@audiefile
Aug 09 2015 02:43 UTC
ok
Ben West
@bewest
Aug 09 2015 02:44 UTC
have you been using the pump uses at all yet?
we don't have to chat with the pump to set up reports
but it might be cool to get the time now just to see how the pump use commands work
then add report and invoke it
Rachel Sandlain
@audiefile
Aug 09 2015 02:46 UTC
some. I ran through them today to see what worked for me and what didn't
Ben West
@bewest
Aug 09 2015 02:46 UTC
so: openaps use pump read_clock
should take around ~17 seconds to connect to pump initially
then print the clock
Rachel Sandlain
@audiefile
Aug 09 2015 02:47 UTC
right. so that time delay is normal?
good to know
Ben West
@bewest
Aug 09 2015 02:48 UTC
yeah, the first time
the pump saves some battery by expecting to not use the radio most of the time
so it's shut off
you have to tell it to "turn on please"
Rachel Sandlain
@audiefile
Aug 09 2015 02:48 UTC
makes sense
Ben West
@bewest
Aug 09 2015 02:48 UTC
that command takes several seconds, there's huge capacitor, big jelly bag in the pump
guess it charges up
the "session" only lasts a few minutes, so you'll notice if you ask for read_pump again, it'll be faster on the second time
and then if we were to do this again and again, we'll see that eventually it takes a long time again
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:49 UTC
Starting to feel sick and weak again....damn GI problems dehydrating me, probably...
Ben West
@bewest
Aug 09 2015 02:49 UTC
openaps tracks the state and tries to negotiate correctly
hopefully you got some nice time from read_clock
Rachel Sandlain
@audiefile
Aug 09 2015 02:50 UTC
yep
Ben West
@bewest
Aug 09 2015 02:50 UTC
now that we know the tools need this, we can configure a report to save this info
openaps report add -h
openaps report add monitor/clock.json JSON pump read_clock
that tells openaps: "make a report called ./monitor/clock.json, use the JSON format, and generate the report by using the read_clock use on the pump device
so now, we can tell it to run the report:
Rachel Sandlain
@audiefile
Aug 09 2015 02:53 UTC
so add a report in the monitor folder called clock.son thats in the json format by calling pump read_clock
Ben West
@bewest
Aug 09 2015 02:53 UTC
openaps report invoke monitor/clock.json
exactly
Rachel Sandlain
@audiefile
Aug 09 2015 02:53 UTC
awesome!
Ben West
@bewest
Aug 09 2015 02:53 UTC
then we use the "name" of the report to invoke it
you can give many names
after invoking...
you can do git show
and it'll show you what it added to the git repo as a result
I usually run clock.json as the first report
Rachel Sandlain
@audiefile
Aug 09 2015 02:55 UTC
does order matter?
Ben West
@bewest
Aug 09 2015 02:55 UTC
yes
it goes in the order you specify, left to right
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:55 UTC
The etc/network/interfaces formatted to hexadecimal again! WTF!
@bewest I can't work on this tonight. I am getting sick.
Ben West
@bewest
Aug 09 2015 02:56 UTC
no worries
hope the tincture kicks in and helps you feel better :$
Rachel Sandlain
@audiefile
Aug 09 2015 02:57 UTC
take care of yourself first!
diabeticgonewild
@diabeticgonewild
Aug 09 2015 02:57 UTC
Hahaha! I have been having problems all day. It's not working. GI doctor said that it would probably work and it did for like 3 months, but not now. Probably going to have to send an email to my doctor on Monday.
Thanks, @bewest @audiefile
:D
Ben West
@bewest
Aug 09 2015 02:59 UTC
@audiefile so that's openaps' "hello world" :-)
idea is to keep adding reports, and then running them in the order that "matters"
Rachel Sandlain
@audiefile
Aug 09 2015 03:00 UTC
and what a world!
Ben West
@bewest
Aug 09 2015 03:00 UTC
so you can probably add a bunch of those pump commands as reports
everyone will want some kind of ./monitor/ directory full of data from devices
so that'll be first openaps report invoke ... in our eventual loop/automated thing
and we'll probably bind it to nice name like openaps fetch-device-data or something
here's my reports:
bewest@hither:~/Documents/foo$ openaps report show
cgm://text/iter_glucose/glucose.txt
cgm://JSON/iter_glucose/glucose.json
pump://JSON/read_glucose_data/medtronic-cgm.json
pump://JSON/set_temp_basal/temp-basal-results.json
pump://JSON/bolus/bolus-output.json
agp://JSON/agp/agp.json
calciob://text/shell/iob.json
pump://JSON/iter_pump/monitor/pump-history.json
pump://JSON/read_clock/monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
pump://JSON/read_selected_basal_profile/monitor/active-basal-profile.json
pump://JSON/reservoir/monitor/reservoir.json
pump://JSON/settings/monitor/settings.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
pump://JSON/read_bg_targets/monitor/bg-targets.json
pump://JSON/read_insulin_sensitivies/monitor/insulin-sensitivities.json
pump://JSON/read_carb_ratios/monitor/carb-ratios.json
bewest@hither:~/Documents/foo$
you are probably not interested in bolus or set_basal quite yet
but you'll probably get a lot out of the other read_ and iter_ commands
that's the same one in openaps-example... so you can even peek at the openaps.ini in there to compare
Rachel Sandlain
@audiefile
Aug 09 2015 03:04 UTC
not quite ready for commands to pump yet, maybe soon!
Ben West
@bewest
Aug 09 2015 03:05 UTC
the read_clock just got the time from the pump
so you just did :-)
Rachel Sandlain
@audiefile
Aug 09 2015 03:05 UTC
the examples are super helpful!
what's agp? I saw that in the examples but haven't had a chance to investigate it yet
Ben West
@bewest
Aug 09 2015 03:06 UTC
ah, agp is a standardized technique for "measuring glycemia"
stands for "ambulatory glucose profile"
this version produces statistics on percentile in range
err, not in range
quartiles
Rachel Sandlain
@audiefile
Aug 09 2015 03:09 UTC
so more of a statistical analysis tool?
Ben West
@bewest
Aug 09 2015 03:10 UTC
yes
there are visualizations to go with it
Rachel Sandlain
@audiefile
Aug 09 2015 03:14 UTC
I'm saying this a lot, but very cool!
Ben West
@bewest
Aug 09 2015 03:15 UTC
there's so much that is possible that is yet untapped
so glad to have more people aboard to play with things and make them better
Rachel Sandlain
@audiefile
Aug 09 2015 03:17 UTC
Happy to be here!
Ben West
@bewest
Aug 09 2015 03:18 UTC
I love chatting with these pumps
at the friends for life conference, I went over the medtronic booth and had a chat with one of their pumps on display
made the sales person a little nervous, lol
Chris Hannemann
@channemann
Aug 09 2015 03:18 UTC
@diabeticgonewild if you edit the forked docs repo directly in the girbook web editor, it does all the commits automatically; makes it really easy to do PRs when you are ready.
@bewest which pump model did they have on display at the booth?
*girbook
Ben West
@bewest
Aug 09 2015 03:20 UTC
think there were some 540's and 530's
Chris Hannemann
@channemann
Aug 09 2015 03:20 UTC
*girboook = gitbook
Ben West
@bewest
Aug 09 2015 03:20 UTC
didn't see any '20's
Chris Hannemann
@channemann
Aug 09 2015 03:21 UTC
Nothing in the 600 series yet?
Ben West
@bewest
Aug 09 2015 03:22 UTC
I don't think they have approval yet
600 will be useless
I can't talk to that at all :(
and I don't feel like another 5+ year project to decode it
Chris Hannemann
@channemann
Aug 09 2015 03:23 UTC
Oh come on, you aren't bored with this 500 work yet? ;-)
I kid of course; 600s aren't worth hacking as you'll essentially be competing with their inbuilt control system
diabeticgonewild
@diabeticgonewild
Aug 09 2015 15:48 UTC
Oh man....watching Food (pr0n) Network is working! It's stimulating my appetite and making me want to eat! (I have lost around 10-15 pounds in the past month, closer to 15 with no effort, due to poor appetite and probably my GI problems too. I also went on a cruise for a week this past month and was around food constantly and still managed to lose this weight. Although I am fat and I do definitely need to lose weight, I don't want to lose it like I have in the past like from severe gastroparesis—chronic nausea and vomiting—and just getting weaker and weaker, especially with my other medical problems. I have been eating a small to medium sized meal at most usually once a day due to poor appetite recently so I'm trying to get/feel better. How nice....)
diabeticgonewild
@diabeticgonewild
Aug 09 2015 16:55 UTC
Oh yeah! Found and assembled the ultimate MINIMALISTIC RPi 2 Case that I received in the mail yesterday!!!! Get it! You won't regret it! :D http://www.amazon.com/gp/aw/d/B00M9ZW6QU/ref=mp_s_a_1_1?qid=1439139162&sr=8-1&pi=AC_SY200_QL40&keywords=laser+goodies&dpPl=1&dpID=51zeZvTm16L&ref=plSrch
The GPIO pins stick out about 1-1.5 mm but it won't damage the RPi 2 (or your clothes)
diabeticgonewild
@diabeticgonewild
Aug 09 2015 17:04 UTC
Minimalistic is important for ambulatory use!