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

8th
May 2015
Ben West
@bewest
May 08 2015 02:57
foo bar
diabeticgonewild
@diabeticgonewild
May 08 2015 03:38
Yeah so I don't know terminal on Ubuntu for Raspberry Pi as well as I thought I did...got Ubuntu to recognize my Netgear N150 micro USB adapter, but my WiFi network that I am currently using is on "lockdown"....it just seems easier to install it with a GUI. Plus the Pi can take 32 GB from the microSD card...and flash memory is relatively cheap.
Of course you lose efficiency by installing a GUI but still...
  • Up to a 32 GB microSD card, according to reports
I am pretty good with terminal...but...don't want to waste any more time on this one...
Plus theoretically I could run MATLAB on the Pi, I think
Older versions...at least
but it would take too long to compute...hence VM on the cloud
oh shoot, it's only Intel x86 architecture...no go for MATLAB!
but <3 Intel
diabeticgonewild
@diabeticgonewild
May 08 2015 03:46
Does @bewest tools like decocare install on any Linux/Debian configuration...cause this definitely runs MATLAB and I think could handle my work. My old laptop from 2007 was a 2.0 GHz Intel duo core! http://www.minnowboard.org/meet-minnowboard-max/
Scott Leibrand
@scottleibrand
May 08 2015 03:46
you can get wifi set up by just doing startx
diabeticgonewild
@diabeticgonewild
May 08 2015 03:46
Can anyone answer that question?
2 GB RAM too
Scott Leibrand
@scottleibrand
May 08 2015 03:46
then set up your wifi in the gui, then quit out and it'll be in wpa_supplicant.conf or whatever the config is
diabeticgonewild
@diabeticgonewild
May 08 2015 03:47
cool
Scott Leibrand
@scottleibrand
May 08 2015 03:47
I'm assuming you installed raspbian on your Pi
or ubuntu, or whatever the default it
diabeticgonewild
@diabeticgonewild
May 08 2015 03:48
No installed Ubuntu...on my own
currently installing a GUI.
Scott Leibrand
@scottleibrand
May 08 2015 03:48
I have no idea how your custom setup will work then
I highly recommend the canakit SD card, and installing the default distro from there
that setup Just Works
but you might be able to do the same with yours, too
diabeticgonewild
@diabeticgonewild
May 08 2015 03:51
For the carelink stick on Ubuntu (Debian) the command is just this:
curl https://raw.githubusercontent.com/bewest/decoding-carelink/master/80-medtronic-carelink.rules | sudo tee /etc/udev/rules.d/80-medtronic-carelink.rules
@TC2013 has been helping me along the way
but he's not on right now
Scott Leibrand
@scottleibrand
May 08 2015 03:52
I don't know what that does. Is it the same as sudo insert.sh?
diabeticgonewild
@diabeticgonewild
May 08 2015 03:53
installs the carelink stick communication protocols onto Linux
Ben West
@bewest
May 08 2015 03:55
that just tweaks permissions when the stick is plugged in, it doesn't install anything
Scott Leibrand
@scottleibrand
May 08 2015 03:55
@danamlewis ^^ we should have people do that when we're setting them up
Ben West
@bewest
May 08 2015 03:56
curl raw-url | sudo bash
diabeticgonewild
@diabeticgonewild
May 08 2015 03:56
I mean I am no expert at Linux
Scott Leibrand
@scottleibrand
May 08 2015 03:56
@diabeticgonewild he's suggesting running this:
diabeticgonewild
@diabeticgonewild
May 08 2015 03:56
and I don't even know the syntax that @bewest is using
cool
Scott Leibrand
@scottleibrand
May 08 2015 03:56
diabeticgonewild
@diabeticgonewild
May 08 2015 03:56
needs backticks
Scott Leibrand
@scottleibrand
May 08 2015 03:56
ugh, that doesn't work, sorry one sec
Ben West
@bewest
May 08 2015 03:57
curl https://gist.githubusercontent.com/bewest/84f134f7b6d5375e2f04/raw/b2275153d1731a8f43df8c2fe2563612382ed8d4/install.sh | sudo bash
diabeticgonewild
@diabeticgonewild
May 08 2015 03:57
next to the 1 key
got it
Ben West
@bewest
May 08 2015 03:57
run sudo apt-get install curl python git first
diabeticgonewild
@diabeticgonewild
May 08 2015 03:57
so theoretically this would work on any linux board, although none of you had tested it out
got it
Scott Leibrand
@scottleibrand
May 08 2015 03:57
it does work on most linux machines
diabeticgonewild
@diabeticgonewild
May 08 2015 03:57
saving this to a txt for now
Scott Leibrand
@scottleibrand
May 08 2015 03:57
main question is what kind of usb they have
some usb3 ports don't work with the carelink
diabeticgonewild
@diabeticgonewild
May 08 2015 03:58
intel Atom processor should be good
Scott Leibrand
@scottleibrand
May 08 2015 03:58
proc shouldn't matter
diabeticgonewild
@diabeticgonewild
May 08 2015 03:59
it does for MATLAB but I think it's due to the ALU
arithmetic logic unit
Scott Leibrand
@scottleibrand
May 08 2015 03:59
yeah, none of ben's stuff cares about processor type
diabeticgonewild
@diabeticgonewild
May 08 2015 03:59
yeah, that's what I thought
see this dude runs MATLAB...however, OpenAPS for now (however feeling unusually good tonight) http://makerzone.mathworks.com/blog/first-look-at-intels-minnowboard-max/
Not going to go wild again until OpenAPS is working
Scott Leibrand
@scottleibrand
May 08 2015 04:03
:)
so where are you with the Pi?
diabeticgonewild
@diabeticgonewild
May 08 2015 04:03
I agree
Scott Leibrand
@scottleibrand
May 08 2015 04:03
do you have wifi yet?
diabeticgonewild
@diabeticgonewild
May 08 2015 04:03
Detects WiFi stick
Have a "hidden" network
Scott Leibrand
@scottleibrand
May 08 2015 04:03
did startx work?
diabeticgonewild
@diabeticgonewild
May 08 2015 04:03
Netgear N150 micro USB (there are 2 models)
currently loading GUI...1 GB
Scott Leibrand
@scottleibrand
May 08 2015 04:04
ah k
are you on wired network to load it?
diabeticgonewild
@diabeticgonewild
May 08 2015 04:04
downloading slow and using a wired connection (power line...internet through electrical wires in my house via wired network)
Scott Leibrand
@scottleibrand
May 08 2015 04:04
if you want we can do decocare etc. over that link
wired ethernet of any speed should be fine for our purposes
diabeticgonewild
@diabeticgonewild
May 08 2015 04:05
cool
Scott Leibrand
@scottleibrand
May 08 2015 04:05
try opening up another console window and running ben's curl
diabeticgonewild
@diabeticgonewild
May 08 2015 04:05
but it's going to take some time to download....and my display already went down
cause it's been running for awhile
Scott Leibrand
@scottleibrand
May 08 2015 04:05
you can actually cancel the gui download if you want
diabeticgonewild
@diabeticgonewild
May 08 2015 04:05
that's what to get if you want a powerline right now...mine is much slower
Scott Leibrand
@scottleibrand
May 08 2015 04:06
no reason we need anything fast
decocare and openaps are tiny
diabeticgonewild
@diabeticgonewild
May 08 2015 04:06
true
I have an old powerline
no reason to shell out old $
$ over old stuff
Scott Leibrand
@scottleibrand
May 08 2015 04:06
so go ahead and run that command and LMK what it does
diabeticgonewild
@diabeticgonewild
May 08 2015 04:07
how do I get it to display via HDMI again?
it says no signal
should I just cycle power on/off
wait it finished downloading
no it didn't
yellow light is still flashing
I tried plugging the HDMI on and off again
I am afraid of powering it off cause it might cause it to not reboot
Scott Leibrand
@scottleibrand
May 08 2015 04:08
I power my Pi's off all the time
diabeticgonewild
@diabeticgonewild
May 08 2015 04:08
kk
will do
Scott Leibrand
@scottleibrand
May 08 2015 04:08
it never causes issues as long as it's clean
only time we had an issue was when powering the Pi from flaky battery
diabeticgonewild
@diabeticgonewild
May 08 2015 04:10
I have to install startx
just a sec
Scott Leibrand
@scottleibrand
May 08 2015 04:10
you can operate without gui for now if you want
if it's faster
startx just starts the gui to do wifi
no need for that if you have wired network
diabeticgonewild
@diabeticgonewild
May 08 2015 04:11
19.0 MB to install
3 min left
unless you want me to start installing ben's tools
Scott Leibrand
@scottleibrand
May 08 2015 04:11
your call
diabeticgonewild
@diabeticgonewild
May 08 2015 04:12
1 min 30 sec left
2 min left....argggh!
1 min 24 sec left
Scott Leibrand
@scottleibrand
May 08 2015 04:12
a watched progress indicator never finishes? :)
diabeticgonewild
@diabeticgonewild
May 08 2015 04:13
yeah, I am pretty patient on my own...but around people I can get frustrated if you know what I mean
Scott Leibrand
@scottleibrand
May 08 2015 04:14
I'm just sitting here with Ben backseat coding. he's taking my iobCalc stuff from wip/iob-cob and trying to get it into nodejs to run on openaps' data
diabeticgonewild
@diabeticgonewild
May 08 2015 04:14
I have a wip/iob-cob.js file for MM_530G...if you want that
it's in the NS PRs
it's the first PR from me...
if that's useful...
but I know your stuff works...so yeah
Scott Leibrand
@scottleibrand
May 08 2015 04:15
yeah, I unfortunately forked my stuff to do this pumpHistory stuff, and have never merged it back
diabeticgonewild
@diabeticgonewild
May 08 2015 04:15
interesting
Scott Leibrand
@scottleibrand
May 08 2015 04:15
so we're trying to pull out just the necessary bits to a standalone json parser
diabeticgonewild
@diabeticgonewild
May 08 2015 04:15
alright I can do the loading of stuff
install finished
Scott Leibrand
@scottleibrand
May 08 2015 04:15
cool
diabeticgonewild
@diabeticgonewild
May 08 2015 04:15
so sudo apt-get install curl python git first?
Scott Leibrand
@scottleibrand
May 08 2015 04:16
yeah
that makes sure you have all those tools installed
diabeticgonewild
@diabeticgonewild
May 08 2015 04:17
15.3 MB to install....not bad...
I'm going to get rid of my first computer from college...still works but piece of junk...going to be obsolete soon. Randomness for the day...
done loading
so second step...
curl https://gist.githubusercontent.com/bewest/84f134f7b6d5375e2f04/raw/b2275153d1731a8f43df8c2fe2563612382ed8d4/install.sh | sudo bash
actually I should SSH in and copy/paste that
Scott Leibrand
@scottleibrand
May 08 2015 04:19
yeah
diabeticgonewild
@diabeticgonewild
May 08 2015 04:20
dumb ? but I just did that so I need the CareLink stick plugged in correct?
cause I just didn't
Scott Leibrand
@scottleibrand
May 08 2015 04:20
we're just installing tools
don't worry about the stick yet
diabeticgonewild
@diabeticgonewild
May 08 2015 04:22
SoooIntimidating.jpg
encountered a problem
problem.jpg
Scott Leibrand
@scottleibrand
May 08 2015 04:24
yeah, I know how to fix, one minute
Ben West
@bewest
May 08 2015 04:24
https://github.com/bewest/decoding-carelink.git
diabeticgonewild
@diabeticgonewild
May 08 2015 04:24
reboot?
got it
Ben West
@bewest
May 08 2015 04:26
no
Scott Leibrand
@scottleibrand
May 08 2015 04:26
one minute
I'm fixing the install.sh thing
diabeticgonewild
@diabeticgonewild
May 08 2015 04:26
admittedly I have no idea what I am doing
Scott Leibrand
@scottleibrand
May 08 2015 04:26
to use the https clone urls
diabeticgonewild
@diabeticgonewild
May 08 2015 04:26
kk
try that and LMK what you get
diabeticgonewild
@diabeticgonewild
May 08 2015 04:29
next time try the key next to the 1 key instead of ' '
Scott Leibrand
@scottleibrand
May 08 2015 04:29
backticks, k
diabeticgonewild
@diabeticgonewild
May 08 2015 04:29
it looks like its working...so far
Scott Leibrand
@scottleibrand
May 08 2015 04:29
like this: curl https://gist.githubusercontent.com/scottleibrand/d739ca90d97d52cb2d40/raw/f14a67fdf005ea0436fc95f0b8f0b9ddedc737bd/install.sh | sudo bash
cool
diabeticgonewild
@diabeticgonewild
May 08 2015 04:29
yep
looking_good.jpg
wow this was dumb not to do this all SSH
for me not to
once I got it configured via OpenSSH
Scott Leibrand
@scottleibrand
May 08 2015 04:31
yeah, if you can get ssh working you'll never want to use the keyboard again. :)
diabeticgonewild
@diabeticgonewild
May 08 2015 04:32
58%
indeed
Scott Leibrand
@scottleibrand
May 08 2015 04:32
brb
diabeticgonewild
@diabeticgonewild
May 08 2015 04:32
92%
problem
last_13_lines.jpg
Scott Leibrand
@scottleibrand
May 08 2015 04:35
b
diabeticgonewild
@diabeticgonewild
May 08 2015 04:36
last 13 lines
Scott Leibrand
@scottleibrand
May 08 2015 04:37
sudo python ez_setup.py # only if you rarely use python
that's in the instructions at https://github.com/bewest/decoding-carelink
which I probably should've had you follow. :)
diabeticgonewild
@diabeticgonewild
May 08 2015 04:39
so follow that line from line except for the sudo ez_setup...?
Scott Leibrand
@scottleibrand
May 08 2015 04:39
cd decoding-carelink; sudo python ez_setup.py # only if you rarely use python
uh
diabeticgonewild
@diabeticgonewild
May 08 2015 04:39
or use it?
I mean I know programming syntax in general
specific language commands...not so much
Scott Leibrand
@scottleibrand
May 08 2015 04:40
i.e. get into the decoding-carelink directory and sudo python ez_setup.py
diabeticgonewild
@diabeticgonewild
May 08 2015 04:40
just did that
its downloading
so go up a directory and try to do the | sudo bash stuff?
with curl command?
it loaded the python stuff
yeah I just did the curl .... | sudo bash stuff
it's working on loading python stuff
Scott Leibrand
@scottleibrand
May 08 2015 04:43
yeah, that works. the git clone part is redundant now, but doesn't hurt.
the commands that failed were these:
(cd decoding-carelink
sudo python setup.py develop
)

