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

11th
May 2015
Ben West
@bewest
May 11 2015 00:28
@mgranberry stubbed out blank virtual namespace package here https://github.com/openaps/openaps-contrib
on my system I've created a third package with your agp script inside openapscontrib/agp/agp.py with the two __init__ and it shows up under that package, not sure it's all worth it or what it buys, but it's kind of nifty
Ben West
@bewest
May 11 2015 00:44
just released updates to decocare, dexcom_reader to pypi
also released openaps and openaps-contrib on pypi
in theory, the new set up process, at least for today's version is simply sudo apt-get install python-setuptools then sudo easy_install -Z openaps
diabeticgonewild
@diabeticgonewild
May 11 2015 00:56
I got the wifi on my raspberry pi 2 to connect to my neighbors unsecured wifi network. So all I have to do is really figure out networking settings to be done with WiFi and the Pi and the operating system...it took long enough
diabeticgonewild
@diabeticgonewild
May 11 2015 01:05
I think I am just going to use my iPhone as a hotspot and just configure it now for that and have the pi set up to VNC automatically each time...problem solved. Just access the pi via my phone. No need for an extra screen, keyboard, etc. of course I am going to back up my card at this point of time since everything theoretically is working...
Access the pi via VNC client
Ben West
@bewest
May 11 2015 01:08
most people ssh in
I think dana and scott have it set up to use wifi from phone's hotspot
diabeticgonewild
@diabeticgonewild
May 11 2015 01:08
So the key is to start VNC server on the Pi 2 upon boot...and have it configured via Wicd (a client for internet connections in Linux) to automatically connect to your phones hotspot...and VNC in via a VNC client app
Ben West
@bewest
May 11 2015 01:09
VNC is for gui stuff
diabeticgonewild
@diabeticgonewild
May 11 2015 01:09
I mean you can ssh I think via iphone
I'm no expert but I think you are right for ssh
Serverauditor looks good by the reviews at least for iphone
I don't have an android phone at this point of time
Ben West
@bewest
May 11 2015 01:11
if it were me I'd make sure I can use my laptop or whatever
the phone is not going to make a good interface yet :-(
diabeticgonewild
@diabeticgonewild
May 11 2015 01:11
Nah, hdmi cord and mini USB keyboard
Are you sure?
Ben West
@bewest
May 11 2015 01:12
ah, you're using keyboard
I think a proper keyboard is definitely helpful
I have been ssh ing on my laptop
But I have had a keyboard out at all times
If you're iPhone's the hotspot and your pi is connected to it and you are using a decent SSH app you should be good
After testing it for awhile...
diabeticgonewild
@diabeticgonewild
May 11 2015 01:17
You could always get one of those adafruit lcd screens that fits into one of their small cases and their rf mini USB keyboard if you are super worried about failure. But I think if you have it configured well and you have tested it out enough you would be able to get by just fine by ssh ing via iPhone/android/whatever using the phones hotspot
I just hate unnecessary bulk.
diabeticgonewild
@diabeticgonewild
May 11 2015 01:36
@bewest going to get some books cause I am going to be in the hospital tomorrow and on an airplane the day after... What do you think of this
And this
Ben West
@bewest
May 11 2015 01:36
yeah looks decent
Ben West
@bewest
May 11 2015 01:38
hmmm dunno, that says it's more about recipes
the first one seems more of tutorial/educational about python
but not sure you will like the 3d graphics/minecraft material
the second one with recipes seems to assume you already have some python experience
you getting it online/digital?
diabeticgonewild
@diabeticgonewild
May 11 2015 01:40
I get like a ton of books via bookshare.org
Everything except images...sometimes...all of the text always
Like just searched bookshare via my iPhone for pi and Python http://m.imgur.com/bo4f6La
Go to bookshare.org I get like tons of books especially programming
Ben West
@bewest
May 11 2015 01:43
I'm not going to evaluate bookshare or your method of getting books
if you wanted a recommendation, it's diveintopython
both those books also look pretty good
diabeticgonewild
@diabeticgonewild
May 11 2015 01:46
Screen reader of book that I downloaded in action http://m.imgur.com/4SPym5T
K
It's legal for me.
Like bookshare.org is a legal service. I don't have access to Dive into Python through there but I have access to several other books on Python through thrre
Ben West
@bewest
May 11 2015 01:50
you asked for an opinion about a book
my opinion on the book is that it's fine
I don't have an opinion about ebookshare
diabeticgonewild
@diabeticgonewild
May 11 2015 01:50
Cool it's just hard to interpret stuff over the Internet
Ben West
@bewest
May 11 2015 01:50
yup
diveintopython is a free/open source thing, but it's also available on amazon and through other means
so that's my main recommendation for learning python, partly because it's legally available in so many formats and in so many ways
diabeticgonewild
@diabeticgonewild
May 11 2015 01:52
Of course there was a bug in that reader what it highlighted in yellow should have been the whole word when it was spoken. But once you press the play button it resets and the issue resolves itself so it's no big deal
I'm the screenshot
Like bookshare is completely legal...for me. But not if I share it with other people
It's like through an exemption of copyright law
Ben West
@bewest
May 11 2015 01:53
but if we're talking about book recommendations does that matter?
diabeticgonewild
@diabeticgonewild
May 11 2015 01:53
No
I couldn't tell what was going on
Got it
diabeticgonewild
@diabeticgonewild
May 11 2015 02:08
Going to get diveintopython
Too...
Ben West
@bewest
May 11 2015 02:09
the more the better
with stuff like this i rarely read all of one thing
diabeticgonewild
@diabeticgonewild
May 11 2015 02:09
Tomorrow...packing cause I am going to be sick tomorrow and won't want to do much
Ben West
@bewest
May 11 2015 02:09
yeah, that sucks :-(
diabeticgonewild
@diabeticgonewild
May 11 2015 02:10
Yeah I am listening to a book right now that covers it pretty wekk
Well
But going to hoard some Python books digitally...yay having access to a nice digital library
Like the few days after I receive IVIg are nonproductive
Yeah I am just skimming sections http://m.imgur.com/gackmXy
Ben West
@bewest
May 11 2015 02:15
cool
diabeticgonewild
@diabeticgonewild
May 11 2015 02:15
But I do enjoy reading books cover to cover either human voice or screen reader...strangely I enjoy screen readers usually over human voices
diabeticgonewild
@diabeticgonewild
May 11 2015 02:21
List of Numpy books to possibly listen to http://m.imgur.com/8mYZet5
diabeticgonewild
@diabeticgonewild
May 11 2015 03:13
Going to get #OpenAPS loaded on my Pi again while I take a (long) break with the CareLink stick then going to backup the micro SD card files...
Guess I am going to bring my laptop to Seattle
diabeticgonewild
@diabeticgonewild
May 11 2015 04:37
Oh crap need to make records for my endo
going to be staying up all night long...
I see her in like 14 hours
and my BG is 40 yay
diabeticgonewild
@diabeticgonewild
May 11 2015 04:52
drenched in sweat...yay for being low
diabeticgonewild
@diabeticgonewild
May 11 2015 16:59
Didn't stay up all night. Have to give records to my endo for insurance garbageđź’‰
She will Love Blip though. I uploaded my pump and CGM to it...
I'm the hospital getting IV iron infusions and intravenous immunoglobulin. Will have to stay late cause there is no blood return on port (a large IV that can be accessed in my chest) but it flushes. It has to get resolved as that's the only way they have recently been able to get bloodwork on me...fun!
Going to get my medicine and come back later to get it declotted
Ben West
@bewest
May 11 2015 19:48
nifty, @mgranberry , I installed openapscontrib as a namespace package, and then openapscontrib.agp.agp with openapscontrib as the package_namespace, and it's usable as openaps use agp ...after registering as vendor: openaps vendor add openapscontrib.agp.agp
Toby Canning
@TC2013
May 11 2015 22:13
@bewest Talk about a let down. In the OpenAPS description for https://github.com/bewest/openaps-example/blob/master/bolus-recommendation.json
The description says, "xxx manual"
Ben West
@bewest
May 11 2015 22:13
lol
yeah, look at this history
Toby Canning
@TC2013
May 11 2015 22:14
HA!
Ben West
@bewest
May 11 2015 22:14
:-)
I didn't want a stale recommendation hanging around
you can tell what commands I've been playing with: https://github.com/bewest/openaps-example/commits/master
Toby Canning
@TC2013
May 11 2015 22:19
Super cool. You're doing a lot of awesome stuff!
Ben West
@bewest
May 11 2015 22:20
hoping to write a way to call any script/command as a "device"
Ben West
@bewest
May 11 2015 22:43
just finished
@scottleibrand just wired up that iob.js script to be a "device" in openaps: https://github.com/bewest/openaps-example/commits/master
there's a new "process" vendor type which knows how to take a script you specify and run it
Ben West
@bewest
May 11 2015 22:53
openaps device add calciob process --require input node iob.js
that says: create a device called "calciob" which runs the script "node iob.js" and has one argument, we'll refer to as "input"
then openaps use --format text calciob shell pump-history.json or similar can be used to try it out
then, when comfy, save the report config: openaps report add iob.json text calciob shell pump-history.json
that says: create a report called iob.json, which is the usage of device calciob, usage shell, (which is running node iob.js) with the argument pump-history.json... since it's a process that happens to always print json, we're using the text output to save it as-is
Ben West
@bewest
May 11 2015 22:59
$ openaps report  invoke  iob.json 
calciob://text/shell/iob.json
reporting iob.json
bewest@hither:~/Documents/foo$
$ openaps use --format text calciob shell pump-history.json 
{"iob":1.4710394611199997,"activity":0.04893333333333332}
bewest@hither:~/Documents/foo$
so now it supports python python plugins plus arbitrary commands :-D