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

23rd
May 2016
Matt Pressnall
@logichammer
May 23 2016 04:20

@danamlewis / @scottleibrand -- Just got back to the land of data and cell coverage -- camping with the GS up on Whidbey. Seems both of my loops, my AMA version and my own hand rolled one, had some sort of dependency on internet coverage because once I lost it, it wouldn't set temps; I was surprised by this but it wasn't too bad / had to do old school diabetes management. Looks like it hits up NS first for BG and then the local CGM but I don't think it was pulling local CGM info. Anyway, easy enough to debug and see what is going on. I'm back and and will see what kind of headway I can make tomorrow night on tweaking my PR and then we are out of town / on vacation / drinking heavily sans kids in New Orleans starting Wednesday.

Only reason I ditched MA from my documentation is that it seemed that AMA was replacing it / if you were going to the effort, you'd want to be on AMA. I can figure out how to rejigger stuff, though. More to come and thanks for the feedback! Also, enjoy the Europes!

Dana Lewis
@danamlewis
May 23 2016 04:46
:+1: thanks @logichammer !
amoskane
@amoskane
May 23 2016 05:10
@inform880 Did you ever get this one figured out? I’m stuck here right now “"No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?""
This message was deleted
Andrew Baugh
@baughaw
May 23 2016 05:20
Wanted to see if you think some additional checks should be put in place for auto sensitivity. Here is what happened earlier today. My Insulin sensitivity was set to 80 for the last few weeks, I have noticed that the auto sensitivity has been resetting it to 70ish. So I decided to set it in the pump to 70. Well the next time the loop ran it increased the auto sensitivity set it to 60. Good thing I caught it... Thoughts on how to keep this from happening?
Jim is CrushingT1D
@CrushingT1D
May 23 2016 06:11
how do you search in here with the new osx gitter app?
mm22dl
@mm22dl
May 23 2016 09:04
@danamlewis : Thanks! I'll try sticking my finger in it. I'll also look to get an empty cartridge and test it out with water!
@jaylagorio : I got it from a woman who was looking to sell one of the old pumps of his son... A 522! :-) Got the info through a looper who saw her post on a diabetics FB page.
John Males
@johnmales
May 23 2016 09:08
@CrushingT1D top left corner search tool?
Scott Leibrand
@scottleibrand
May 23 2016 10:14
@baughaw that doesn't seem like a very dangerous one as corner cases go. We do have limits on how much autosens can adjust: IIRC it's 2x in either direction. Short of that, the regular temp basal adjustments should be able to keep things in range even if sensitivity is off a bit.
jaylagorio
@jaylagorio
May 23 2016 11:53
@mm22dl That's pretty awesome, nice work.
Stephan
@MosiGitHub
May 23 2016 12:03
@efbest I have had the same problem with carb_ratios. That should have been fixed, because @scottleibrand already merged my PR. But I am not sure in which branch. If not I could send you some lines you could enter manually, but first we should take a look where the updated carbs.js is now....
@efbest it is currently only in the advanced-meal-assist branch updated
Scott Leibrand
@scottleibrand
May 23 2016 12:04
@efbest are you using something other than "grams"? I think @MosiGitHub is using "exchanges"
Stephan
@MosiGitHub
May 23 2016 12:06
@scottleibrand maybe I was expecting it to early, because of his error message, he poster: Carb ratio should have units field set to 'grams'.
Scott Leibrand
@scottleibrand
May 23 2016 12:09
looks like the file he pasted has "units": "grams", so I think it's a different issue
Stephan
@MosiGitHub
May 23 2016 12:11
@scottleibrand right you are ... I did't take a too close look :worried: @efbest disregard the update :-)
Frank Best
@efbest
May 23 2016 12:25
@scottleibrand @MosiGitHub I'm using grams; but the format of my carb_ratios.json seems to be wrong!
Scott Leibrand
@scottleibrand
May 23 2016 12:27
or perhaps it could be a problem with one of the other inputs that is missing and causing the wrong thing to come in as carb_ratios
Andrew Baugh
@baughaw
May 23 2016 12:29
@scottleibrand thanks.
Scott Leibrand
@scottleibrand
May 23 2016 12:29
you'll need to do some debugging to figure out exactly what is going on. usually I start by running the command manually so I can be sure which files are being provided as arguments, and check that they have valid content
Paul Martin
@Spazholio
May 23 2016 13:11
@scottleibrand If you have a few seconds, I could use some Github guidance. I made some small changes to the docs I'm working on, attempted to do a PR, said it can't be automatically merged. So I went to the official repo to issue a pull request back to my repo to sync things up (that's what I'm supposed to do, right?) and there's no "New pull request" button, but rather a link to openaps/docs#176. In this instance, do I just issue my PR anyway, even though it can't be merged automatically? Should I re-fork? Delete my fork every time a PR is merged just so I can ensure a fresh copy of the repo?
Scott Leibrand
@scottleibrand
May 23 2016 13:17
@Spazholio sounds like it's time to learn to use git from the command line
if you go ahead and open the PR, it will give you instructions for fixing the merge conflicts from the command line
Dan Piessens
@dpiessens
May 23 2016 13:34
@amoskane Are you using the TI stick? I get that if I don't run mmtune before making pump calls
Dana Lewis
@danamlewis
May 23 2016 13:54
@Spazholio the other thing is if it doesn't have a button and refers you to another # instead, usually means you are targeting the wrong branches for your Pr, so re-look at those as well. Usually swapping them clears it up for me
Paul Martin
@Spazholio
May 23 2016 14:07

