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

12th
Jan 2019
Riko L
@Ricco555
Jan 12 16:54
Hi. is this guide still valid for configuring auto-sense and meal assist? https://openaps.readthedocs.io/en/2017-07-13/docs/walkthrough/manual/phase-6/Configure-Automatic-Sensitivity-Mode.html
Currently I can see in the logs output of smb-suggested and temp_basal without meal.json and profile.json
Dana Lewis
@danamlewis
Jan 12 17:47
@Ricco555 if you’re using the latest OpenAPS version (0.6.2), ama and autosense are enabled by default.
(And I’m guessing you grabbed the old bookmarked docs in order to answer your Q, but for anything else, make sure to use the modern docs: https://openaps.readthedocs.io/en/latest/index.html)
jaylagorio
@jaylagorio
Jan 12 18:42
Hey everyone! I have a fresh install of 0.6.2 on an Edison. Setup runs and updates all the libraries and installs everything and completes to the end. myopenaps directory is created and the loop is running, getting BGs from Nightscout - not from the connected G5 CGM receiver. The CGM type is either G5 or G5-upload, but either way the logged lines in CGM-loop.log are "Not an openaps environment, run: openaps init". Any thoughts on what I should do? I blew away src/oref0 and redownloaded, blew away the myopenaps directory, not sure where else to look.
jaylagorio
@jaylagorio
Jan 12 18:50
^^ Addition to the top - it's a G5 touch screen receiver.
Dana Lewis
@danamlewis
Jan 12 18:52
I don’t think the touch receivers work for pulling cgm from receiver. You’d need to either pull from cloud, or do xdripjs on the rig for offline g5
jaylagorio
@jaylagorio
Jan 12 18:54
I was afraid of that. Unfortunately this transmitter stopped working with xdrip-js so I downgraded back to my Edison tethered to a receiver from my Pi0+HAT. The older style receiver's USB port just broke so I replaced it and they sent me this thing.
Any idea how I could at least get it to recognize the environment so that I can get it to at least try to pull the data, then figure out if I can have it parse what it sees?
Dana Lewis
@danamlewis
Jan 12 18:55
😔 re touch replacement
Not sure - that error shouldn’t be popping up, unless you’re not inside myOpenAPS, wondering if you somehow have a sub sub installation?
I’d do some ls-Ing to make sure you don’t have any weird sub nesting going on first
jaylagorio
@jaylagorio
Jan 12 18:58
That's what thought too, it shouldn't be complaining about the environment. This is the CGM-log file, so it's getting that output from cron. I checked and cron does have the "cd /root/myopenaps && oref0-cron-every-minute" line, which I think is where the CGM gets pulled. There are no extra subdirectories anywhere.
The rest of the loop works too, so I'd think if the directories were messed up that would be complaining as well
Dana Lewis
@danamlewis
Jan 12 18:58
K. I’d ignore it then
jaylagorio
@jaylagorio
Jan 12 18:59
Except that I can't operate like this indefinitely since I need offline looping and this transmitter fails with xdripjs and had to drop back to my old rig. That's the only reason I'm bothering to ask.
Dana Lewis
@danamlewis
Jan 12 19:01
Right but I don’t think it matters at all for the purpose of figuring out g5 touch screen and if it can be used to pull offline
Anyway - I don’t think anyone played w g5 touch screen at all for trying to get it to read data directly, so I think you are at square one regardless. (Sorry! Saying this so you know I’m not any help figuring it out!)
Riko L
@Ricco555
Jan 12 19:43
OpenAPS_20190112-1033_capture.png
@danamlewis thanks, but new docs don't go into details how this works or how to configure or tweak this (if it is possible to tweak at all). What I am trying to avoid is this: e.g. case from this morning, after meal 60g + 3U entered through the pump oref predicts sharp dip into lows in 2h and stops temp bazals. after 2h BG is stable 10 for the next 2h. Picture shows this. I gather that some of the parameters are not quite right but which one eludes me. Is it I:C ratio, ISF, carb apsorption ratio ...
I tought that autosense + meal assist would be able to provide some insights but I am struggling a little bit where to look. still fresh on the inner workings of the oref and all the options.
Riko L
@Ricco555
Jan 12 21:10
Going through the settings files randomly: preferences.json and profile.json have parameter 'curve'. I've set ultra-rapid in preferences.json as it matches the insulin, do I have to change also in profile.json or was it supposed to populate automaticaly?
Ebgineer
@Ebgineer
Jan 12 21:28
@Ricco555 not sure there is enough info to answer your question directly. All the parameters interact so it may not be easy to figure out. Did your bg eventually come back down? If so, a solution might be to administer the bolus prior to eating. How much in advance would depend on the type of insulin. Food normally causes bg to increase faster than insulin lowers it, so timing may help.
If your bg stayed high and never came down within the DIA time then the I:C could be off, or it could be there were more carbs eaten than what you estimated.
Riko L
@Ricco555
Jan 12 21:33
@Ebgineer I'll try to change some parameters according to autotune recommendation, but generally it works perfectly during the night. Only when eating I see sharp ups and downs. the carbs entries are correct, one of the issue might be the carbs/fat ratio or something else. anyways, any pointers would be helpful. Now I am scrolling through pump-logs and trying to figure how is it calculating predictions.
Ebgineer
@Ebgineer
Jan 12 21:36
I don't have data to prove it, but I'm fairly sure in my case I get insulin resistant if my bg is too high. So the same amount of insulin won't lower my bg the same amount depending on the starting bg. I have also seen different infusion sites have a slower absorption rate.
Steve Lund
@902Lund
Jan 12 21:54
Hi All. I'm looking for a bit of Nightscout help. I'm using Dexcom G5 with a 522 pump and uploading data to NS through Xdrip. NS keeps saying "wrong API secret" whenever I try to access my site. I checked Heroku so am 100% sure it's correct. If I restart all dynos, I can get in for a few minutes but, within a couple of minutes but, the same issue comes back within a few minutes. I'm using the following version of NS - 0.11.0-dev-20180805. I'm not very tech savy but, managed to locate the application logs in my Herko dashboard...I can send more if it might help but, this one line seems to indicate some sort of error - 2019-01-12T21:43:16.441075+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/api/v1/devicestatus.json" host=lundy902-1.herokuapp.com request_id=3dfa87aa-e37a-40ae-b7a4-ece027ab7df2 fwd="142.68.109.4" dyno= connect= service= status=503 bytes= protocol=https - I can send more if it is helpful. Does anyone have any suggestions?
Riko L
@Ricco555
Jan 12 21:54
@Ebgineer thanks, everybody reacts differently in different conditions. the goal would be to find optimal parameters that would reduce the slope curve. i would be very happy with that accomplishment.
Dana Lewis
@danamlewis
Jan 12 21:59
@Ricco555 if it’s just mealtime, it’s carb ratio & meal insulin timing. What is your carb ratio and what does autotune think it should be?
jaylagorio
@jaylagorio
Jan 12 22:00
@danamlewis I added support for the new receiver to Dexcom_reader. Now I'm back at the part where I need to get OpenAPS to work so I can test it. I removed the Am-I-In-An-OpenAPS-Dir and the new error output is complaining that the raw-CGM.json report isn't an option, so I don't think that's going to be the quick fix. What could be the problem that the stock 0.6.2-master installation script isn't installing the CGM loop right and where might I look next?
Going to the myopenaps directory and calling openaps report invoke raw-CGM/raw-entries.json successfully gets the data out of the new touchscreen receiver and into JSON format
Riko L
@Ricco555
Jan 12 22:04
@danamlewis this is what the autotune recommends: ISF [mg/dL/U] | 270.000 (14.98 mmol/dL/U) | 367.984 (20.42 mmol/dL/U)
Carb Ratio[g/U]| 40.000 | 30.729
Dana Lewis
@danamlewis
Jan 12 22:05
@jaylagorio whoa nice work! That was fast! I think we want to add that to 0.7.0, as that will be our next release...not sure what the correlating commands are there though
@Ricco555 k, yes, would definitely move your carb ratio to something like 35 and see if that makes things better (autotune will then tune further from there)
jaylagorio
@jaylagorio
Jan 12 22:07
@dana Like with the G4 -> G5 data structures, the only thing they did was add stuff to new offsets. They appear to have kept everything we currently look at in the existing offsets, so it was just massaging the data structures to account for the new but still unknown data. Since all the additions were in the Dexcom_receiver project that's where the PR is going to go. I think oref0-setup -> pulls down OpenAPS -> pulls down Dexcom_receiver?
Let me try switching to oref0-0.7.0-dev to see if that fixes all this
Riko L
@Ricco555
Jan 12 22:08
@danamlewis thanks. that was what I was thinking to do first. It's now iterative process of fine tuning to find the best parameters, and to learn a bit more about inner workings.
Dana Lewis
@danamlewis
Jan 12 22:09
@jaylagorio :+1:
@Ricco555 :+1:
Jeremy Cunningham
@jpcunningh
Jan 12 22:10
@902Lund, it appears you MongoDB is full. The Nightscout crash is fixed in the current dev branch.
you need to delete some data from your Nightscout database to recover. If you deploy the latest dev branch, it will stop crashing and there are some tools in the Admin page to help you delete old data.
jaylagorio
@jaylagorio
Jan 12 22:23
@danamlewis I don't know what happened between 0.6.2, which I had been using successfully at one point, and 0.7.0-dev but it looks like the CGM loop for G5 and G5-upload are working again. BTW, this is the same receiver that the G6 uses, so apparently it can talk G5 and G6. They're both Bluetooth so I guess that makes sense to cut costs and consolidate maintenance of receivers into just one.
Here's my plan:
1) PR for dexcom_reader to get the functionality in there
2) PR for OpenAPS so it understands the difference between G4, G5, and G6 (there's a model flag it passes down in init.py)
3) PR for oref0 so you can do G6 and G6-upload as CGM types.
Thoughts?
Steve Lund
@902Lund
Jan 12 22:26
Thanks @jpcunningh ! Can't believe that I don't know how to do this but, is there a guide or something for upgrading to the latest version of NS?
Dana Lewis
@danamlewis
Jan 12 22:26
I’m not sure we need 2 since we are moving away from that with 0.7.0? And assuming 3 you are targeting dev? If so, yes sounds good to me! And big thank you :)
jaylagorio
@jaylagorio
Jan 12 22:29
Oh, for 2 I didn't realize since 0.7.0 is still pulling that repo down and installing it. Let me triple check that oref0-0.7.0 doesn't need it somewhere else, but I think since the openaps report invoke command needs to know the model it has to be there. And for 3 I would definitely target dev.
FedEx dropped this thing off at 11 AM. < 8 hours to get a new device working so I can get my offline loop back until I switch transmitters isn't bad!
Dana Lewis
@danamlewis
Jan 12 22:31

Ok yes good idea to triple check and make sure it’s not being used :+1:

And yes you’re impressive fast! Kudos!

jaylagorio
@jaylagorio
Jan 12 22:51
Just validated that openaps does still need that, so all three PRs are submitted. Hooray offline OpenAPS!
It tells you how to update if you already have it installed.
Steve Lund
@902Lund
Jan 12 23:38
@jpcunningh Thanks!