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

12th
Mar 2015
Ben West
@bewest
Mar 12 2015 02:39
@bustavo try mm-press-keys.py
Gustavo
@bustavo
Mar 12 2015 02:43
Hey I tried that also, no success
Ben West
@bewest
Mar 12 2015 02:48
it didn't go to esc scren?
what is manufacturer date?
oh
hehe
what is the first line under "STATUS"
Gustavo
@bustavo
Mar 12 2015 02:50
status?
Ben West
@bewest
Mar 12 2015 02:50
on esc screen
Gustavo
@bustavo
Mar 12 2015 02:51
first esc = graph
Ben West
@bewest
Mar 12 2015 02:51
second esc
Gustavo
@bustavo
Mar 12 2015 02:51
second esc =
Ben West
@bewest
Mar 12 2015 02:51
scroll down
STATUS
then 3-4 lines
oh
sorry
under S/N
next 3 lines
it's the last 3 lines on the screen
Gustavo
@bustavo
Mar 12 2015 02:52
the last 3 lines on the screen are
serial number
then
Paradigm 754
then
VER 2.8A 1.1 0B 0B
I changed to English
and
STATIS is at top of screen always
*STATUS
STATUS U100
Ben West
@bewest
Mar 12 2015 02:53
ok
yeah, that's why I was confused earlier
sorry
haha
so mine says:
Paradigm 554
VER 0821 1.1 0B 0B
I got this special underground, so it appears to not be a stock item
I like this thing a lot
Gustavo
@bustavo
Mar 12 2015 02:55
the bg interpreter for the raw enlite data on the 554 / 754 is very very very accurate
Ben West
@bewest
Mar 12 2015 02:55
but I played with one from europe
that's how I developed teh tool
someone from europe came to my house
and I tested it/developed it here
but believe it depends on date
so frustrating, sorry @bustavo
Gustavo
@bustavo
Mar 12 2015 02:56
Has that always been on the repo?
or have you updated that recently?
Ben West
@bewest
Mar 12 2015 02:56
it's been there awhile
almost year I think
discovered it about a year ago
Gustavo
@bustavo
Mar 12 2015 02:56
ok
Ben West
@bewest
Mar 12 2015 02:57
I mean
that response you got was interesting
Gustavo
@bustavo
Mar 12 2015 02:57
I was starting to move the python scripts around, but am afraid might do something unwanted
Ben West
@bewest
Mar 12 2015 02:57
empty response for keypress
but no ack for bolus
that's more interesting
no need
if you run setup python setup.py install
they will be installed in /usr/local/bin for you
you can just run mm-foo wherever
same if your un develop
Gustavo
@bustavo
Mar 12 2015 02:58
I meant modifying the scripts
Ben West
@bewest
Mar 12 2015 02:58
oh
you can modify
you might try using simple shell script though
and try the tweak command
Gustavo
@bustavo
Mar 12 2015 02:59
what can I do with the tweak command?
Ben West
@bewest
Mar 12 2015 02:59
mm-send-comm.py tweak Bolus --param 0 --param 1 --param 2 --param 3 will send arguments [0, 1, 2, 3] with the bolus command
Gustavo
@bustavo
Mar 12 2015 02:59
let me try it! :D
Ben West
@bewest
Mar 12 2015 03:00
er, str(bytearray([0,1,2,3]))
I wouldn't expect anything from those parameters
but ifyou look at existing parameters
maybe try doubling size or something
add extra byte to beginning maybe
I think it's 4 bytes for the normal bolus, perhaps it's 8 for the 7xx
but I would expect the press-keys to work
it works on mine
but 90% sure it won't work on yours, and it's just because mine has a funky build
Gustavo
@bustavo
Mar 12 2015 03:04
also get errors
how would I add extra byte?
diabeticgonewild
@diabeticgonewild
Mar 12 2015 03:43

Ok, so I am no expert at object oriented programming (I do know Java though). And I am wondering how:

isDecaying = tCOB.isDecaying;

the object tCOB.isDecaying when tCOB.isDecaying hasn't been defined yet, what would the value be?
I am comment code as a favor for somebody, and I was wondering if one of you could give me an answer
diabeticgonewild
@diabeticgonewild
Mar 12 2015 03:48
I mean, I think it assigns the previous value (before that line appears) of isDecaying to the object tCOB.isDecaying and assigns that value (and the object) to isDecaying
diabeticgonewild
@diabeticgonewild
Mar 12 2015 03:59
nevermind. I traced the code some more and now I know what is going on.
Scott Leibrand
@scottleibrand
Mar 12 2015 04:36
cool.
kenstack
@kenstack
Mar 12 2015 13:24
@bustavo did the standard bolus command from decoding carelink not work?
on a 722?
Matthias Granberry
@mgranberry
Mar 12 2015 15:18
@diabeticgonewild in my own experiment I am taking activityContrib = (iob(t)-iob(t+1 min))*sens and it seems to work well enough. @scottleibrand Have I missed something about the problem that is likely to cause me trouble?
Toby Canning
@TC2013
Mar 12 2015 15:40
Does anyone know where I can learn more about using the rest api? Right now I have the Pi connecting to the mongolab.com database, but it would be great to have the uploader send the data to the Pi and the mongolabs. I have the Pi tethered to the uploader cell phone via bluetooth. By the way, the Pi2 loads NightScout fast!
diabeticgonewild
@diabeticgonewild
Mar 12 2015 16:32
Thank you. I was going to re parametrize the function myself!
Gustavo
@bustavo
Mar 12 2015 16:46
@kenstack I'll check tonight, but I think it will, everything else works perfectly fine
Matthias Granberry
@mgranberry
Mar 12 2015 17:21
@diabeticgonewild It is worth noting that some of the IOB functions don't terminate at 0, so naively assuming that they do like I did above will lead to some spurious results, so I handle the start and end points specially.
diabeticgonewild
@diabeticgonewild
Mar 12 2015 17:23
OK got it
diabeticgonewild
@diabeticgonewild
Mar 12 2015 17:42
Yeah my infusion started...like 2.5 hours late due to supply issues. I go in monthly for immunomodulatory treatment. I can feel it as I am getting it, like better. I guess I really needed it. But I am working on things while I am getting treatment. 4 hours to go...
Scott Leibrand
@scottleibrand
Mar 12 2015 19:33
@mgranberry that's the same formula I used earlier on. the main problem I had was dealing with decay during the time periods where a new bolus was added. If you're doing the sum of the activityContrib from each individual bolus, rather than trying to do it based on the already-summed IOB, that should work.
@TC2013 have you confirmed you can connect to the Pi from the uploader? not sure if the android networking stack allows apps to initiate connections to tethered devices or not...
Matthias Granberry
@mgranberry
Mar 12 2015 20:04
@scottleibrand Good. I have modeled each individual bolus separately. Actually I plan to translate basal rates into a series of periodic boluses too.
Scott Leibrand
@scottleibrand
Mar 12 2015 22:06
yeah, that's what I'm doing in #DIYPS and my wip/iob-cob
(haven't committed any of that stuff to nightscout:wip/iob-cob yet: it's just in my fork)
Matthias Granberry
@mgranberry
Mar 12 2015 22:33
@scottleibrand I have used mdns to locate tethered devices on android before. It was a bit of a pain but it works once everything is configured
Scott Leibrand
@scottleibrand
Mar 12 2015 23:13
nice