@danamlewis If I'm in my own repo, I get the button on dev, the PR just can't be merged automatically. The # thing happens when I go to openaps/docs and attempt to do a pull request so that I can sync my repo back up.

@scottleibrand My usage of the git command line is scarily similar to that XKCD comic you linked a few days ago. =)

In git parlance, would openaps/docs be "origin" and Spazholio/docs be "remote"?
Scott Leibrand
@scottleibrand
May 23 2016 14:15
I wouldn't worry too much about whether github gives you the green button. you can go to the new pull request section and then set whatever branch you want to merge from and to. the green button gets replaced with the PR # if there's already a PR open from that branch to master, but if you're trying to merge somewhere other than master, that's irrelevant.
Paul Martin
@Spazholio
May 23 2016 14:21
Ok, here's another piece of the puzzle. I went to do the PR anyway like you recommend, and I noticed that it's not showing my recent edits to the files, but rather it's showing that they don't exist, and that I'm creating them. But...that's what I did with my other PR, so now I'm thoroughly confused. I can provide screenshots if that helps.
I feel like I'm doing something slightly wrong, but on a fairly basic level, so feel free to say so if I am. =)
Dana Lewis
@danamlewis
May 23 2016 14:22
You probably need to pr back from dev to your branch, if you haven't already
Paul Martin
@Spazholio
May 23 2016 14:23
I can't. That's when I get the "View #176" button.
Dana Lewis
@danamlewis
May 23 2016 14:23
Is 176 open for you from a previous pull you did, but didn't finish? Sounds like
Paul Martin
@Spazholio
May 23 2016 14:23
That's not mine, it appears to be logichammer's.
Dana Lewis
@danamlewis
May 23 2016 14:24
Screenshot of when you're trying to create the pr?
Paul Martin
@Spazholio
May 23 2016 14:24
Certainly.
...trying to take a screenshot just killed KDE. Wow. Ok, give me a moment.
Dana Lewis
@danamlewis
May 23 2016 14:27
No rush
Paul Martin
@Spazholio
May 23 2016 14:30
Ok, clarification - creating which PR? To submit my PR to you, or to pull a PR from you to sync my repo?
Dana Lewis
@danamlewis
May 23 2016 14:33
Where me = openaps dev docs, and try sync repo first
If you hadn't already done that before you started making changes today
Paul Martin
@Spazholio
May 23 2016 14:34
I hadn't pulled prior to making more changes. That's something I should probably get in the habit of doing?
blob
Dana Lewis
@danamlewis
May 23 2016 14:35
Yup. Otherwise that's probably the source of your merge conflicts
But if you didn't, that's when to use
Paul Martin
@Spazholio
May 23 2016 14:35
That's me, on the openaps/doc page, in the dev repo, going to pull back to me. No button.
Dana Lewis
@danamlewis
May 23 2016 14:36
Command line for fixing the merge conflicts, because you can cherry pick your new changes in on top of the changes already made to the branch
Scott Leibrand
@scottleibrand
May 23 2016 14:51
@Spazholio don't look for a green shortcut button. open a new pull request manually.
Paul Martin
@Spazholio
May 23 2016 14:53
@scottleibrand Is this a command-line thing, or another location on Github?
you might need the "compare across forks" link
Paul Martin
@Spazholio
May 23 2016 14:54
Oh hey, look at that.
Scott Leibrand
@scottleibrand
May 23 2016 14:55
but you still should learn how to do it on the command line. it's way more deterministic.
plus, it lets you use vi to edit the docs. :-)
Paul Martin
@Spazholio
May 23 2016 15:12
Drat. I kinda liked the quick preview mode that the Github editor provided. =)
Scott Leibrand
@scottleibrand
May 23 2016 15:13
heh. You can still preview in github and edit there if you like, but for a lot of things the command line is more efficient.
Paul Martin
@Spazholio
May 23 2016 15:14
Alright, I'm going to give this a shot. Brace yourself. =)
Paul Martin
@Spazholio
May 23 2016 15:50
So I clone my fork to my dev machine. Made the changes. Committed the changes. Then pushed the changes back up. I should see them in Github now....right?
Paul Martin
@Spazholio
May 23 2016 15:57
(I ask because I'm not seeing any difference on Github yet)
Paul Martin
@Spazholio
May 23 2016 16:21
@danamlewis Quick reminder - how do I enable "eating soon" mode in NS again?
Dana Lewis
@danamlewis
May 23 2016 16:23
it’s in care portal’s drop down, pick “temp target” and eating soon is one of the options
Paul Martin
@Spazholio
May 23 2016 16:24
Ahhh, ok. And leave it at 80/80? I mean, that's where I'd like to hang out, so that makes sense. And the duration is the time period in which I expect to be eating, so leave that at 60 (if accurate)?
Jason Calabrese
@jasoncalabrese
May 23 2016 16:37
yes
Paul Martin
@Spazholio
May 23 2016 16:39
Cool, thanks.
Martin Haeberli
@mhaeberli
May 23 2016 16:48
@eszcloud Great to meet you at #MakerFaire yesterday - thanks to all for being their and showing off OpenAPS! (From Martin, Eden’s dad)
Tom Boudreau
@TomBoudr_twitter
May 23 2016 16:53
Hi everyone. New guy here! I am in t process pf collecting all the various raspberry HW necessary to try this out with my old Medtronic pump.
One cool thing i learned already is that
My newer medtronic 530G pump obviously won't work with OpenAPS but i sorted out I can use a single Enlite sensor to send CGM data to both my current pump and an old pump simultaneously ( i was very happy to learn this as that one originally used the much worse sensors ) and what i will use for OpenAPS.
amoskane
@amoskane
May 23 2016 16:55
@dpiessens that was it! thanks! It was my first time with TI on my pi rig- even though I got errors trying to test my port and radio_type on my new pump settings, the mmtune ran just fine. Whew!
Scott Leibrand
@scottleibrand
May 23 2016 16:57
@Spazholio yes, if you're looking on the branch in github that you made the changes to on your dev machine.
Paul Martin
@Spazholio
May 23 2016 16:58
@scottleibrand Yeah, I figured. It's not there. I'm legitimately stumped. I forked the openaps/docs repo to mine. Cloned mine locally. Checked out the dev branch. Made one edit. Ran git commit -a and gave a reason. Committed just fine. Ran a git push and it prompted me for my Github credentials, and the push went through fine. Still nothing showing in Github. Have I missed a step?
amoskane
@amoskane
May 23 2016 16:58
@TomBoudr_twitter Welcome! Yes— I was using the new enlite sensors with my 522 at first. So if you’re not on the 530g, there’s still some limitations— I hear you can’t upload to the carelink portal with a 522, and you can’t use the minimed connect thingie (if you have that), but itherwise it’s all good!
Paul Martin
@Spazholio
May 23 2016 16:59
Wait, hang on. After typing all that out, it's FINALLY showed up. Took over an hour. Aaaaaand, it somehow posted using my work account?!
I did all my editing on my Pi, which knows nothing about my work.
Grrrrrrr. Stupid repo with my stupid dotfiles and my stupid .gitconfig file got stupidly synced to my stupid Pi.
Scott Leibrand
@scottleibrand
May 23 2016 17:11
Stupid. :-p
Jason Calabrese
@jasoncalabrese
May 23 2016 17:20
there are some github issues that were slowing updates to the site
Paul Martin
@Spazholio
May 23 2016 17:21
Quite. Still taking forever to update on the site.
Jason Calabrese
@jasoncalabrese
May 23 2016 17:21
Paul Martin
@Spazholio
May 23 2016 17:21
Ah...I see that Jason has addressed that. =)
Scott Leibrand
@scottleibrand
May 23 2016 17:23
Quite the Midas touch you have there @Spazholio :-p
Rob Kresha
@rkresha
May 23 2016 17:24
@jaylagorio The person only asked for $50, friend gave him extra for such a cheap price. Sounds like the pump is in great condition and working fine
Paul Martin
@Spazholio
May 23 2016 17:27
Oh, that's the Martin credo: "Where one-in-a-million chances crop up nine times out of ten"
Dana Lewis
@danamlewis
May 23 2016 17:35
welcome @TomBoudr_twitter!
that sounds like a trick that might be worth making note of in the docs, when you get comfortable would love a PR there.
ryanchen26
@ryanchen26
May 23 2016 17:37
Just got the A33 error on my medtronic 722 (trying to prime for the first time) - it was a used pump purchased on a forum. Game over, right? There goes my OpenAPS attempt.
Dana Lewis
@danamlewis
May 23 2016 17:37
some times people have been able to resuscitate from errors. have you tried taking the battery out, waiting a minute, then putting a new one in and trying again, @ryanchen26 ?
ryanchen26
@ryanchen26
May 23 2016 17:38
wow, that's a thing? Okay I'll try it.
Dana Lewis
@danamlewis
May 23 2016 17:38
yup. can’t promise a miracle, but worth a try
Rob Kresha
@rkresha
May 23 2016 17:39
I feel like I should grasp this concept but can someone tell me how 'max basal' on the pump and max_iob play off each other? Just need a sentence. In my instance max basal is set to 4.0 and I have max_iob set to 2
basal rate profile for the current period of day is 1.8u/Hr
Dana Lewis
@danamlewis
May 23 2016 17:42
max basal is the max rate of basal rate your pump can issue
Rob Kresha
@rkresha
May 23 2016 17:43
so max basal will limit max_iob out if you had max_iob set high
Dana Lewis
@danamlewis
May 23 2016 17:43
max iob is the max amount the loop will temp up to, above and beyond your usual basal rates. i.e. if maxiob is 2, you won’t get temped for hours and hours at 3.0u/hr for example and end up with iob from the loop that’s >2.
no, max basal doesn’t limit directly, it’s about the cumulative impact of how much additional insulin the loop will give you relative to your normal basals at that time
Sulka Haro
@sulkaharo
May 23 2016 17:59
Hey related to the topic you're discussing: I realized the current oref0 has a safety mechanism in place that can cause it to not high-temp as much as needed. Basically, what I'm seeing occasionally, is we have a very low basal rate during a couple hours of the night. oref0 has a feature where the max basal it can ever issue is also limited to max 4x the current basal, so the low nighttime basal restricts the correction to so low amount that the loop can't really high-temp at all if there's a high.
Is there anyone here with a basal profile with a very low basal rate, where you think 4x the basal might not be sufficient for correction?
Or conversely, someone who's worried if over 4x the basal rate would be dangerous
Ben West
@bewest
May 23 2016 18:00
you aren't enough?
Sulka Haro
@sulkaharo
May 23 2016 18:00
Maybe? :D
Rob Kresha
@rkresha
May 23 2016 18:02
I think what is throwing me off is the 'drip' of basal, I'm still thinking of it as a bolus
Sulka Haro
@sulkaharo
May 23 2016 18:02
Although safety is paramount here - I can see for example use cases such as the CGM breaking during the night and the loop high-temping too much, so intent with the 4x limit is solid
Yeah @rkresha you can totally think of it as the pump micro-bolusing you once a minute ;)
Cause that's what it does
Rob Kresha
@rkresha
May 23 2016 18:03
does it make sense that if you are increasing max basal, that you also are increasing max_iob or no
Dana Lewis
@danamlewis
May 23 2016 18:03
Max basal is setting cap
Sulka Haro
@sulkaharo
May 23 2016 18:04
Not necessarily
Dana Lewis
@danamlewis
May 23 2016 18:04
But a separate setting cap from max iob, which is the impact of the extra loop activity. They are not directly correlated
Sulka Haro
@sulkaharo
May 23 2016 18:04
high max basal allows the loop to correct more aggressively
high max iob is more about the level of iob that can be handled safely. The max_iob restrains the max_basal
Dana Lewis
@danamlewis
May 23 2016 18:05
Btw @sulkaharo to your earlier q, @ddaniels1 might be good to ask about his observations since they are also dealing with small amounts
Sulka Haro
@sulkaharo
May 23 2016 18:05
Btw @danamlewis what happens if the max_iob would be reached during a 30 minute basal period yet to be enacted?
Does oref0 currently consider that?
Dana Lewis
@danamlewis
May 23 2016 18:07
Hrm. I would have to go look, but my hunch is it would set the temp it think it needs (capped by max, etc) and then as it approaches maxiob, then factor that in. But need to verify what order it considers maxiob in the calc
Paul Martin
@Spazholio
May 23 2016 18:08
@scottleibrand I think I have the command-line format down for doing a pull request, and I think I may have issued it, but a) the current funkiness with Github is making me unsure, and b) can you give me the proper format so I can see if I got it right?
Dana Lewis
@danamlewis
May 23 2016 18:09
Kudos @Spazholio for testing it out :)
Paul Martin
@Spazholio
May 23 2016 18:12
Now to see if removing that extra "openaps" fixed the links. =)
Dana Lewis
@danamlewis
May 23 2016 18:13
:)
Rob Kresha
@rkresha
May 23 2016 18:28
thanks for the explanation @sulkaharo and @danamlewis :)
Dana Lewis
@danamlewis
May 23 2016 18:28
:+1: good questions! Feel free to pr the docs if you don't think it's explained in enough detail
And keep asking good questions :)
joannestevens
@joannestevens
May 23 2016 18:56
This message was deleted
joannestevens
@joannestevens
May 23 2016 19:02
openaps device add ns-glucose process 'bash -c "curl -s https://technojo.azurewebsites.net/api/v1/entries/sgv.json | json -e \"this.glucose = this.sgv\""' Can anyone please tell me if this is the correct command to add nightscout as a device?
Paul Martin
@Spazholio
May 23 2016 19:08
Ok, I'm starting to wonder if it's even possible to issue a pull request on the command line...
Scott Leibrand
@scottleibrand
May 23 2016 19:12
No, you do pulls and merges directly there.
So you can check out your fork, add openaps
as a remote, and then do a git merge openaps-dev dev or similar to merge into yours
Paul Martin
@Spazholio
May 23 2016 19:14
I've forked on Github, cloned to my local, made my changes, pushed my changes, but I don't know how to issue a pull request from the command line. I can easily do it on the site, but I wanted to try via terminal.
Scott Leibrand
@scottleibrand
May 23 2016 19:15
But to PR into OpenAPS you have to use the site.
Its the other direction, making sure you're all up to date, that CLI is most useful for.
Paul Martin
@Spazholio
May 23 2016 19:15
Dammit, there's a git request-pull feature. Figured that would work.
Scott Leibrand
@scottleibrand
May 23 2016 19:16
Hmm, maybe?
Paul Martin
@Spazholio
May 23 2016 19:16
I mean, it hasn't so far. =)
Scott Leibrand
@scottleibrand
May 23 2016 19:16
time for some googling.
Paul Martin
@Spazholio
May 23 2016 19:16
I'm on page 3. Nothing good ever shows up on page 3. =)
Scott Leibrand
@scottleibrand
May 23 2016 19:16
If it's possible I don't know it yet.
Hehe
jaylagorio
@jaylagorio
May 23 2016 20:52
@rkresha That's amazing, lucky him!
Dana Lewis
@danamlewis
May 23 2016 20:54
@ryanchen26 any luck?
Andrew Baugh
@baughaw
May 23 2016 20:54
Anyone have a link to the instructions for flashing a TI stick in windows? Or just a link to the hex file?
jaylagorio
@jaylagorio
May 23 2016 21:05
@baughaw I think this is what you're looking for: https://github.com/jberian/mmcommander/blob/master/INSTALL.pdf
The part you're looking for is after the Nightscout on Azure setup
Scott Leibrand
@scottleibrand
May 23 2016 21:16
no, you don't want mmcommander
benhamou
@benhamou
May 23 2016 21:17
hello friends
Scott Leibrand
@scottleibrand
May 23 2016 21:17
you want to use subg_rfspy with mmeowlink. start at https://github.com/oskarpearson/mmeowlink/wiki
Scott Leibrand
@scottleibrand
May 23 2016 21:17
benhamou
@benhamou
May 23 2016 21:18
and re entered it the second time. but my nightscout doesnt get the pump data, but realizes that I am looping
OpenAPS ↻1m ago
but the line above with the pump information is not shown
/// cat pumphistory.json
[
{
"_type": "TempBasalDuration",
"duration (min)": 30,
"_description": "TempBasalDuration 2016-05-23T20:18:11 head[2], body[0] op[0x16]",
"timestamp": "2016-05-23T20:18:11",
"_body": "",
"_head": "1601",
"_date": "4b52145710"
},
{
"_type": "TempBasal",
"temp": "absolute",
"_description": "TempBasal 2016-05-23T20:18:11 head[2], body[1] op[0x33]",
"timestamp": "2016-05-23T20:18:11",
"_body": "00",
"_head": "336e",
"rate": 2.75,
"_date": "4b52145710"
might that be due to the fact I am using a 712
This message was deleted
Scott Leibrand
@scottleibrand
May 23 2016 21:27
so do I understand correctly that the OpenAPS pill shows all the correct details, but the temp basals are not showing up and the blue basal line is just showing your normal basal schedule?
if so, it sounds like you have the ns-status upload working correctly, but are not correctly uploading treatments
benhamou
@benhamou
May 23 2016 21:27
even not my normal basal
yeah u got me right
Scott Leibrand
@scottleibrand
May 23 2016 21:28
ah, if nothing shows at all, it might just be a matter of enabling temp basal visualization in nightscout
benhamou
@benhamou
May 23 2016 21:28
:-) at least u understand me
Scott Leibrand
@scottleibrand
May 23 2016 21:28
did you make sure your NS is up to date and add the ENABLE flag?
once you do that, you should be able to go into the NS Settings drop-down menu and change Render basal to Default
benhamou
@benhamou
May 23 2016 21:30
I changed it to icicle
please do have a look on my page i have sent u the link
azure page
Version 0.9
0.9.0-dev
ok changed to default now
I enabled all the plugins
the gather thing doesnt work with my pump
Scott Leibrand
@scottleibrand
May 23 2016 21:35
ok, if you have display enabled and it's not displaying anything, you're probably not uploading
you need to look at your treatments upload aliases and reports and start troubleshooting there
benhamou
@benhamou
May 23 2016 21:35
well yes okay
i am trying for a week, and will keep on trying, thanks
my nightscout directory is empty
Scott Leibrand
@scottleibrand
May 23 2016 21:38
when you find something specific that's not working, paste it here and people can help. it's difficult to do that when the problem is just "it's not working"
benhamou
@benhamou
May 23 2016 21:38
well agreed
Scott Leibrand
@scottleibrand
May 23 2016 21:39
and please be very specific and technical: copy and pasting what you're seeing is often helpful
especially when dealing with language barriers
I'm headed to bed, but there is usually someone online here who can help if you frame the question well
benhamou
@benhamou
May 23 2016 21:40
u mean u have no glass sphere, thanks scott
Scott Leibrand
@scottleibrand
May 23 2016 21:40
no "crystal ball": exactly ;-)
benhamou
@benhamou
May 23 2016 21:41
after the aps we will develop it
good night
Dana Lewis
@danamlewis
May 23 2016 21:41
;)
Scott Leibrand
@scottleibrand
May 23 2016 21:41
hehe I think you might be overestimating our capabilities, but we'll see. ;-)
Paul Martin
@Spazholio
May 23 2016 22:07
@danamlewis Question about potential use of meal assist/temp targets: Today I had a lunch that was low in carbs, but high in protein. When I eat lots of protein, my glucose goes up after about 1-2 hours. In the place of doing a square- or a dual-wave, would it make sense to do a temp target with a duration of 3-4 hours to cover that rise in glucose? That’s usually when I see the effects from a high protein meal wear off.
Dana Lewis
@danamlewis
May 23 2016 22:08
you could try it. but the loop should be able to handle that rise on it’s own, observing the BG rise
but if you think it’s not doing enough (?), that’s one way to do it (temp target) if you feel safe targeting 80.
or you could do 90 instead of your usual, etc.
Paul Martin
@Spazholio
May 23 2016 22:10
Well, I set the temp target to 80 (the default) for both the high and low. And I went from 110 to 160. Gave myself a few units once I realized that it wasn’t going down on its own, and it still only managed to maintain, rather than actually decrease. Currently I’m sitting at 130 (not a horrible number) but it’s been ~6 hours, so I figured the loop would have taken care of that quicker.
Dana Lewis
@danamlewis
May 23 2016 22:11
lots of stuff to look at there - have you been running resistant? are you using auto-sens yet?
Paul Martin
@Spazholio
May 23 2016 22:12
I’m monitoring fairly closely, so I’m ok with being fairly aggressive with trying different things. I just don’t think (if I recall something you said correctly) that the loop doesn’t deal with dual- or square-wave boluses as well as normal ones.
Dana Lewis
@danamlewis
May 23 2016 22:12
it doesn’t deal because it doesn’t calculate dual or square as anything
so you can do a dual or square anyway, but know that the loop won’t know about the correct net amounts during that time..
Scott Leibrand
@scottleibrand
May 23 2016 22:13
Also, with AMA entering the carbs will make it be more aggressive when you do rise. If you have protein that acts like carbs (eventually) you could add some for that...
Paul Martin
@Spazholio
May 23 2016 22:13
And I’m using auto-sense, yes. Problem is, 2 days ago I was running close to 300 for a while (damned Taco Bell) and usually the next day I see increased resistance, so I don’t know that auto-sens is working properly since the last 24 hours have been non-standard.
Dana Lewis
@danamlewis
May 23 2016 22:13
…or do a normal, and use targets and manual bolus to make up for not doing a square/dual
Paul Martin
@Spazholio
May 23 2016 22:14
Ok, I didn’t know if it did dual/square at all, or just differently. Good to keep in mind.
Dana Lewis
@danamlewis
May 23 2016 22:14
yup
……..but in any case, the loop is not going to be perfect. it isn’t a silver bullet for meals. so not every meal is going to be perfect.
Scott Leibrand
@scottleibrand
May 23 2016 22:14
i like the extended low target thing for low-carb meals though.
Dana Lewis
@danamlewis
May 23 2016 22:14
it really depends on what you’re going to be doing
sitting around vs. active, etc.
Paul Martin
@Spazholio
May 23 2016 22:14
I did bolus for the carbs (10g). I had a Jimmy John’s Gargantuan Unwich. LOTS of protein.
Oh, sitting around. I work IT in a windowless basement. =)
Dana Lewis
@danamlewis
May 23 2016 22:14
I really don’t like making recommendations of things for people to do with their diabetes, because YDMV and it also depends on the past few days, today’s upcoming stuff to do, etc.
yea
totally different than running around
so you might feel safe with temp targets of 80 for a few hours. in which case, great.
but a lot of this is experimenting and figure out which combo of tools works well for you in which situations.
Paul Martin
@Spazholio
May 23 2016 22:15
I completely understand what you’re saying, and just so you know, I’m not taking your recommendations as gospel. MAYBE gospel-lite, since you guys have more experience and, you know, wrote the software. =)
Dana Lewis
@danamlewis
May 23 2016 22:15
*not a guy, but sure ;)
but even gospel-lite-with-grain-of-salt. you know your body best :)
Scott Leibrand
@scottleibrand
May 23 2016 22:16
Also worth exploring with AMA branch autosens whether it flagged most of the positive deviations from Taco Bell as being meal (>) or non-meal (+)
Paul Martin
@Spazholio
May 23 2016 22:16
I know, I know. We need a gender-neutral, plural familiar word. =)
Scott Leibrand
@scottleibrand
May 23 2016 22:16
Y'all works.
Dana Lewis
@danamlewis
May 23 2016 22:16
I need a slackbot for gitter ;) is what I need! :)
Ben West
@bewest
May 23 2016 22:16
folks is good
Paul Martin
@Spazholio
May 23 2016 22:17
Roger that.
Dana Lewis
@danamlewis
May 23 2016 22:17
:+1: ya’ll or y’all :+1: folks :+1: team :+1: people etc.
Scott Leibrand
@scottleibrand
May 23 2016 22:17
AMA autosens should exclude big deviations (> in the long line of output) and only count smaller (+) deviations toward resistance.
Paul Martin
@Spazholio
May 23 2016 22:17
Had a guy once use "y’uns”. Asked to explain, he said, “You know - y’uns. You ‘uns."
Andrew Baugh
@baughaw
May 23 2016 22:17
@jaylagorio Thanks!
Dana Lewis
@danamlewis
May 23 2016 22:18
Heh. I’ve seen that written before but never heard it used IRL
Paul Martin
@Spazholio
May 23 2016 22:18
Alright, so next time I have a high protein meal, I’ll try the extended temp tagets,see what that does.
Scott Leibrand
@scottleibrand
May 23 2016 22:18
@baughaw did you see my response just after his? Forgot to tag you.
Dana Lewis
@danamlewis
May 23 2016 22:18
@Spazholio :+1: good plan. would love to hear how it works for you
Scott Leibrand
@scottleibrand
May 23 2016 22:18
:+1: @Spazholio
Paul Martin
@Spazholio
May 23 2016 22:19
However, I have a new issue. Since I upgraded mmeowlink - and it appears to be still talking to the pump - I’m getting BG data is too old, or clock set incorrectly errors consistently. Unsure how to diagnose or fix. Thoughts?
When it says BG data is too old, or clock set incorrectly Mon May 23 2016 18:12:18 GMT-0400 (EDT) vs Mon May 23 2016 17:41:17 GMT-0400 (EDT) which time/date is from which source?
Dana Lewis
@danamlewis
May 23 2016 22:20
ahh, time zone fun
Paul Martin
@Spazholio
May 23 2016 22:20
However, it’s been working all day with no issues. And I don’t see how the mmeowlink thing could cause this, but that’s why I’m asking. =)
Scott Leibrand
@scottleibrand
May 23 2016 22:20
those should be from the glucose.json and the pi's local time.
Check the inputs. :-)
Paul Martin
@Spazholio
May 23 2016 22:21
HOLY HELL!
date command returns Mon May 23 17:45:52 EDT 2016
(that’s a full 40 minutes off)
Heck, I have an overnight cron that fixes time drift. How does that happen?
Scott Leibrand
@scottleibrand
May 23 2016 22:26
Are you running ntpd?
when Pi loses power it forgets the time.
Paul Martin
@Spazholio
May 23 2016 22:27
It hasn’t lost power, and I am running ntpd. I also run this every night:
sudo /etc/init.d/ntp stop                                                                                                                                                                                                                                                                                            
sudo ntpd -q -g
sudo /etc/init.d/ntp start
Ben West
@bewest
May 23 2016 22:31
does running that now fix the time again?
either it didn't run somehow, or maybe had an error somehow
or it didn't have the expected result
on a few occasions, I've had trouble getting even ntpd -q -g to work
Scott Leibrand
@scottleibrand
May 23 2016 22:32
Check out clockset.sh in oref0 repo
Paul Martin
@Spazholio
May 23 2016 22:32
Running it now fixed it. But it’s been running all day just fine. It’s just very odd. Maybe I need to run the ntpd command more often.
Ben West
@bewest
May 23 2016 22:32
if it runs fine now
then maybe issue with cron tab
Paul Martin
@Spazholio
May 23 2016 22:32
Ooooh. It’s almost like someone has had this same issue and written a script to fix it...
Scott Leibrand
@scottleibrand
May 23 2016 22:33
it may not do exactly what you want. Will actually set device time if NTP is sync'd though, and set Pi time if devices are in future from the Pi's perspective.
Paul Martin
@Spazholio
May 23 2016 22:33
Is there a difference between “device time” and “Pi time”?
Scott Leibrand
@scottleibrand
May 23 2016 22:36
Device here means pump and CGM.
Paul Martin
@Spazholio
May 23 2016 22:36
Oh, ok.