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

12th
May 2015
Ben West
@bewest
May 12 2015 00:01
this is what my openaps use menu looks like now:
$ openaps use -h
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
                   [--version]
                   {agp,calciob,cgm,pump} ...

 openaps-use - use a registered device

positional arguments:
  {agp,calciob,cgm,pump}
                        Operation
    agp                 AGP - calculate agp values given some glucose text
    calciob             process - a fake vendor to run arbitrary commands
    cgm                 Dexcom - openaps driver for dexcom
    pump                Medtronic - openaps driver for Medtronic
Ben West
@bewest
May 12 2015 01:30
updated the readme to show how to use things: https://github.com/bewest/openaps-example
Dana Lewis
@danamlewis
May 12 2015 02:21
@bewest coming for all your README's, one by one :)
diabeticgonewild
@diabeticgonewild
May 12 2015 02:26
Packing for Seattle...not that eventful of a night for me. Of course concerned about making sure to get all of my medical supplies...
diabeticgonewild
@diabeticgonewild
May 12 2015 02:56
I get motion sick and I don't want to freak people out on the airplane by getting barfy so I am going to take some medicine that makes me sleepy...nice...but at least I will get some rest...
diabeticgonewild
@diabeticgonewild
May 12 2015 09:45
Going to work on my Pi 2 while in Seattle and I am not bringing my computer! I got the Pi to connect to my iPhone's hotspot and I SSHed in via the app ServerAuditor. It's extremely awesome! :)
Connect automatically
Ben West
@bewest
May 12 2015 10:07
nice
cd ~/Documents, openaps init gonewild, cd gonewild, openaps device add cgm dexcom, openaps use cgm iter_glucose
diabeticgonewild
@diabeticgonewild
May 12 2015 10:09
will do!
Like I had already created a directory on my (old) installation.
But now I have a fresh install and it's nicer...
Ben West
@bewest
May 12 2015 10:11
yeah, you can clone the old one but building it again is a cinch
diabeticgonewild
@diabeticgonewild
May 12 2015 10:11
I agree.
Ben West
@bewest
May 12 2015 10:12
also
diabeticgonewild
@diabeticgonewild
May 12 2015 10:12
Like installing Linux on the Pi isn't a big deal at all, but the Wifi USB dongle and the Wifi network configuration sucks
follow these instructions if you get Linux (Ubuntu) on your Pi
Ben West
@bewest
May 12 2015 10:12
yeah, wifi in general sucks
Also try connecting to an "open" network first...
for a confidence boost or whatever
Ben West
@bewest
May 12 2015 10:13
hoping to prototype with cell connection :)
diabeticgonewild
@diabeticgonewild
May 12 2015 10:13
but yeah, ben?
You want to SSH via mobile phone?... I really think it's the way to go. Less bulk and clunkiness
BTW, my twin brother's name is Ben...
diabeticgonewild
@diabeticgonewild
May 12 2015 10:14
random, but I thought I would let you know
Fascinating, and interesting too
Ben West
@bewest
May 12 2015 10:15
eventually, file full of openaps report invoke ... lines goes into simple bash script
the bash script is cron job that runs every 5 minutes or whatever
no need to ssh to it
except debug/upgrade
this was attempt at github-style service over ssh https://github.com/bewest/insulaudit-ssh-tools
openaps is basically that, but being done right
diabeticgonewild
@diabeticgonewild
May 12 2015 10:17
The main principle is OpenAPS is embedded, right?
Ben West
@bewest
May 12 2015 10:17
no, not main principle
diabeticgonewild
@diabeticgonewild
May 12 2015 10:18
oh
Ben West
@bewest
May 12 2015 10:18
embedded is kind of side effect
practical usage needs to be somewhat mobile, so logic has to be running on some mobile device
diabeticgonewild
@diabeticgonewild
May 12 2015 10:18
for the need of convenience?
Ben West
@bewest
May 12 2015 10:18
so on a smartphone or something else
diabeticgonewild
@diabeticgonewild
May 12 2015 10:19
yeah, I would agree with that
Ben West
@bewest
May 12 2015 10:19
linux apps are easy to hack on, especially when they are simple, write to stdout/file in consistent way
so I deconstructed all the things that have to be done into suite of linux apps
some yet to be written
diabeticgonewild
@diabeticgonewild
May 12 2015 10:20
yeah, they are very nice
Ben West
@bewest
May 12 2015 10:20
since they are all "well behaved" apps, it's easy to create simple bash script/cron job to automate the whole process
diabeticgonewild
@diabeticgonewild
May 12 2015 10:21
yeah, as in organized and contained, right?
not "gone wild" LOL?
but yeah you are a very thoughtful person, which helps you a lot to create nice stuff
yeah, I am going to execute those commands you told me to execute...Battery for running the Pi off of is low...and I need to charge it before I leave this morning
no, no spaces
diabeticgonewild
@diabeticgonewild
May 12 2015 10:27
LOL I know no spaces in Linux!
that's like the first rule!
in Linux/Unix!
I was joking!
Ben West
@bewest
May 12 2015 10:27
hehe
diabeticgonewild
@diabeticgonewild
May 12 2015 10:35
Yeah this battery takes forever to charge so I better charge if I want to use it later tonight. But I got the CGM aspect up and running (again) thanks to you @bewest
It's like a 11000 mAH battery with 2.1 A USB port for the Pi 2
Ben West
@bewest
May 12 2015 10:36
nice
medtronic is also just as easy
openaps device add pump medtronic 123456, openaps use pump read_clock
err
need the serial in there
diabeticgonewild
@diabeticgonewild
May 12 2015 10:38
Yeah I did it before in the past...I had to reinstall Linux for a clean install with respect to the WiFi dongle. The one I bought randomly disconnected and there was no definitive resolution for it as far as I could tell
Everything except the micro USB connection for the Dexcom...all controlled through my phone! USB ports: CareLink USB, TP-Link WiFi dongle
diabeticgonewild
@diabeticgonewild
May 12 2015 10:43
raspberry pi 2 running Ubuntu 14.04
Ben West
@bewest
May 12 2015 10:43
nice
I'm hitting land of nod
diabeticgonewild
@diabeticgonewild
May 12 2015 10:44
Sleeps good! Good night! And thank you!
The case sucks. I eventually want to get some right angled micro USB and USB adapters, a USB extender (to make the CareLink stick fit in more compactly, and get a smaller battery. When the time comes, I will figure out the right configuration and get a 3D case made to hold it all in. Eventually. But I have probably a couple of months to go between building the #OpenAPS chemo and my health garbage
diabeticgonewild
@diabeticgonewild
May 12 2015 13:45
See all on my iPhone http://m.imgur.com/9o1rgmr
Will be in Seattle 12 pm Pacific Time
diabeticgonewild
@diabeticgonewild
May 12 2015 19:27
In Seattle
Ben West
@bewest
May 12 2015 20:38
just made report invoke be able to take any number of reports
so you can list them all in one command now
openaps report invoke clock.json battery.json settings.json current-temp-basals.json current-basal-profile.json bg-targets.json carb-ratios.json pump-history.json
also updated openaps setup procedure to attempt grabbing the dev/latest version of dexcom_reader and decoding-carelink from github
also updated decoding-carelink and dexcom_reader setup procedure to install udev rules in the system location automatically on install
Ben West
@bewest
May 12 2015 21:11
@mgranberry, any opinion on hosting agp.py under https://github.com/openaps/openaps-contrib/tree/master/openapscontrib vs another repo?
if you were intending to add some more things, perhaps I should stub out some kind of 'calculator' plugin, and let agp be one of the many uses?
Matthias Granberry
@mgranberry
May 12 2015 21:49
I wasn't planning to do much there. I'm heads-down on my #wearenotwaiting answer to nutshell. So far I have it constructing modal day graphs of 6-hour windows when I eat out, all automagically taken from the foursquare API when my phone thinks I'm sitting.
Ben West
@bewest
May 12 2015 21:49
ah, sounds good
you would probably find some help with that
you want it as separate app or part of NS maybe?
Matthias Granberry
@mgranberry
May 12 2015 21:51
I'm not sure yet. I'm writing it mostly in services, so it will be easy to shuffle it around.
It currently only pulls in the broadcasts from xDrip, but I'd like to have it pull in the NS API data and act as a treatment client, possibly a logging interface
It would probably be most useful alongside the android uploader, but I'm not sure
Matthias Granberry
@mgranberry
May 12 2015 22:27
It would also save me from naming it. It's currently Yadla for yet another diabetes logging app. Some here would probably object to unixy "in joke" names
plucked your commits
diabeticgonewild
@diabeticgonewild
May 12 2015 22:58
Yeah I'm visiting my grandma and she's in assisted living and she lives on the hill that my dad grew up on...I went to the grocery store to get "beer" (my favorite, diet coke) and somebody was smoking pot at the bus stop completely in public. Keeping it classy, as usual Capitol Hill lol.
By the way I'm getting too old to think that smoking pot is cool even though it's decriminalized here.
Back in the day though...haha...that's another story
I mean this is the hill Jimi Hendrix grew up on...and Bob Marley and the Wailers had like a place on this hill too....but still...smoking pot in public...not cool
any changes to that "docs" repo builds the book
gitbooks.io has a very nice editing interface you may or may not prefer, dunno
Dana Lewis
@danamlewis
May 12 2015 23:33
Neat!! Hard to see on my phone but will pull up on the comp later :)
Ben West
@bewest
May 12 2015 23:34
blob
yeah, later
Dana Lewis
@danamlewis
May 12 2015 23:35
Ya. That looks easy enough to use!
diabeticgonewild
@diabeticgonewild
May 12 2015 23:57
FML joints hurt