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

6th
Oct 2015
Tim Howard
@tghoward
Oct 06 2015 00:13
@danamlewis in the gitbook on the RPi setup page, there are still some references to the numbered list. Should I try to bring the numbers back or was it far too much of a pain? I think referring to the numbers was helpful, but if too much of a pain I'll instead remove those lingering references.
Dana Lewis
@danamlewis
Oct 06 2015 00:13
Yes please remove, and just revert to linking to the subtitles now that we figured those out? :)
Numbers are definitely too much of a pain
Tim Howard
@tghoward
Oct 06 2015 00:14
right-o
Ben West
@bewest
Oct 06 2015 00:48
openaps/openaps#55
this addsd --extra switch to the openaps device add command
way it works is all the extra config stuff goes into that
the extra ini is not managed by git by default
and it can be placed outside the git directory...
it should also be possible to use the same ini file for all devices, by giving it the same ini file
Dana Lewis
@danamlewis
Oct 06 2015 00:51
Will this help w the problem of having to blow everything away?
Ben West
@bewest
Oct 06 2015 00:52
no, this helps with privacy
this makes it trivial to post complete thing to github
and keep private info out
Dana Lewis
@danamlewis
Oct 06 2015 00:53
Ah, gotcha
That will make lots of folks happy :)
Ben West
@bewest
Oct 06 2015 01:01
fwiw, there are also a few things in there that should also help in subtle ways to preserve work by reducing contention for resources
actually, yes, this should help avoid truncating openaps.ini in some subtle ways
Chris Oattes
@cjo20
Oct 06 2015 01:06
@bewest nice
Peter Miller
@ochenmiller
Oct 06 2015 01:09
@bewest , quick question: Do you know of a way to write Glucose records into the Medtronic pumps via the Carelink connection? Thinking it could make use of the built in bolus wizard easier.
Ben West
@bewest
Oct 06 2015 01:10
I'm not sure, I think it can be done with rileylink
it might be able to be done with the carelink stick, I haven't revisited sending packets that are not A7 type
it'd be interesting to try
Peter Miller
@ochenmiller
Oct 06 2015 01:11
I notice you have a command WriteGlucoseHistoryTimestamp in decocare. Related?
Ben West
@bewest
Oct 06 2015 01:11
oh that works
what that does is write the GlucoseHistoryTimestamp record into the glucose history page
normally, it's a run-encoded list of values
so that forces the timestamp to be written
to be more specific, the glucose history pages don't have a timestamp on every record... most records don't have timestamps
Peter Miller
@ochenmiller
Oct 06 2015 01:12
Not really following
Ah, got it
Ben West
@bewest
Oct 06 2015 01:13
that forces a simple "timestamp is $now" record
Peter Miller
@ochenmiller
Oct 06 2015 01:13
it's for formatting output
Ben West
@bewest
Oct 06 2015 01:13
no, it actually modifies the cgm history
it inserts a "now" record
yeah, it's useful for ensuring there's a known timestamp in the history results
carelink runs it every time, fwiw
Peter Miller
@ochenmiller
Oct 06 2015 01:14
But it doesn't insert a cgm record
Ben West
@bewest
Oct 06 2015 01:14
it does insert a "cgm record" in the sense that it's in the "cgm history pages"
most of the records in those pages don't have any timestamp at all
one of the records is "the timestamp is $now"
record
Peter Miller
@ochenmiller
Oct 06 2015 01:15
So normally the pump would just have all time stamps as an offset?
Ben West
@bewest
Oct 06 2015 01:15
it's a normal record that gets inserted automatically sometimes at certain events, and can be triggered with the rf command
not the pump, the cgm
there are different "kinds/types" of pages
Peter Miller
@ochenmiller
Oct 06 2015 01:15
Ah, not the pump. Now I understand.
Ben West
@bewest
Oct 06 2015 01:15
in pump history pages almost all records have timestamp
in cgm pages, it's mainly operational record of sensor/transmitter, which occasionally is "the time is $now"
very different type of layout of these pages
the bolus wizard stuff is only done via the pump interface
there are very likely commands to operate the bolus wizard, but I have no way of knowing what they are
we can do button presses
we can "prime" the bolus wizard with a glucometer reading using rileylink, perhaps with carelink stick, but hard to tell
I know there's a command to read the screen's display
but have no idea what it is, or even if we "found it" what the response would mean
Peter Miller
@ochenmiller
Oct 06 2015 01:18
It's the priming aspect that I find most interesting. I gather the pump will accept that value by default if it's not more than 12 minutes old
glucometer and carelink work with separate transceivers in the pump?
Ben West
@bewest
Oct 06 2015 01:21
ok
Peter Miller
@ochenmiller
Oct 06 2015 01:25
Got my homework for the night!
Ben West
@bewest
Oct 06 2015 01:25
to see if the stick will send it, you'll need to replace TransmitPacket with MeterResult and have code = [ 1, 0, 0xA5, 1 ] and figure out how to stuff the payload in there
that's just the head
a5c527ad008e61 so a5, serial == c527ad, 00, 8e, crc=61
doing something like that and figuring out how to get the response if any
err
sorry
a5
no, that's right
Peter Miller
@ochenmiller
Oct 06 2015 01:36
Pump's in use at the moment - but I'll plan to tinker with this over the weekend. Thanks Ben.
Ben West
@bewest
Oct 06 2015 20:56
openaps/openaps#58
this should save a lot of typing
as well as the new oref0 tool :-)
Dana Lewis
@danamlewis
Oct 06 2015 21:01
Om nom nom ;)
Ben West
@bewest
Oct 06 2015 22:28
@audiefile pro tip for those conditionals
that's a common way to do it
the way you did it
another way is -z "$model" which is only true if the string is empty
"zero" /empty string
or you can use -n "$model" which is only true if the string is not empty
Rachel Sandlain
@audiefile
Oct 06 2015 22:31
I tired that actually! it seems that it was interpreting the string not as truly empty but as ""
(ah the power of googling)
Maybe without the quotes though. That might have been the issue.
Ben West
@bewest
Oct 06 2015 22:33
yeah quotes
or -z "${model}" if you want to get really explicit
Rachel Sandlain
@audiefile
Oct 06 2015 22:35
Either way. I just noticed last night/today I wasn't getting notifications when I should have been because it wasn't realizing the string was empty. I'm not picky on how the test condition is written, as long as it works