(cd dexcom_reader
sudo python setup.py develop
)

(cd openaps
sudo python setup.py develop
)
diabeticgonewild
@diabeticgonewild
May 08 2015 04:44
ThinkThisLooksGood.jpg
Scott Leibrand
@scottleibrand
May 08 2015 04:44
success
diabeticgonewild
@diabeticgonewild
May 08 2015 04:45
cool so reboot and plug in CareLink stick?
Scott Leibrand
@scottleibrand
May 08 2015 04:45
no need to reboot
diabeticgonewild
@diabeticgonewild
May 08 2015 04:45
plug in CareLink stick + reboot?
oh
Scott Leibrand
@scottleibrand
May 08 2015 04:45
just plug it in
cd decoding-carelink; sudo ./insert.sh
Ben West
@bewest
May 08 2015 04:46
then do python -m decocare.scan to see if it sees the stick
should be one line of output
if that works you can do python -m decocare.stick $(python -m decocare.scan) to see if talking to the stick itself works
diabeticgonewild
@diabeticgonewild
May 08 2015 04:47
./insert.sh didn't work
Scott Leibrand
@scottleibrand
May 08 2015 04:47
didn't work, or didn't give any output?
diabeticgonewild
@diabeticgonewild
May 08 2015 04:47
problem2.jpg
Scott Leibrand
@scottleibrand
May 08 2015 04:48
oh, that's fine
it means you already did it once this boot
so you're good to move on to the decocare commands
and after that, you'll be ready to start following the directions at https://github.com/openaps/openaps
diabeticgonewild
@diabeticgonewild
May 08 2015 04:49
it gave me a line of output...have to do ben's second command
LooksGood.jpg
Scott Leibrand
@scottleibrand
May 08 2015 04:51
yay
diabeticgonewild
@diabeticgonewild
May 08 2015 04:51
About to start following the directions at OpenAPS
Scott Leibrand
@scottleibrand
May 08 2015 04:51
start at Usage
you've already installed it
diabeticgonewild
@diabeticgonewild
May 08 2015 04:51
Got t
diabeticgonewild
@diabeticgonewild
May 08 2015 05:03
No module named NumPy...
problem3.jpg
I guess NumPy isn't installed
and it needs to be...
Scott Leibrand
@scottleibrand
May 08 2015 05:04
yeah, checking
sudo apt-get install python-numpy
try that
diabeticgonewild
@diabeticgonewild
May 08 2015 05:05
yeaht that was what I just entered in...was about to press enter
Scott Leibrand
@scottleibrand
May 08 2015 05:05
heh good
diabeticgonewild
@diabeticgonewild
May 08 2015 05:05
I mean, I am just telling you guys/gals (I usually say guys even if it isn't a bunch of guys) so you know
Scott Leibrand
@scottleibrand
May 08 2015 05:06
yeah, feel free to try stuff like that, and let us know if you get stuck.
diabeticgonewild
@diabeticgonewild
May 08 2015 05:06
kk
Scott Leibrand
@scottleibrand
May 08 2015 05:06
I'm congenitally unable to hear someone describe a problem without trying to offer a solution
(not really)
(but I do tend to over-suggest fixes, even when people don't want help) :)
diabeticgonewild
@diabeticgonewild
May 08 2015 05:07
I'm pretty good at trouble shooting...oh yeah....that wifi configure won't boot without a GUI I think on Ubuntu
I can figure it out though...no worries
I think I will put a GUI on mine eventually though.just so I can look at it while it's performing its work for sanity purposes...at least at first...but I have a long ways to go before doing that...but i do feel really well tonight...knock on wood
so I can get like 3x as much done in the next 24 hours....at least
Scott Leibrand
@scottleibrand
May 08 2015 05:09
so did you get openaps command working yet?
diabeticgonewild
@diabeticgonewild
May 08 2015 05:09
yeah
see.jpg
Scott Leibrand
@scottleibrand
May 08 2015 05:12
cool. keep following those directions, and see if you can get it to read from your pump
ben and I are getting closer to the first basic semi-functional implementation of openaps. :-)
we got the iobCalc stuff working, so now that's available at https://github.com/bewest/openaps-example/blob/master/iob.js :)
Scott Leibrand
@scottleibrand
May 08 2015 05:18
and we're working on a basic js implementation of https://gist.github.com/scottleibrand/6fcb61e1ebb5c0f89488 :)
not of all of it, just the core event loop
diabeticgonewild
@diabeticgonewild
May 08 2015 05:22
nice! got it to read the pump
Scott Leibrand
@scottleibrand
May 08 2015 05:22
sweet!
diabeticgonewild
@diabeticgonewild
May 08 2015 05:23
pump_history.jpg
Scott Leibrand
@scottleibrand
May 08 2015 05:24
nice
diabeticgonewild
@diabeticgonewild
May 08 2015 05:25
Yeah so dumb question...which language should I program my OpenAPS in, in order to use @bewest tools in efficiently
I know C/C++ and Java
Scott Leibrand
@scottleibrand
May 08 2015 05:26
those are too heavyweight
diabeticgonewild
@diabeticgonewild
May 08 2015 05:26
but I can learn others relatively easily...and well duh I know MATLAB
Scott Leibrand
@scottleibrand
May 08 2015 05:26
we're coding in javascript at the moment, and most of ben's stuff is in python
diabeticgonewild
@diabeticgonewild
May 08 2015 05:26
what would you recommend?
Scott Leibrand
@scottleibrand
May 08 2015 05:26
either of those is good
we also have some bash scripts to pull it all together
really simple stuff
bash scripts are just "run this command, then this one" type stuff
diabeticgonewild
@diabeticgonewild
May 08 2015 05:27
so it's a matter of calling these functions to implement in a program that continues in a loop indefinitely on a timer
unless something happens....
Scott Leibrand
@scottleibrand
May 08 2015 05:27
or calling it every few minutes from a cron job
diabeticgonewild
@diabeticgonewild
May 08 2015 05:27
cron job?
diabeticgonewild
@diabeticgonewild
May 08 2015 05:28
wow, never heard of that before...remember that my background isn't in computer science
but I get a mix of everything...in my curriculum
Scott Leibrand
@scottleibrand
May 08 2015 05:28
yeah, you'll learn a lot about systems doing this kind of stuff
pretty much everyone has big holes in their knowledge that we're helping each other fill in
diabeticgonewild
@diabeticgonewild
May 08 2015 05:29
yeah indeed
Scott Leibrand
@scottleibrand
May 08 2015 05:29
no shame in not knowing something yet, as long as you're willing to admit you don't know it and learn it as needed
diabeticgonewild
@diabeticgonewild
May 08 2015 05:29
yeah
so like has anyone managed to strip a USB plug in device yet with the Pi? Or am I the only one?
I am wondering if I need to have backup cords handy...like if I were to implement this full-time...which I am a ways away from doing...
Scott Leibrand
@scottleibrand
May 08 2015 05:31
I've killed lots of different components
diabeticgonewild
@diabeticgonewild
May 08 2015 05:31
I was just wondering...
Scott Leibrand
@scottleibrand
May 08 2015 05:31
when you get a live system you want to use regularly, you'll want two of everything for emergency backup, and so you can develop on something other than your active setup
diabeticgonewild
@diabeticgonewild
May 08 2015 05:32
I mean I have plenty of cords hanging around...
yeah I have 2 pumps so far and 2 carelink sticks...those are the hardest to get ahold of so I am good for now
Scott Leibrand
@scottleibrand
May 08 2015 05:32
we currently have 4 Pi's, 3 pumps, like 5 carelink sticks...
diabeticgonewild
@diabeticgonewild
May 08 2015 05:33
yeah, I'm not going to go wild yet, but when the moment comes, I will know
Scott Leibrand
@scottleibrand
May 08 2015 05:33
yeah, we accumulated them gradually
we only got the second Pi after we went live 24x7 with the loop
although sooner would've been better, because we were down for 2 days while we overnighted a new one
so if you haven't already, play with openaps and set up some reports that you can invoke to store the pump data to json file
diabeticgonewild
@diabeticgonewild
May 08 2015 05:34
Yeah, Frys carries just the board... Microcenter (a retailer that is in my area) has them
Scott Leibrand
@scottleibrand
May 08 2015 05:35
so when do you get to Seattle?
diabeticgonewild
@diabeticgonewild
May 08 2015 05:35
I'm not extremely excited about the Pi... I like this better for my future work, but Pi works fine http://makerzone.mathworks.com/blog/first-look-at-intels-minnowboard-max/
IDK we leave in the morning I think
like my mom is in bed
Scott Leibrand
@scottleibrand
May 08 2015 05:35
yeah, Pi is nobody's choice for production: it's a dev and prototype device
diabeticgonewild
@diabeticgonewild
May 08 2015 05:35
I will be there in the afternoon
Scott Leibrand
@scottleibrand
May 08 2015 05:36
heh, maybe I should let you get to sleep? :)
diabeticgonewild
@diabeticgonewild
May 08 2015 05:36
No super bad, but you know I have ADHD and I didn't take my medicine till about noon...talk about irresponsible...
but I actually feel well today, so I am trying to enjoy the ride while it lasts, and I don't deny it's irresponsible, but I do feel unusually well today. Tomorrow...who know...can never predict those kinds of things
But I do receive IVIg on Monday, and that gives me mild flu-like symptoms for a few days
I don't have a choice of when I can/can't receive it...it's like every 2 weeks and it costs my insurances (yes I have 2) $8000 every time cause it's a blood product
Scott Leibrand
@scottleibrand
May 08 2015 05:38
you think you'll still be up for dinner tuesday night?
diabeticgonewild
@diabeticgonewild
May 08 2015 05:38
The chemo I am getting is like $9000, each time and I am getting that like once every 4 weeks...
yeah, I will be good. I promise. I did school around it.
I will make sure to sleep on the plane
It's very mild...just feeling unwell and stuff.
Scott Leibrand
@scottleibrand
May 08 2015 05:40
cool. if you end up not feeling up to it, that's fine too. I know you can't always predict it.
diabeticgonewild
@diabeticgonewild
May 08 2015 05:40
I really should be fine though...plus when I go to Seattle, I get pulled in all directions..whether I feel well or not
like I can't just leave when I am "visiting family" cause "I don't feel well"
like I have this huge * backpack that I keep in the car everywhere I go cause like I have to treat my symptoms and stuff and I can't just leave cause "I don't feel well"
I see my family up there 2-3 times per year
I mean it's no biggie...I won't be on my deathbed or anything so I will be OK
If I try to stay comfortable before and like chill this weekend I should be good
don't overexert myself and I will be fine
Scott Leibrand
@scottleibrand
May 08 2015 05:43
yeah
ok, ben and I are wrapping up here
diabeticgonewild
@diabeticgonewild
May 08 2015 05:43
alright
Scott Leibrand
@scottleibrand
May 08 2015 05:43
good progress tonight on all fronts. :)
diabeticgonewild
@diabeticgonewild
May 08 2015 05:43
I'm happy to hear that
Scott Leibrand
@scottleibrand
May 08 2015 05:44
we might just manage an offline openaps implementation before we go to peru. :)
diabeticgonewild
@diabeticgonewild
May 08 2015 05:44
I will go to bed...soon...and I will keep my word so I can avoid being miserable when I see you!
hey that's so exciting!
my aunt went to peru!
Dana Lewis
@danamlewis
May 08 2015 05:44
Can't wait to test w everyone on Monsay :)
diabeticgonewild
@diabeticgonewild
May 08 2015 05:44
!
Ben West
@bewest
May 08 2015 06:34
congrats getting set up @diabeticgonewild :-)
lots of progress tonight
Dana Lewis
@danamlewis
May 08 2015 06:36
@bewest thanks for all your work :)
diabeticgonewild
@diabeticgonewild
May 08 2015 06:39
Thanks @bewest @danamlewis @scottleibrand for your work and help :D
diabeticgonewild
@diabeticgonewild
May 08 2015 06:55
yeah I definitely need to read through the decocare stuff...leaving it for a screenreader LOL...going to fall asleep soon...yay for medicine that makes me sleepy...
Ben West
@bewest
May 08 2015 07:04
hopefully you won't need the decocare stuff really, @openaps should do everything, I updated the readme today so includes everything
diabeticgonewild
@diabeticgonewild
May 08 2015 07:25
oh awesome!
I tried setting a temp basal but I didn't figure that out yet
but I am pretty sleepy...
diabeticgonewild
@diabeticgonewild
May 08 2015 09:24
So for my (backup USB power supply--will get it when I actually start implementing OpenAPS in real life) Xiaomi (an Apple copycat brand from China) came up with a 10400 mAH battery pack that is very compact... I would advise not ordering off of Amazon as you will likely get a counterfeit product http://www.mi.com/en/mipowerbank10400/
But for me ordering that battery...I have a long ways to go...it's a matter of feeling well
when it comes to getting things done...and I have a lot on my plate the next 5 weeks (chemo starts in less than 2 weeks)
diabeticgonewild
@diabeticgonewild
May 08 2015 09:32
I think the Singapore website ships to USA...probably not worth it though, unless bulk is of high concern...
I am actually loading a desktop version of Ubuntu (xubuntu, lubuntu, kubuntu) so I can VNC and connect via WiFi more efficiently on the Pi...laziness I guess, but it saves frustration
just waiting...
diabeticgonewild
@diabeticgonewild
May 08 2015 10:13
my nerves in my feet kind of feel "cool" weird feeling
diabeticgonewild
@diabeticgonewild
May 08 2015 10:34
So @bewest if I can get your Dexcom reads into a JSON file, do you think I could feed that data into a "readable" format for an AGP? As in 14 days worth of data? If so I can get it into MATLAB, and then port it out into C/C++...I mean the AGP program itself.
I don't mean to be like super distracting but all I really have to do is bin the data on the y axis and display it in terms of mean and percentiles
I also would have to format it to read your dexcom JSON file but who cares. Most of it has already been taken care of... https://github.com/diabeticgonewild/Ambulatory_Glucose_Profile/blob/master/main.m
I can't really test it out right now as my Pi is going wild...
diabeticgonewild
@diabeticgonewild
May 08 2015 13:03
Reinstalling Linux from scratch...GUI was dumb to install
have OpenAPS instructions
Matthias Granberry
@mgranberry
May 08 2015 16:21
@diabeticgonewild if you can wait until this evening, I can take a crack at it. I've been meaning to play around with OpenAPS and this gives me an excuse
diabeticgonewild
@diabeticgonewild
May 08 2015 16:55
OK will help you out
WiFi is a pain
@bewest I'm sold. OpenAPS is handy.
Matthias Granberry
@mgranberry
May 08 2015 19:53
I need to write an importer for my pump.
diabeticgonewild
@diabeticgonewild
May 08 2015 20:03
that's awesome!
I'm currently charging a dead battery for the Pi
I need to learn Python or JS....which one is more functional for this kind of work?
or learn both...
but...focus!
Matthias Granberry
@mgranberry
May 08 2015 20:07
Python is great for math, but I do it mostly in Scala now.
Lots of great tools at Lots of great tools here http://www.scipy.org/
diabeticgonewild
@diabeticgonewild
May 08 2015 20:13
Python it is.
Matthias Granberry
@mgranberry
May 08 2015 20:14
the big reason for JavaScript is d3.js, which is fantastic for throwing together visualizations
diabeticgonewild
@diabeticgonewild
May 08 2015 20:14
btw, this is a good guide for WiFi dongle troubleshooting or setting up even http://askubuntu.com/questions/235279/my-wifi-adapter-is-not-working-at-all-how-to-troubleshoot
yeah, I don't think MATLAB can port to JavaScript, or I would get the AGP stuff finished up super fast
python looks to be relatively similar to MATLAB, too
in functionality
Matthias Granberry
@mgranberry
May 08 2015 20:16
from what I recall of MATLAB, Python "feels" much newer. That's saying something because Python feels pretty dated now.
diabeticgonewild
@diabeticgonewild
May 08 2015 20:17
hey, if you are an engineering student or an engineer, MATLAB is the best thing since sliced bread
pretty much awesome
like remember, I don't do object oriented stuff, even though I understand it conceptually. Data structures are what I am trained for
even though I have been in school for a long time, and I would have graduated with an engineering degree if I didn't have 100000 medical problems, I don't call myself an engineer, which is good...some schools let their students call themselves engineers as freshmen it's ridiculous
Matthias Granberry
@mgranberry
May 08 2015 20:19
I'm not knocking it. Back when I was doing DSP work at the beginning of my career it was fantastic for limited sets of problems. It has some very powerful libraries. Most of the scientists I know use a combination of R and Python now.
diabeticgonewild
@diabeticgonewild
May 08 2015 20:19
and it is painful being 26 an still in school
yeah there was this biostatician dude that liked me he had like a PhD in biostatistics...we almost dated but we went our separate ways cause he had aspirations and stuff and my medical problems probably would have got in the way. But I understand. He was a really cool guy though.
He did R and he said he could code 100 lines in 10 minutes
mad programming skills.
He knew a bunch of programming languages. Worked on NIH projects and in a national laboratory in the US for awhile and stuff...which is awesome.
But like I was honest with him, about my medical problems, and we both wanted a serious relationship, and even if you do/don't have feelings for the other side, overall you want a successful relationship so obviously you don't lie and you are forthcoming...
but it was only when I had 1 autoimmune neuropathy diagnosis :P
diabeticgonewild
@diabeticgonewild
May 08 2015 20:25
But like the school I was going to was giving me problems
like and I had just transferred out of it...
like there were potential discrimination issues, both at the university level and within the department that I was majored in...I can't call them actual discrimination issues because I am not a judge or a lawyer or something....
but like I will mention the university level discrimination
Matthias Granberry
@mgranberry
May 08 2015 20:28
I think we've all seen an incident or two of it in our own lives here. Especially those of us who were diagnosed as children, and yours is an especially difficult case.
diabeticgonewild
@diabeticgonewild
May 08 2015 20:28
like I live in Texas....and we have this dumb state law if you are an undergraduate, and depending on your major, if you acquire either 30 hours (most majors) or 45 hours (my major--electrical engineering) that don't count towards your degree, even if due to medical withdrawals the school is authorized by state law to charge you out-of-state tuition for every single credit hour that you take afterwards
so I was facing being charged out of state tuition due to medical withdrawals, cause I had like 4 crises (and one semester I asked for incompletes because I was in the hospital during finals week and they said no)
And the only person at any of the universities in the state that can authorize you to be exempt from this law, is the provost of your university
So I was facing having to appeal to them, and my school has a terrible, terrible reputation, even historically for administrative issues, so it was going to be a drag
what was going on at like a departmental level was worse and it could have left me without a job, a degree or both
so yeah, I was tired of being treated like dirt, after getting good grades, working my *** off while being sick and not even being respected, let alone being treated fairly
like my GPA was fine at that school, and I even had to decline some really good internship offers, but it went way up, because my professors are more reasonable at this school...I really don't think it's easier at all...especially online...and we do get proctored, to an extent
diabeticgonewild
@diabeticgonewild
May 08 2015 20:34
so it's not like a free for all and it is a lot of work...I just have to start feeling better.
Like I was scared transferring out... Like I thought there was going to be a "honeymoon period" at this new school. But it has been literally a bed of roses compared to where I was going to.
Also they have all of these abusive/arbitrary rules, like if you are taking a math class with the "math department" and you have to take "medical withdrawal" (they are the only department that does this) and you get an "F" and you are subsequently granted medical withdrawal....the "F" stays! Department policy!
so I could never be like a math major at that school either.
I didn't want to be, necessarily...but I am just pointing that out. There are all of these crazy things that you have to deal with that just weren't worth it at that school.
diabeticgonewild
@diabeticgonewild
May 08 2015 20:41
This is NOT the school I went to, but I am not making any of this up...like the state law is ridiculous! http://registrar.unt.edu/registration/excessive-hours
and YES, medical withdrawals count against the "enrollment cap"
Sorry for flaming, still have a chip on my shoulder, I guess.
Ben West
@bewest
May 08 2015 20:49
that sucks :-(
diabeticgonewild
@diabeticgonewild
May 08 2015 20:50
yeah, read the first paragraph of this university in Texas...this is what happens when blanket policies are applied. http://www.sfasu.edu/controller/businessoffice/students/excess_credit.asp
Ben West
@bewest
May 08 2015 20:50
@mgranberry thanks!
diabeticgonewild
@diabeticgonewild
May 08 2015 20:50
The State of Texas does not provide funds to state institutions of higher education for excess semester credit hours attempted by a resident undergraduate student. Since funding will not be provided by the State, and as permitted by State law, SFA will charge tuition at the non-resident rate to all students that exceed the semester credit hour limit of their program. The non-resident tuition rate will be charged beginning with the term after the student reaches the maximum number of credit hours attempted in excess of the degree requirement.
Ben West
@bewest
May 08 2015 20:50
I'm particularly fond of the text outputs, since they lack field names, the field names can't disagree between programs
diabeticgonewild
@diabeticgonewild
May 08 2015 20:51
so yeah, screw tem
sorry
being a b****!
Ben West
@bewest
May 08 2015 20:51
nah, don't worry about it
bad stuff happens and it's useful to vent somewhere
diabeticgonewild
@diabeticgonewild
May 08 2015 20:51
I guess.
Matthias Granberry
@mgranberry
May 08 2015 21:12
it's funny how much an average gets thrown off by an event like rolling over and detaching an infusion set at night, but the median doesn't budge too much.
diabeticgonewild
@diabeticgonewild
May 08 2015 21:12
medians are better representations of distributions, in this kind of a setting...
especially with smaller sets of data
Matthias Granberry
@mgranberry
May 08 2015 21:20
Does anyone know of a paper on what a well-controlled AGP should look like? What the high/low bands to aim for pre/post-prandially? So much of D management is playing alone in the woods with your data. Jeff's One Drop social idea always creeped me out a bit, but it does provide some context.
diabeticgonewild
@diabeticgonewild
May 08 2015 21:23
Abbott Next Frontier?
Not a paper though
There would be papers and presentations cited on that site
yeah so I was rereading the paper that I wrote for solving the Hovorka stuff...and like I made tons of minor errors, like from a presentation standpoint, not mathematically. I also left a variable out and my explanations aren't as clear as I want them to be...but that's what happens when you don't feel well...
But #OpenAPS for now...
diabeticgonewild
@diabeticgonewild
May 08 2015 21:42
OK got kind of distracted, but found a simple solution to something that I needed for solving my #VirtualPancreas stuff. I found out the dimensions I need for the intrinsic Gaussian Markov random field is equal to the smoothness parameter (same thing as precision matrix but not)...very relieved. Made my day
Also MATLAB ports out to C/C++ and I found something that ports from C/C++ to JavaScript
would that be feasible on the Pi 2 theoretically?
Ben West
@bewest
May 08 2015 21:43
mmm, sort of
you can write it in js or python
both will work
almost any language will work
but js and python are "lightweight" choices and both will work
diabeticgonewild
@diabeticgonewild
May 08 2015 21:44
I am interested in this for an Ambulatory Glucose Profile
it's not cause I'm lazy and don't want to learn another programming language!
Ben West
@bewest
May 08 2015 21:44
diabeticgonewild
@diabeticgonewild
May 08 2015 21:44
even if I do like MATLAB! I don't like MATLAB that much!
Ben West
@bewest
May 08 2015 21:44
this is AGP in js http://212.71.251.86:8082/
diabeticgonewild
@diabeticgonewild
May 08 2015 21:45
isn't that for one single example of it
like one instance of data? (like not dynamic?)
Ben West
@bewest
May 08 2015 21:46
dunno what you mean
that's for demo purposes
that agp.js script recaculates the stats
diabeticgonewild
@diabeticgonewild
May 08 2015 21:47
so I just have to feed it with the right format, theoretically
Ben West
@bewest
May 08 2015 21:47
that's like me putting glucose.json in my openaps-example repo... just replace the data
diabeticgonewild
@diabeticgonewild
May 08 2015 21:47
got it
sorry I can be slow sometimes...not all the time.
yeah I installed the tools
Ben West
@bewest
May 08 2015 21:47
for agp, you just need glucose
diabeticgonewild
@diabeticgonewild
May 08 2015 21:47
yeah and time
and date
I guess no
you preprocess it and if it's missing one of the 288 data points in a day, you enter a null value
Yeah Python isn't hard to learn at all...trust me I can't/won't want to do this all in MATLAB...I'm not having like doubts or anything. I do want to learn another programming language. Seriously.
But real time controllers = MATLAB, and plus all of the other work works nicely in MATLAB for #VirtualPancreas so I might as well build upon it
I hope you understand that @bewest , like I know some of you might think I am married to MATLAB (yes I am being loaded right now), I like programming in other languages too, like C/C++ and sometimes Java
diabeticgonewild
@diabeticgonewild
May 08 2015 21:54
like I joined code school and stuff...
diabeticgonewild
@diabeticgonewild
May 08 2015 21:59
So I only have like 5 major things to figure out on my project #VirtualPancreas now until it's completely solvable...but it will be brutal...yay randomness
instead of 6
Oh yeah I forgot to thank you @bewest thanks for pointing out that the AGP has already been developed! Now I can't get too distracted!