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

21st
Jan 2015
Dominik Stefan
@DominikStefan
Jan 21 2015 00:05 UTC
sounds simple, lol
looks like I'm getting a pebble, at least for now
Toby Canning
@TC2013
Jan 21 2015 00:13 UTC
Here is a link to an android Nightscout watch app: https://github.com/StephenBlackWasAlreadyTaken/NightWatch
I love the interface of it. I'm looking forward to when the iwatch comes out.
Ben West
@bewest
Jan 21 2015 01:07 UTC
needs log scale :-)
Ross Naylor
@rnpenguin
Jan 21 2015 01:23 UTC
:)
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:16 UTC
does the AR stuff and other BG predictions have to be in JavaScript? I mean, there are better languages for implementation.
Chris Oattes
@cjo20
Jan 21 2015 16:17 UTC
which languages are you thinking of? I think JS is convenient from the perspective of a web client
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:17 UTC

C++, maybe Java

I guess JavaScript it is, but it's just not as nice.

Scott Leibrand
@scottleibrand
Jan 21 2015 16:17 UTC
Depends what you want to do with it. If you want to visualize the predictions, in needs to run on a web client or server...
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:18 UTC
OK, then it needs to be in JS...
Also, won't it be heavy data-wise on a mobile platform? I don't know how it works on a mobile platform, data-wise.
Chris Oattes
@cjo20
Jan 21 2015 16:19 UTC
The data it fetches is pretty small afaik, each 'treatment' consists of time/amount/type I think, which is only a handful of bytes
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:19 UTC
OK. got it.
Chris Oattes
@cjo20
Jan 21 2015 16:21 UTC
how often does NS update its display?
Scott Leibrand
@scottleibrand
Jan 21 2015 16:22 UTC
Every time it gets new data from the web socket, or any time you scrub. In steady state, every 5 minutes.
Currently it's inefficient and re-downloads all BG data every 5 minutes. The E release will fix that with MQTT
I would really recommend setting up the dev version of nightscout and developing live against that.
Running live with real data and using the chrome debugger to find issues works pretty well.
Chris Oattes
@cjo20
Jan 21 2015 16:27 UTC
@diabeticgonewild I'd guess that it's probably in the order of 10MB/day (12*24 updates per day, say 500 treatments pulled per update, 60 chars per treatment would be 8.2MB/day, or 250MB/month). That's just a rough estimate
should be about the right order of magnitude though
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:31 UTC
OK, got it. The dev version is like on the GitHub, right?
Scott Leibrand
@scottleibrand
Jan 21 2015 16:32 UTC
Ya, github dev branch of the nightscout cgm-remote-monitor repo.
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:32 UTC
Thanks.
Scott Leibrand
@scottleibrand
Jan 21 2015 16:33 UTC
You might want to enable care portal as detailed on the nightscout.info labs page too.
That lets you enter insulin and carbs to do IOB and COB predictions.
diabeticgonewild
@diabeticgonewild
Jan 21 2015 16:35 UTC
Will do. Saving this convo for future reference, even though I am implementing immediately.
kenstack
@kenstack
Jan 21 2015 19:07 UTC
@scottleibrand I tried to install the iob cob branch - I didn't see the raw data as well as the dex sgv - is there a flsg to enable ? Thanks !
Also looking at the iob thing
rb
@scottleibrand cell data vs websocket data conflated a bit above
we already fixed the websocket data issue
mqtt wil go into next release, reduce from ~ 30 MB/month < 6
on cell
mqtt affects the cell plan, not the websocket client os much
Ben West
@bewest
Jan 21 2015 19:54 UTC
very interesting stuff ps2/minimed_rf#1
Ben West
@bewest
Jan 21 2015 20:13 UTC
check out explorable examples: http://worrydream.com/ExplorableExplanations/
#2
little widget you can drag, changes shape of curve
done
shows you how the inputs are mapped, what's happening
Toby Canning
@TC2013
Jan 21 2015 20:31 UTC
@scottleibrand I had no idea there were instructions there for the iob-cob branch... thank you!
Sulka Haro
@sulkaharo
Jan 21 2015 20:33 UTC
Wow does the @bustavo work mean we can listen to the pump MySentry transmissions to capture BG data translated from isig using the official algorithms? that's amazing. How do I activate the mysentry mode on the pump?
Ben West
@bewest
Jan 21 2015 20:33 UTC
have no clue
no clue at all, but apparently he's got iob somehow
not clear to me what's going on
kenstack
@kenstack
Jan 21 2015 20:46 UTC
I think he's using decocare @bewest and the pi
Ben West
@bewest
Jan 21 2015 20:47 UTC
ah, what's the cc1111 for?
oh, passive?
how did he get iob, I want iob
kenstack
@kenstack
Jan 21 2015 20:47 UTC
not sure I'll ask him was just talking to him about glucodyn
I think the same way I calced it ihawk
Ben West
@bewest
Jan 21 2015 20:48 UTC
don't think so
kenstack
@kenstack
Jan 21 2015 20:48 UTC
Bolus history - but again maybe he figured it out !!
Ben West
@bewest
Jan 21 2015 20:48 UTC
he says it's on byte one-eighty something
kenstack
@kenstack
Jan 21 2015 20:49 UTC
Ahh then he did decode it !
Ben West
@bewest
Jan 21 2015 20:49 UTC
no, I think 523 has it in pumpstatus
not in history
kenstack
@kenstack
Jan 21 2015 20:49 UTC
Does decocare download it in status ?? It woukdnt before on the 733
Ben West
@bewest
Jan 21 2015 20:49 UTC
I want a 554
kenstack
@kenstack
Jan 21 2015 20:49 UTC
723
Ben West
@bewest
Jan 21 2015 20:49 UTC
723 has a bigger status apparently
oh
733
whatever
yeah small tweak probably
kenstack
@kenstack
Jan 21 2015 20:50 UTC
:) 723
Ben West
@bewest
Jan 21 2015 20:50 UTC
*33 or *23, they added active current iob sum to status output
so status output
matches everything on esc screen
the status screen
I'm just dumb and don't know about it yet
so whenever is showed up on bottom of esc screen or wherever, that's when they added it to pump status
that's why I always say there's a command for that
kenstack
@kenstack
Jan 21 2015 20:52 UTC
I just emailed him
Ben West
@bewest
Jan 21 2015 20:52 UTC
the tweak command thingy allows changing some of those params, like how big the packet is
kenstack
@kenstack
Jan 21 2015 20:52 UTC
Yeah maybe he got it
Will knkw shortly
Ben West
@bewest
Jan 21 2015 20:52 UTC
if 733 has big packet, like 256 bytes, that could explain why it doesn't work on decocare
Sulka Haro
@sulkaharo
Jan 21 2015 20:59 UTC
@bewest check the mmcommander uploader source? It requests the IOB from the pump periodically.
kenstack
@kenstack
Jan 21 2015 21:01 UTC
723 used to give the same status fields as 722 from what I remember
From decocare
Ben West
@bewest
Jan 21 2015 21:02 UTC
think it's using pumpstatus command
and decocare is just stupid :-(
I haven't had a good pump to test that stuff with
using tweak ReadPumpStatus --save might do the trick
not sure
should double check mmcommander
kenstack
@kenstack
Jan 21 2015 21:08 UTC
@sulkaharo @bewest he is using the 722 to pump for control so No - He did the same thing I did - he said he added up all boluses within the insulin duration
Ben West
@bewest
Jan 21 2015 21:08 UTC
oh, curses
there is some model in which you can just query
the new 6** series is going to be a problem
kenstack
@kenstack
Jan 21 2015 21:11 UTC
He said he didn't try too hard though - maybe it's there
Sulka Haro
@sulkaharo
Jan 21 2015 21:11 UTC
float insulinLeft = (HexDump.unsignedByte(readData[commandByte + 4]) * 256f + (float) HexDump.unsignedByte(readData[commandByte + 5])) / 40f; sResult = "Remaining insulin....: " + insulinLeft + " Units";
kenstack
@kenstack
Jan 21 2015 21:12 UTC
Insulin remaining in cartridge
That status does have
Sulka Haro
@sulkaharo
Jan 21 2015 21:12 UTC
Oh right . hmm
kenstack
@kenstack
Jan 21 2015 21:12 UTC
Which is very useful to me and my kid that used to run out before ihawk :)
Ben West
@bewest
Jan 21 2015 21:13 UTC
there's always a bit more
kenstack
@kenstack
Jan 21 2015 21:13 UTC
If mmcommander can do it that's cool !
Ben West
@bewest
Jan 21 2015 21:13 UTC
oh yeah
that's right, you opened bug on decocare on pump status?
think you got a binary to me
Sulka Haro
@sulkaharo
Jan 21 2015 21:14 UTC
How many units do you consume / day? We can use the same small insulin cartridge for over a week...
Ben West
@bewest
Jan 21 2015 21:14 UTC
I fill mine to the 1.8 marking on the reservoir, and I use it 3 - 4 days max
Sulka Haro
@sulkaharo
Jan 21 2015 21:14 UTC
So running out is never a problem, we just fill a new one every three cannula changes or so
Ben West
@bewest
Jan 21 2015 21:15 UTC
crazy hormones?
Dana Lewis
@danamlewis
Jan 21 2015 21:16 UTC
For a little one, right?
Sulka Haro
@sulkaharo
Jan 21 2015 21:16 UTC
Yes :)
Ben West
@bewest
Jan 21 2015 21:18 UTC
I use ~30 units a day, on bad days twice, or half depending
also, I just found a bunch more features in the pump
Sulka Haro
@sulkaharo
Jan 21 2015 21:18 UTC
Who's alpha cell CLP-1 production seems hyperactive, unfortunately. A snack with near 0 carbs can do a 100 to 250 BG raise in 30 minutes. Makes life interesting.
Ben West
@bewest
Jan 21 2015 21:18 UTC
better idea how to decode those result totals
and there's a calculator function, where you select number of days, and it gives you nice report on those days
Sulka Haro
@sulkaharo
Jan 21 2015 21:19 UTC
That's cool
Ben West
@bewest
Jan 21 2015 21:19 UTC
I've seen something similar for cgm, where you can search for a time range
and wondered what the heck might be in there
it's some kind of Filter command
but this is some kind of CalculateAverageReport command
kenstack
@kenstack
Jan 21 2015 21:28 UTC
Ryan can use between 40-80 units a day or more
Hormones of a teen and a big carb eater
Ben West
@bewest
Jan 21 2015 21:29 UTC
ah, I fast a lot
I'm more 40 - 70 easily when I'm with family and eating lots
:-)
Sulka Haro
@sulkaharo
Jan 21 2015 21:31 UTC
Ha. We're on low carb due to the alpha cell attack problems, so just checked recent average is 6.5 units / day. 0.38 per kg / day
I think the doctor will be worried again, the hba1c projection is down to 6.4. Less hypos though, so maybe he'll be fine.
kenstack
@kenstack
Jan 21 2015 22:03 UTC
Wow - I think we are on different sides of the spectrum :) just ate dinner Prob 12 units and that's a small meal for him
Great work on the a1c if not too many hypos !!
Ben West
@bewest
Jan 21 2015 22:04 UTC
oy, I do a lot of searches on cfr numbers now (code of federal regulations)
I've reached that tipping point where my own work is showing up in the results :-(
damnit
kenstack
@kenstack
Jan 21 2015 22:04 UTC
Hormones will increase as your son gets older - but yu have time before your wonderful boy becomes a teenager :)
Nice ben - you are famous or infamous - maybe both :)
Ben West
@bewest
Jan 21 2015 22:05 UTC
I hate this moment though
it's a crushing moment
usually you can always rely on google to get few more hints
eek out little bit more information
kenstack
@kenstack
Jan 21 2015 22:06 UTC
Or now you realize you can stop googling becuase you know what you are doing
which is nice and confirming
"yes, yes you can do that"
few stackexchange's to back it up
but then, there's process-controls right under it
no, no no, this can't be the only example
I did find one one github, but it was for 520k, class II
510k
and it was for imaging