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

12th
Oct 2015
Scott Leibrand
@scottleibrand
Oct 12 2015 00:06
Correct I usually mv it to /tmp/ instead of rm.
that's how we do it.
eszcloud
@eszcloud
Oct 12 2015 00:10
Along the lines of @ochenmiller's posts, anyone have thoughts on the case for RPi that has the smallest profile? I've tried a couple that seem to be unnecessarily big.
Peter Miller
@ochenmiller
Oct 12 2015 00:52
@scottleibrand, Aha! I'd wondered what those lines in your loop.sh were all about. Now I get it. Light dawns...
Peter Miller
@ochenmiller
Oct 12 2015 01:26
@scottleibrand, and now that we're going mobile, I also appreciate your clockset.sh script!
Dana Lewis
@danamlewis
Oct 12 2015 01:27
:)
diabeticgonewild
@diabeticgonewild
Oct 12 2015 06:07
@eszcloud this is the lowest profile case I have found so far. Raspberry Pi B+ /PI2 Acrylic Case - Ebony Black https://www.amazon.com/dp/B00M9ZW6QU/ref=cm_sw_r_awd_K30gwb59FAMP5
eszcloud
@eszcloud
Oct 12 2015 06:14
thanks @diabeticgonewild
Oliver Schumacher
@oschumac
Oct 12 2015 07:22
@ochenmiller How do you connect wixel to rpi?
Ben West
@bewest
Oct 12 2015 07:31
w00t, I received a pump
Milos Kozak
@MilosKozak
Oct 12 2015 08:12
what pump?
Ben West
@bewest
Oct 12 2015 08:12
used 522 :-D
I suspect there will be a tear-down of the old one soon :-)
Milos Kozak
@MilosKozak
Oct 12 2015 08:14
i want dana + support from you :)
Ben West
@bewest
Oct 12 2015 08:14
right, think @holgi13 suggested plan to get me one
main issue is financing the ~4k, I might do all of it, but have been considering asking foundation for some help
Milos Kozak
@MilosKozak
Oct 12 2015 08:15
finaly piece of hw that can move things big step forward
Ben West
@bewest
Oct 12 2015 08:16
true, dana pump is the ONLY pump, to my knowledge, which will do wireless dosing now ;-(
Oliver Schumacher
@oschumac
Oct 12 2015 13:11
@bewest I though5 that the new 640g is capable to bolus threw bayer meter or am i wrong.
Pete Schwamb
@ps2
Oct 12 2015 13:14
@bewest omnipods
Or do you mean only pump that does wireless dosing via an open or understood mechanism
Matthias Granberry
@mgranberry
Oct 12 2015 13:49
Has anyone measured the battery on the Dana R? I'd like to have a shim made so I can use stockpileable batteries before I start leaving bluetooth constantly connected on one
Matthias Granberry
@mgranberry
Oct 12 2015 15:27
I love eating soon mode. I never thought I'd be able to eat a normal American breakfast and stay in the normal range afterwards. I wish the devices had better native support for oddball strategies.
Scott Leibrand
@scottleibrand
Oct 12 2015 15:43
:-)
Lori
@LoriLori
Oct 12 2015 15:45
@mgranberry not sure what question is, but probably batteries will cost fortune
Matthias Granberry
@mgranberry
Oct 12 2015 15:46
@LorelaiL but 3V lithium batteries are all pretty much the same. A little bit of copper sheet and some heat shrink plastic should be all that's needed to move the terminals where they need to be.
Lori
@LoriLori
Oct 12 2015 15:48
yes http://www.elektroda.pl/rtvforum/topic2803308.html, but I am ok with "cost fortune"
Matthias Granberry
@mgranberry
Oct 12 2015 15:52
The pictures look pretty close to what I was thinking. I wish I knew what the tolerances are for the device power supply
a rechargeable LiFePO4 battery would be a great fit
Lori
@LoriLori
Oct 12 2015 15:53
device doesn't have super capacitor for motor
thus relaying on battery for quite high current, can't use regular AA, but rechargable should be good with max currents
on mentioned page, person describes that pump is ok with anything above certain voltage
Matthias Granberry
@mgranberry
Oct 12 2015 15:55
LiFePO4 works great for lead acid car battery replacement, so I'm not worried
Lori
@LoriLori
Oct 12 2015 15:55
but will reset if voltage drops during motor run, for example bolus of few units
I am still not sure I will keep pump at all, don't relay on me for decision
Matthias Granberry
@mgranberry
Oct 12 2015 15:56
thanks for the synopsis. Google translate isn't terribly readable, although I know enough about the electronics to make do
@LorelaiL you were complaining about noise? Is there anything else that is a problem?
Lori
@LoriLori
Oct 12 2015 16:08
no complains on pump, just every cell in me hates idea of pump on me, even it is great thing
Matthias Granberry
@mgranberry
Oct 12 2015 16:09
@LorelaiL I understand that. I threw my old medtronic pump away after getting caught on a doorknob and went on MDI for most of a decade.
Lori
@LoriLori
Oct 12 2015 16:12
its 60 grams, it can stick it with tape on body like patch pump, but somehow still something feels wrong
Matthias Granberry
@mgranberry
Oct 12 2015 16:55
@timomer I took a look at HAPP because it sounds pretty close to what I want. Is there currently a way to edit the basal/ISF profile? I'm not seeing anything in the code, but I haven't looked very long.
Scott Leibrand
@scottleibrand
Oct 12 2015 16:57
is it pulling it from the pump like openaps-js does?
Matthias Granberry
@mgranberry
Oct 12 2015 16:58
It isn't interacting with a pump unless I'm missing something. It looks like it is just relying on stored settings and manual inputs
I have some code in tidepool to pull data off a t:slim that I'll probably port over for convenience
the CGM data broadcasts from xDrip drive the predictions/analysis
Scott Leibrand
@scottleibrand
Oct 12 2015 17:05
I thought it also read the pump to calculate IOB
Matthias Granberry
@mgranberry
Oct 12 2015 17:07
I don't see any pump communication code in the source
Scott Leibrand
@scottleibrand
Oct 12 2015 17:53
ok, then I misunderstood him
he's probably just using nightscout treatments
Matthias Granberry
@mgranberry
Oct 12 2015 17:54
it looks like there is some support for sending boluses to a pump, and possibly temp basals
I'm not sure how, though. It started crashing when I played around with it.
Ben West
@bewest
Oct 12 2015 18:14
fair, I keep forgetting about the pod
Pete Schwamb
@ps2
Oct 12 2015 18:50
And there appears to be someone who worked on the omnipod that knows it’s possible to decode and issue commands easily, but can’t obviously just come out and tell us how.
Ben West
@bewest
Oct 12 2015 18:55
oh?
what is this "appearance"?
just need a few "neighborly" hints
Pete Schwamb
@ps2
Oct 12 2015 18:58
This message was deleted
Scott Leibrand
@scottleibrand
Oct 12 2015 19:03
nice
Pete Schwamb
@ps2
Oct 12 2015 19:06
a couple replies down is @bewest, so this isn’t necessarily news, I guess, but it does seem promising.
Ben West
@bewest
Oct 12 2015 19:06
oh
I know him
he works at coin
actually, need to reconnect with him
last time I saw him (about a year ago)
he's been working on pancreum for a long time
said if another year went by, he'd just open source the whole thing
maybe time to give him a call :-)
Pete Schwamb
@ps2
Oct 12 2015 19:08
He speaks of pancreum in his linked in profile in a past tense.
Ben West
@bewest
Oct 12 2015 19:08
oh, he might have sold the whole thing I guess instead of open sourcing it
no
the trademark is being kept current, 2015
it's not on his linkedin, because it's kind of like NS
it's a side gig
he's using these other things to try to fund it
it's exhausting, he told me a year ago if another similar year went by, he'd just open source it
all the contact stuff on the website points at him
blob
Pete Schwamb
@ps2
Oct 12 2015 19:25
Speaking of creating an insulin pump. :)
Ben West
@bewest
Oct 12 2015 19:26
exactly
so apparently he puts upper bound at, well he needed $.5M, anyway
timomer
@timomer
Oct 12 2015 20:03
@mgranberry sorry, for some reason I dont get gitter notifications, feel free to ping me directly if needed
yes, you set your full profile in the app settings, isf, Carb ratio, pump basal and openaps settings, etc
right now I do not read anything from the pump as I do not have that integration, yet
as you set all this info in the app, you can test with any pump
i have a apk you should be able to just install and play with
timomer
@timomer
Oct 12 2015 20:09
@scottleibrand fyi I am using my own treatments code, but it is similar to nightscout
@mgranberry let me know what crash issues you have, as I have not had anyone else test the code yet - but I have just installed it on a fresh phone ok
eyim
@eyim
Oct 12 2015 20:46
Hi Everyone - I am a father of a type 1 diabetic. I am looking to close the loop for him at night time. I've set up the Pi and am now pulling reports and collecting data from the pump and Dexcom. I took programming courses way back in college and interact frequently with a dev team at work where we do a lot of pseudocoding together. So while I am not a total tech neophyte, my programming skills aren't up to snuff to write a lot of the code myself. I found the pseudocode for the basic ideas behind closing the loop but am a bit stuck now. I am taking a course on Python to help (I learned pascal back in the day). If there is a non-programmer that reached the same point as me and is willing to let me know how they proceeded I would be grateful.
Scott Leibrand
@scottleibrand
Oct 12 2015 20:48
welcome eyim! there are lots of people who have been down the same path as you. there is a fair bit of code out there that you should be able to assemble to do what you want. things are still in flux a bit, and we haven't documented things in a whole lot of detail, but you might want to look at determine-basal.js to start with...
Matthias Granberry
@mgranberry
Oct 12 2015 21:10
@timomer I wasn't seeing any kind of editable preferences. Am I missing something?
timomer
@timomer
Oct 12 2015 21:16
you need to set the correct profile setting based on your needs, these are captured as preferences in the app, ie - dia, isf, max_iob, etc
Matthias Granberry
@mgranberry
Oct 12 2015 21:17
Thanks. That's what I was missing
timomer
@timomer
Oct 12 2015 21:19
for roche pumps you do not capture treatment info on the pump (and I cannot connect to the pump yet anyway!) so all treatment info and pump info, for example Pump Basal, Pump Temp Basal Mode and also set in app
Matthias Granberry
@mgranberry
Oct 12 2015 21:20
actually no. Is there somewhere that I can enter a profile? I'm not finding any way to provide the data.
timomer
@timomer
Oct 12 2015 21:20
while in the app, press your phone menu button > settings
Matthias Granberry
@mgranberry
Oct 12 2015 21:21
ah. My phone doesn't have a hardware menu button.
timomer
@timomer
Oct 12 2015 21:21
ah, ok, give me 5mins...
:)
Matthias Granberry
@mgranberry
Oct 12 2015 21:29
@timomer for the moment I edited the AndroidManifest.xml to export the activity and ran adb shell am start com.hypodiabetic.happ/.code.nightwatch.SettingsActivity
timomer
@timomer
Oct 12 2015 21:48
@mgranberry ok, i have just done a very quick hack and added a button to open the menu
ill get a proper menu object added tomorrow - ping me if anything else is out of place
fyi - i am using a S4 with cyanogen 12
Matthias Granberry
@mgranberry
Oct 12 2015 21:54
Thanks. BTW it just recommended a temp basal reduction within minutes of when I decided one was necessary.
Not sure about the notification. It's a little distracting on my Pebble. I'll have to take a look at it. I suspect something subtle needs to be changed.
timomer
@timomer
Oct 12 2015 21:59
cool, I am surprised the notification comes up on the Pebble, I have a sony smartwatch
notification layout is not great, I am still working on getting just the right info in there in a quick to read format
Matthias Granberry
@mgranberry
Oct 12 2015 22:01
I need to get Motorola to fix my 360. Some bug on their end has it unresponsive and there is no way to factory reset it w/o opening it up or going through menus after it boots.
timomer
@timomer
Oct 12 2015 22:02
also remember, the notification is designed to get your attention when a new Temp is suggested, as you have to manually set it on the pump
my loop runs every 15mins, i feel thats a good balance
Matthias Granberry
@mgranberry
Oct 12 2015 22:04
right. But there is something that is causing it to update the Pebble every time a new data point comes in even when no adjustments are needed, which is a little annoying
timomer
@timomer
Oct 12 2015 22:04
right, thats the info notification
Matthias Granberry
@mgranberry
Oct 12 2015 22:04
I'll try to figure it out when I have a chance. The obvious solution is to just stay in range all the time.
timomer
@timomer
Oct 12 2015 22:05
on my watch it just sits there as a card i can pop up
timomer
@timomer
Oct 12 2015 22:10
hmm, have made that notification persistent earlier, and it appears Android Wear ignores it ~ ill play with this some more and add prefs for notifications
Matthias Granberry
@mgranberry
Oct 12 2015 22:11
It looks like the notifications need IDs and potentially a .setOngoing(true)
nevermind, there is an id
timomer
@timomer
Oct 12 2015 22:12
i added .setOngoing(true) today, but forgot Android Wear does not like it so now its not popping up my watch at all
Matthias Granberry
@mgranberry
Oct 12 2015 22:12
right. You will need an android wear app if you want persistent notifications there.
timomer
@timomer
Oct 12 2015 22:12
right, I need to go to bed, wife just yelled at me, until tomorrow all
r, that appears to be the case
Lori
@LoriLori
Oct 12 2015 23:39
@mgranberry "adb shell am start " never would have though of there is something like that, very nice
Matthias Granberry
@mgranberry
Oct 12 2015 23:44
@LorelaiL am has a bunch of intent-related commands