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

5th
Jul 2016
Paul Martin
@Spazholio
Jul 05 2016 00:06
I think my wife deserves a medal for putting up with my low blood sugar episodes, I swear…
jaylagorio
@jaylagorio
Jul 05 2016 00:45
@Spazholio Don't they all.
Garrett Webb
@garetis
Jul 05 2016 02:11
@thebookins Yes, I have static files that all reside in my settings folder (don't put any in your monitor folder because later on as part of the loop you will delete everything in that folder and repopulate it). The files I have are for the basal profile, read settings, insulin sensitivities, and bg targets. There's not a lot of consistency in the naming conventions for those files.
Paul Martin
@Spazholio
Jul 05 2016 03:00
There’s not a “BAGE” plugin in NS for my battery life, is there? I’d LOVE to be able to track how long these things are lasting, and I never remember to write it down...
Dana Lewis
@danamlewis
Jul 05 2016 03:01
Not yet ;)
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:09
there are some battery history events that get uploaded, so the data is there
@Spazholio try this: YOUR_SITE/api/v1/treatments.json?find[enteredBy]=/openaps/&find[_type]=Battery&find[created_at][$gte]=2016-06
Paul Martin
@Spazholio
Jul 05 2016 03:13
Are each of those supposedly battery change events?
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:14
there might be 2 for each
Paul Martin
@Spazholio
Jul 05 2016 03:14
Oh good. Because I was pretty sure I didn’t change my battery 11 times last month.
What voltage do most people find that things go south? I have an alert set for 1.38v, but it seems I can usually squeeze another day out past that...
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:19
I've been using the defaults and lithium batteries
Paul Martin
@Spazholio
Jul 05 2016 03:19
What are the defaults again?
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:19
I'd like a smarter alarm, no need for a warning at 3am when it's expected to last through the night
but a warning when getting close after a bolus would be really helpful
Paul Martin
@Spazholio
Jul 05 2016 03:22
Is there a way to set it up to send emails? Or is that an IFTTT thing?
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:23
I think you could with the maker plugin
Paul Martin
@Spazholio
Jul 05 2016 03:24
k
When setting up PUMP_WARN_BATT_V - is there a way to make it just use the defaults? Or do I have to specify a value?
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:26
doesn't look like eventName is getting set for the battery events, so might need to do a little work on the plugin to get it working good with maker
I'm using pushover for the NS alarms
and have maker echo almost everything to a private twitter account
Paul Martin
@Spazholio
Jul 05 2016 03:27
I enabled Pushover when I started. It was too noisy, and when I turned it off, it STILL sent notifications. Had to disable it entirely. May try poking at it again though.
Jason Calabrese
@jasoncalabrese
Jul 05 2016 03:28
there are so many settings that effect alarms, takes time to get it tuned to your needs
might need more options too
Paul Martin
@Spazholio
Jul 05 2016 03:30
Very true. I was more concerned with it not stopping even after I removed it from my ENABLE var.
ddaniels1
@ddaniels1
Jul 05 2016 04:16
I keep getting the following error intermittently and makes the loop fail about 20% of the time. It happens towards the end right after enact/enacted.json when I re run the pumphistory to have NS update with realtime temp basal. Any ideas? Nothing else running in cron.
Jul  4 20:58:35 localhost Timed out or other comms error - Received an error response Timeout - retrying: 1 of 3
Jul  4 20:58:35 localhost Invalid Packet Received - '' - retrying: 2 of 3
Jul  4 20:58:38 localhost Invalid Packet Received - 'Error decoding FourBySix packet' - retrying: 3 of 3
Jul  4 20:58:40 localhost openaps-loop: monitor/pumphistory.json  raised  need more than 0 values to unpack
Paul Dickens
@thebookins
Jul 05 2016 04:26
@garetis thanks for that. For some reason I can read insulin sensitivities but not status. As far as I can see status isn't used in the loop (only to upload to ns) so won't matter if it's wrong. Must be a difference in firmware. Mine are in a separate directory and I copy them to the appropriate location when the loop runs.
Chris Oattes
@cjo20
Jul 05 2016 09:16
@scottleibrand Have you ever thought about using the CalFactor events to influecne determine basal? When I woke up my CGM was ~25% off, so I recalibrated and now oref0 wants me to 0-temp because of the rate of CGM drop
mm22dl
@mm22dl
Jul 05 2016 09:28
Hey there! Hope everyone is doing good. :-) I have a little question for all of you: does anyone need a MiniMed 522? Recently managed to buy one without paying attention to the reservoir size. I thus have the 1.8 mL model. The firmware is 2.4A, so everything works fine with OpenAPS. :-D If anyone is interested, please contact me! I would also be willing to exchange it, if you happen to have one with the 3.0 mL reservoir.
Paul Dickens
@thebookins
Jul 05 2016 09:51
@mm22dl interested in buying your 522 - I'll private message you shortly
Matt Walker
@walker0
Jul 05 2016 10:11
@mm22dl I'm also interested if @thebookins doesn't want it
John Sjolund
@sjolundjohn
Jul 05 2016 12:04
This message was deleted

I have a Android wear watch, but not happy with the notifications I am getting about OpenAps. I can't see any status of the loop OR basal profiles.

I am considering the Pebble. The idea is be able to glance and a) confirm the loop is running and b) see basal profiles.

Any thoughts on this?

Paul Martin
@Spazholio
Jul 05 2016 12:45
If that's what you're looking for, sounds like Pebble will fit the bill nicely.
John Sjolund
@sjolundjohn
Jul 05 2016 14:12
Thanks @Spazholio I am checking with some people more experienced with Android development to see what I can figure out with their help before buying a Pebble. I already have the Android Wear watch afterall
Paul Martin
@Spazholio
Jul 05 2016 15:36
Can anyone tell me why my linux machine never shows a /dev/ttyUSB0 whenever I plug my Edison into it? What do I need to do differently?
stephanie chen
@stephaniechen82_twitter
Jul 05 2016 15:36
We are very close to reaching an absolutely perfect night. The limiting factor is not being able to stay at target, but rather 20-40points above. (Target set for 135-140, but getting 160-170 with wide fluctuation). A change in basal by 0.025u/hr can mean the difference between going high or going too low and needing intervention. Our DIA is set to 3 hrs. Meal assist, and auto-sense are added. Are there any 3/4 year olds who are achieving a flat line in target (at least overnight)? Again, we are almost there, and what we are getting is soooo much better than standard pumping. Just want to see what is possible for our age group.
Dana Lewis
@danamlewis
Jul 05 2016 15:47
@stephaniechen82_twitter I can’t answer to little kids specifically, but how often are running low with that target? For someone older, we might suggest considering lowering the target overnight a bit, if you’re constantly running above that target, but if you’re seeing lows with that target because of the insulin variability, I wouldn’t do that (but that’s because I’d prefer avoiding lows, you might think about which side you’d prefer for both days and overnights)
and remind me, are ya’ll diluting insulin?
David Cintron
@loudestnoise
Jul 05 2016 16:00

doesn't look like eventName is getting set for the battery events, so might need to do a little work on the plugin to get it working good with maker

@jasoncalabrese I think this is what I’ve noticed. I’m using Maker and have it set to alert on ns-event, which is basically everything as I understand and I have it sending it to Pushover and it all works, but nothing for my battery

I have PUMP_WARN_BATT_V=1.39 in there. I’m actually still just using alkaline, but I wanted to make sure I got that working before considering switching over to lithium

Scott Leibrand
@scottleibrand
Jul 05 2016 16:00
@cjo20 I find that behavior (temping to compensate for the calibration drop/jump) to be more of a feature than a bug. You might like a change I just committed to AMA branch to use 30m lookback for avgdelta instead of 15m, which would make it compensate more gradually.
Chris Oattes
@cjo20
Jul 05 2016 16:16
I'll have a look. I'm not entirely convinced that if my BG has been flat for an hour in-range but with a badly calibrated CGM that I should then set my temp to 0 just because I recalibrated
i managed to break my Edison by trying to pull packages from unstable in an attempt to get BT working, so I'll probably be spending this evening getting everything set up correctly again
Paul Martin
@Spazholio
Jul 05 2016 16:27
I keep having an entry called wlalease in my /var/lib/dhcp/dhclient.leases file and it's screwing things up royally. It should be safe to delete that dhclient.leases file if needed, right?
stephanie chen
@stephaniechen82_twitter
Jul 05 2016 16:29
@danamlewis thanks Dana! We are not diluting the insulin. I am hesitant to lower the target overnight as well. With the amount of variablilty we expereinced before APS, i am very happy with what we are getting now, even if it is a little higher than expected. The good news is that our StDev is much improved. Went from 50-60 now down to 20-30 :) our Endo said anything below 75 is hard to achieve for a 3 year old.
Dana Lewis
@danamlewis
Jul 05 2016 16:29
wow that’s awesome to hear!
Paul Martin
@Spazholio
Jul 05 2016 16:35
This message was deleted
David Cintron
@loudestnoise
Jul 05 2016 16:37
@Spazholio do you mean Urchin? I don’t think Mark also did the actual Nightscout watchface
Chris Oattes
@cjo20
Jul 05 2016 16:37
Anyone soldered the TI stick wires to their intel breakout board for edison?
Paul Martin
@Spazholio
Jul 05 2016 16:38
Yeah. I meant both actually, but wrote the wrong one. =)
David Cintron
@loudestnoise
Jul 05 2016 16:38
@Spazholio And after thinking about it more, I take back what I said about 5-7 days of battery life with Nightscout watchface
Paul Martin
@Spazholio
Jul 05 2016 16:38
@cjo20 Yep.
David Cintron
@loudestnoise
Jul 05 2016 16:38
My wife has since started using her Original Pebble and she only gets a couple of days
Chris Oattes
@cjo20
Jul 05 2016 16:38
@Spazholio got any pictures of how it looks now?
David Cintron
@loudestnoise
Jul 05 2016 16:38
And it is because of how frequent it’s getting updates methinks
Paul Martin
@Spazholio
Jul 05 2016 16:38
@loudestnoise I have a Time now, which is advertising 7 day battery life, and I get 2 if I'm lucky.
@cjo20 No pics, but...godawful? It's not pretty. Do you just need a wiring schematic?
Lynne Butts
@flutelynne_twitter
Jul 05 2016 16:39
Pebble time steel, I charge every two days, but that includes text, phone, and Dexcom notifications. If I removed some of the extra notifications, it would last longer.
David Cintron
@loudestnoise
Jul 05 2016 16:39
Yeah, I think it’s gotta be because of the constant polling. I mean it’s doing it once every 5 mins, one would think
Paul Martin
@Spazholio
Jul 05 2016 16:39
@flutelynne_twitter You get Dexcom notifications too?
Lynne Butts
@flutelynne_twitter
Jul 05 2016 16:40
Yes. Just in case the loop fails, I can see my BGs.
I rely on the vibrations of the CGM sky wf when I am working or exercising.
Paul Martin
@Spazholio
Jul 05 2016 16:41
@loudestnoise It CAN'T be that expensive to redraw the screen every 5 mins though, can it? Things I'm finding on the forums are talking about watchfaces with a second hand or blinking colon. THOSE get the 2 day battery life issues. This thing changes less than that, so I'm perplexed. And slightly frustrated. I mean, if they had gone with a microUSB connector, it wouldn't be that big of an issue - I have tons of those - but I have to carry a specialty adapter just in case now...
David Cintron
@loudestnoise
Jul 05 2016 16:41
Y’all should be happy with a couple of days. I get 18 hours on my  Watch
Lynne Butts
@flutelynne_twitter
Jul 05 2016 16:41
This is pulling from the Share acct. info.
David Cintron
@loudestnoise
Jul 05 2016 16:41
:laughing:
Lynne Butts
@flutelynne_twitter
Jul 05 2016 16:43
Need a wall of outlets!
Chris Oattes
@cjo20
Jul 05 2016 16:45
Spazholio: ive got the schematic. im interested in seeing how people have actually soldered it
Paul Martin
@Spazholio
Jul 05 2016 16:45
Oh, I used the ribbon cable and cut it up. It's in use right now, and frankly I'm scared to disassemble it given how flimsy those wires are...
Chris Oattes
@cjo20
Jul 05 2016 16:46
thats what im worried about
Scott Leibrand
@scottleibrand
Jul 05 2016 16:47
@cjo20 if your BG has been flat at 100 with zero IOB, and then drops to 90, then (with ISF=40 and basal=1U) you need a temp to zero for 15m to bring you back up to 100. if that drop is due to a calibration, then openaps will temp to zero for 15m, and then cancel the temp once eventualBG is back to target.
Chris Oattes
@cjo20
Jul 05 2016 17:05
@Spazholio I don't really want to ruin my breakout board by screwing up the soldering either
Paul Martin
@Spazholio
Jul 05 2016 17:05
Welcome to the party, man. Took me a while before I could get up the nerve to do it. =)
Chris Oattes
@cjo20
Jul 05 2016 17:06
maybe I'll put some kapton tape on for strain relief
Paul Martin
@Spazholio
Jul 05 2016 17:06
And I still had to unsolder and resolder everything once.
Chris Oattes
@cjo20
Jul 05 2016 17:07
why?
Paul Martin
@Spazholio
Jul 05 2016 17:07
I messed up. Good thing ribbon cables have two ends, eh? =)
Chris Oattes
@cjo20
Jul 05 2016 17:12
yeah. My cable is arriving tomorrow
David Cintron
@loudestnoise
Jul 05 2016 17:13
What’s this purple forecasting line I’ve seen on some OpenAPSers Nightscout sites? I only have the default AR2 one but I want MOOOOREEE :D
Paul Martin
@Spazholio
Jul 05 2016 17:16
@cjo20 On that image of the ribbon cable at the bottom, it is VERY important to note that the pinholes are facing DOWN, not UP. That was my mistake.
Chris Oattes
@cjo20
Jul 05 2016 17:19
@Spazholio I'll be connecting it to the device before working out which wire goes where :)
Paul Martin
@Spazholio
Jul 05 2016 17:20
How are you going to get the wires to adhere to the board without soldering it?
Chris Oattes
@cjo20
Jul 05 2016 17:21
I mean plug the cable in to the cc1111, then looking at the pin numbers to work out what should go where
Paul Martin
@Spazholio
Jul 05 2016 17:22
Ah, ok.
Damn. I was hoping you had a way to secure the wires to the Edison temporarily without soldering. =)
Chris Oattes
@cjo20
Jul 05 2016 17:29
might be able to manage something. If you have a pin that fits tightly enough in the hole you could put the wire through, then wedge in the pin
I might try that actually
Jarred Yaw
@jyaw
Jul 05 2016 18:14
@loudestnoise those are the ama predictions (purple lines)
David Cintron
@loudestnoise
Jul 05 2016 18:15
Ah ok, I’m using AMA. Wonder what I need to turn on...
Eric
@ecc1
Jul 05 2016 18:17
Is there any way to clear the history on a pump? Something in there is causing my Carelink uploads to fail, and I'd like to get past it. How long will it retain that info without a battery?
thats what I used
seems like in the latest dev docs, those pics are still absent. Couldn't find them with a quick search
David Cintron
@loudestnoise
Jul 05 2016 18:24
Hmm, looks like SHOW_FORECAST="openaps ar2” is required
I didn’t have SHOW_FORECAST in my my.env file
Scott Leibrand
@scottleibrand
Jul 05 2016 19:03
@ecc1 the best way I know of is to execute hundreds of identical temp basals to age off the old records. you could also try leaving the battery out for awhile, if you don't think the empty history is contributing.
@Spazholio @cjo20 I secured the ribbon cable wires to the edison using little pieces of duct tape before gluing them in
David Cintron
@loudestnoise
Jul 05 2016 19:05
what can’t duct tape do?
Scott Leibrand
@scottleibrand
Jul 05 2016 19:08
John Sjolund
@sjolundjohn
Jul 05 2016 19:09
Hi @scottleibrand, as I mentioned when we were at ADA, when I use Dexcom on my rig, for some reason it won't upload CGM data to Nightscout. Are you able to help with this? Is somebody else best to hel?
I just can't get to the bottom of what the issue is and why Nightscout upload isn't working 100%. It updates the OpenAPS field, on Nightscout, just fine
Scott Leibrand
@scottleibrand
Jul 05 2016 19:11
@sjolundjohn I'm not uploading BG data from OpenAPS to NS. not sure who is doing it that way, vs. uploading from Share or xDrip.
Paul Martin
@Spazholio
Jul 05 2016 19:12
sigh
I am.
But I'm kinda sorta terrible at tracking down WHY things like that don't work when they don't. =)
John Sjolund
@sjolundjohn
Jul 05 2016 19:12
Yes, I have xDrip setup, but I thought / hoped I would be able to avoid this. Was trying to reduce the amount of devices to carry
I am finding that all the calibrations, beeping, multiple devices means I put quite a bit of energy into keeping it running.
Scott Leibrand
@scottleibrand
Jul 05 2016 19:15
@Spazholio if you can share your upload config, @sjolundjohn might be able to compare against his and see what's different
Paul Martin
@Spazholio
Jul 05 2016 19:19
@sjolundjohn Can I get that to you in a little bit? Getting into my rig while at work is a bit problematic, but I can do it easily at home.
John Sjolund
@sjolundjohn
Jul 05 2016 19:20
Sure thing, thanks for the help - I am hitting the sack soon as I have a 7 am flight in the morning, so may take a day or two until we connect. I will check the posts. Thanks!
Paul Martin
@Spazholio
Jul 05 2016 19:21
If you'd like, I can send you a direct message, so you don't have to wade through all the posts?
John Sjolund
@sjolundjohn
Jul 05 2016 19:21
General question, has anybody thought of, or already contructed a 3D printed case to carry the rig in? In my quest to make it stable and child proof (I have 2.5y old twins) I am trying to make the rig robust!
Paul Martin
@Spazholio
Jul 05 2016 19:22
@eluhrs has a 3D printed case for the Edison+TI combo.
https://www.thingiverse.com/thing:1525618 <-- that's what I'm using right now.
John Sjolund
@sjolundjohn
Jul 05 2016 19:24
@Spazholio very nice - I like it!
John Sjolund
@sjolundjohn
Jul 05 2016 19:43
With the Edison + T1 am I write in assuming that OpenAps pulls the CGM data directly from Nightscout after it has been uploaded with a xDrip?
David Cintron
@loudestnoise
Jul 05 2016 19:54
@sjolundjohn I think some use openxshareable to pull readings directly off transmitter and those are being integrated into the loop
I really want to build an Edison + TI stick rig, but I’ve got a G5 transmitter, so I’m not sure how I can pull it off
I could do pull from Nightscout for the readings, but I’d prefer to have something that works offline
Scott Leibrand
@scottleibrand
Jul 05 2016 19:56
yes, both approaches are common. the only offline option with G5 right now is to plug in with USB OTG, which requires a Pi or Sparkfun rig. Or you can use a RileyLink with the iOS Loop app
Paul Martin
@Spazholio
Jul 05 2016 19:57
I can't get openxshareble to work as reliably as I like, so yeah - I pull BG info from NS, then some magic happens, then I upload it back into NS.
David Cintron
@loudestnoise
Jul 05 2016 20:04
@scottleibrand Hmm, I guess even if I use the receiver and connect it via USB OTG it would still be massively smaller than my RPi rig
I also happen to have a nice and short little micro to micro USB OTG cable
I can’t use the Intel breakout board though?
hmmm
Scott Leibrand
@scottleibrand
Jul 05 2016 20:41
Pretty sure the Intel board can't do usb OTG without a 5V power supply.
sparkfun will do it at 4V
David Cintron
@loudestnoise
Jul 05 2016 20:45
:+1:
David Cintron
@loudestnoise
Jul 05 2016 21:25
Is it the Edison + the SparkFun Block for Intel® Edison - Base ? It’s confusing that they have so many.
and then I could do micro USB OTG to Dexcom receiver and provide power to the Edison via some other connector?
Scott Leibrand
@scottleibrand
Jul 05 2016 21:31
https://www.sparkfun.com/products/13045 will work fine if you want to power it from a USB battery. the battery block (https://www.sparkfun.com/products/13037) is only big enough to provide an hour or two of power
Chris Oattes
@cjo20
Jul 05 2016 21:34
400mAH?
David Cintron
@loudestnoise
Jul 05 2016 21:35
Well stinker. I’d prefer a LiPo battery for the size like the kind I use with the RileyLink I have
Chris Oattes
@cjo20
Jul 05 2016 21:36
You can replace it with a larger battery
Scott Leibrand
@scottleibrand
Jul 05 2016 21:38
there is a different block without the battery wired in called the power block
identical to the battery block, just designed for you to wire in your own battery
requires soldering though
David Cintron
@loudestnoise
Jul 05 2016 21:38
psssh ain’t afraid of no soldering. :smiley:
jim-andrews
@jim-andrews
Jul 05 2016 21:39
Hey Scott @scottleibrand I've been looping for about 24 hours now without any issues, but I'm mining the suggested.json for the data to send to the 722. Unfortunately the format of that json keeps changing. So sometimes my data packet to send is good and sometimes I have nothing to send because none of the key pump elements are present. It all changes with what data is coming in from the CGM (as expected). Is there a more stable place to get this data, or is this working as designed and if there is no stable data in suggested, I should just pass on sending stuff to the pump?
Scott Leibrand
@scottleibrand
Jul 05 2016 21:40
that is to be expected. you can either skip enact if there's no duration field, or you can try it anyway and it will fail gracefully
jim-andrews
@jim-andrews
Jul 05 2016 21:40
excellent. thanks!
Lynne Butts
@flutelynne_twitter
Jul 05 2016 22:24
@loudestnoise Did you see those three dots next to "24hr" on your NS website? If you click on that, you have a choice of showing the purple (OpenAPS Forecast) lines.
David Cintron
@loudestnoise
Jul 05 2016 22:25
Yeah, I checked that. It only shows the AR2
Leo Clark
@LeodClark_twitter
Jul 05 2016 22:30
Hello, my four year old daughter was recently diagnosed and we are still in the honeymoon period so presently use fast acting doses very rarely and mostly managing via diet and exercise with a small long acting dose on board. We received and started using our CGM, a Dexcom G5 a couple of weeks ago and are learning how to use that data effectively. I am wondering what the groups thoughts and opinions are on my moving forward with OpenAPS now and what might be best options in our situation. Thank you,
Lynne Butts
@flutelynne_twitter
Jul 05 2016 22:33
Hmm. I just discovered the two choices the other day...
Dana Lewis
@danamlewis
Jul 05 2016 22:51
@loudestnoise what version of NS Doyle have? Dev?
David Cintron
@loudestnoise
Jul 05 2016 22:53
Yeah, dev
.9 beta 3 I believe
Chris Oattes
@cjo20
Jul 05 2016 23:03
why does AMA take carbhistory from NS and not just use pumphistory?
Scott Leibrand
@scottleibrand
Jul 05 2016 23:03
because some people hate the bolus wizard
so they'd rather enter carbs via an app
it can take either
Chris Oattes
@cjo20
Jul 05 2016 23:04
so it's only necessary if you don't like using pump features? :P
Dana Lewis
@danamlewis
Jul 05 2016 23:04
“some people” ;)
Scott Leibrand
@scottleibrand
Jul 05 2016 23:04
right
Chris Oattes
@cjo20
Jul 05 2016 23:12
OpenAPS was trying to set rates of 0.825U/hr this morning, which was nice to see :)
Paul Martin
@Spazholio
Jul 05 2016 23:21
I haven’t been using the Bolus Wizard OR an app. I just enter how many carbs I’ve eaten into the pump directly. Am I doing it wrong?
Scott Leibrand
@scottleibrand
Jul 05 2016 23:21
you're using the bolus wizard on the pump
or is there another way to enter carbs without using bolus wizard?
Chris Oattes
@cjo20
Jul 05 2016 23:24
you can log carb events
I'm not sure they're picked up by pumphistory for cob calculations though
Paul Martin
@Spazholio
Jul 05 2016 23:33
Oh, I thought you meant the Bolus Wizard in NS.