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

12th
Mar 2016
Scott Leibrand
@scottleibrand
Mar 12 2016 00:08
@bewest would you consider stripping bolus out of the normal release of openaps tools?
make people compile it in if they need it?
Bill Stackpole
@billstackpole
Mar 12 2016 00:08
Good idea.
Yes it was set to absolute in the instruction. Do I need to change it in the pump directly?
Scott Leibrand
@scottleibrand
Mar 12 2016 00:09
I sometimes worry if someone managed to hack into an openaps rig, they could execute openaps boluses even though oref0 doesn't use it.
maybe we should instruct people to lower their max bolus setting on the pump too
so if someone does execute a bolus the damage is a bit more limited (to whatever you would normally bolus for a meal)
@billstackpole the "absolute" setting has to be done on the pump to do any good. is that not what the instructions say?
Bill Stackpole
@billstackpole
Mar 12 2016 00:12
i will closely peruse them again to be sure I didn't misread or overlook something and will advise.
Scott Leibrand
@scottleibrand
Mar 12 2016 00:38
if it's unclear, feel free to fork the docs, make an edit, and then submit a pull request to fix it
dougtakeuti
@dougtakeuti
Mar 12 2016 01:39
@scottleibrand I wonder what this means:
Optional feature Auto Sensitivity not enabled: { [Error: ENOENT, no such file o r directory 'online'] errno: 34, code: 'ENOENT', path: 'online', syscall: 'open' }
Scott Leibrand
@scottleibrand
Mar 12 2016 01:53
that means you're using old syntax with the new branch
replace the "online" in your alias if you want to use autosens
Jim Matheson
@jmatheson
Mar 12 2016 02:45
This message was deleted
dougtakeuti
@dougtakeuti
Mar 12 2016 03:19
@scottleibrand that's the one in enact/suggested.json, right? Not quite sure what you mean, though... replace with what?
Scott Leibrand
@scottleibrand
Mar 12 2016 03:25
Run the command that is generating that output with -h
Scott Leibrand
@scottleibrand
Mar 12 2016 03:31
Assuming you even want automatic sensitivity detection. It is optional, as it says.
dougtakeuti
@dougtakeuti
Mar 12 2016 03:34
Yes, I want to have a go at it. Do you mean openaps report invoke -h enact/suggested.json ?
Also, how is the max hi temp rate determined?
Jim Matheson
@jmatheson
Mar 12 2016 04:08
npm ERR! Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/oref0-normalize-temps.js'
npm ERR!  { [Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/oref0-normalize-temps.js']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: '/home/pi/src/oref0/node_modules/oref0/bin/oref0-normalize-temps.js' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
@scottleibrand do i really need to run sudo? this is for quick-src
dougtakeuti
@dougtakeuti
Mar 12 2016 04:09
@scottleibrand ok, I see that among the reports used for determine-basal there is an optional autosens.json. What kind of report is that?
Scott Leibrand
@scottleibrand
Mar 12 2016 04:43
@jmatheson that is not my code. perhaps it was @jasoncalabrese that added that?
@dougtakeuti autosens.json is expected to be the output of oref0-detect-sensitivity
Ben West
@bewest
Mar 12 2016 04:56
probably will keep bolus as-is, maybe add something to help message saying not to put it in a loop
live4sw
@live4sw
Mar 12 2016 16:04
Anyone have a gameplan yet for how they plan to deal with daylight savings tonight?
Bill Stackpole
@billstackpole
Mar 12 2016 16:12
Would expect that ntp should manage this ( but not sure if the raspi has ntp enabled by default)
Ntpdate <server> should keep the time updated but not sure the implication when looping. Good question.
Jim Matheson
@jmatheson
Mar 12 2016 16:23
overnight my NS stopped getting BGs from G5 share. not sure what the deal is.
Jim Matheson
@jmatheson
Mar 12 2016 16:29
of course it stopped 30 mins after my papertrail overfilled
wow thats a first. rebooted heroku and it’s working. (I know, wrong forum whoops)
Jim Matheson
@jmatheson
Mar 12 2016 17:07
has anyone seen this before while trying to run battery?
pi@murse:~/aps $ openaps report invoke monitor/battery.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/pi/src/openaps/openaps/reports/invoke.py", line 24, in main
    task = app.actions.commands['add'].usages.commands[device.name].method.commands[report.fields['use']]
KeyError: ‘read_batt’
Rachel Sandlain
@audiefile
Mar 12 2016 17:25
@jmatheson do you have uptime robot for your site? I know the guides suggest setting it up for bridge sites to keep the site awake. Although your loop should keep it awake too...
Jim Matheson
@jmatheson
Mar 12 2016 17:31
I do
Pretty sure. Have never had bgs go down before
Will double check. Loop was/is down too
Dana Lewis
@danamlewis
Mar 12 2016 17:49
@billstackpole @live4sw Key is the dumb devices, changing pump and cgm clocks
Bill Stackpole
@billstackpole
Mar 12 2016 17:52
Tnx!
Jason Calabrese
@jasoncalabrese
Mar 12 2016 18:20
no matter how prepared I am for a time change, I always miss something and things break
eyim
@eyim
Mar 12 2016 18:27
with the zoned report do we have to change timezones or is timezone = PST still okay for the clock-zoned report?
Also any changes needed for Nightscout or will it automatically switch as well? Probably less risk with a spring forward but with a fall back I wonder if it will have extra data points
Jim Matheson
@jmatheson
Mar 12 2016 18:37
looks like my battery problem was due to the end of my openaps.ini getting cut off at some point.
Bill Stackpole
@billstackpole
Mar 12 2016 18:38
@scottleibrand - I have never forked a document repo to update - can you advise the github link to\ the docs? should I be doing something with gitbook?
Jason Calabrese
@jasoncalabrese
Mar 12 2016 18:45
I think the issue with the time change is that some things may change automatically, like a phone, and others like the pump or dexcom wont
Toby Canning
@TC2013
Mar 12 2016 18:46
@jasoncalabrese which oref0 branch are you running?
Jason Calabrese
@jasoncalabrese
Mar 12 2016 18:46
you can try adjusting settings on the phone to disable network time, but I've seen that not work
Jason Calabrese
@jasoncalabrese
Mar 12 2016 18:46
still running dev from a couple weeks ago
Toby Canning
@TC2013
Mar 12 2016 18:47
I've just being trying to get autosens to work again and wasn't sure if meal-assist or the advanced-meal-assist was the way to go
Scott Leibrand
@scottleibrand
Mar 12 2016 18:49
We haven't started using advanced in prod yet. It looks pretty good in parallel though.
You can do autosens with meal-assist firsr
*first
then switch to advanced when ready to test that.
Toby Canning
@TC2013
Mar 12 2016 18:49
Thanks!
eyim
@eyim
Mar 12 2016 18:57
@jasoncalabrese Thanks Jason. I have a feeling there will be a few of us up at 2 am :)
Milos Kozak
@MilosKozak
Mar 12 2016 19:28
@danamlewis form filled. running for 7 days now. still lot of things to improve but no extra treatments overnight. huge improvement for us
Dana Lewis
@danamlewis
Mar 12 2016 19:29
@MilosKozak Just saw t come through :) :) :)
Have a couple people who submitted last day or so, so need to catch up with ya'll so stay tuned for the new "count" :)
Toby Canning
@TC2013
Mar 12 2016 20:16
Finally got auto-sens actually working
Scott Leibrand
@scottleibrand
Mar 12 2016 20:16
:+1:
Toby Canning
@TC2013
Mar 12 2016 20:16
Adjusting basal from 3.5 to 4.06
Adjusting sens from 25 to 21.6
Thanks for all your work on that!!!
Scott Leibrand
@scottleibrand
Mar 12 2016 20:16
does that seem accurate? Running high/resistant?
Toby Canning
@TC2013
Mar 12 2016 20:17
no, but I'm combing through the data to figure out why
Scott Leibrand
@scottleibrand
Mar 12 2016 20:17
need feedback to help tune the sensitivity and resistance percentile thresholds.
Are you using 24h pumphistory and glucose history?
Toby Canning
@TC2013
Mar 12 2016 20:18
yes
let me make sure I have both at 24 :)
Yup, cgm 25 hours and pump hx at 24
Scott Leibrand
@scottleibrand
Mar 12 2016 20:21
Pump should be longer than cgm ideally
since you need DIA hours pump data before you can evaluate BGI for a given BG datapoint.
Toby Canning
@TC2013
Mar 12 2016 20:21
good to know
Scott Leibrand
@scottleibrand
Mar 12 2016 20:22
That shouldn't cause it to false positive on resistance tho
Toby Canning
@TC2013
Mar 12 2016 20:22
I think I'm looking at the data wrong.... I'm running reports in NS to get averages, but had to run 2 days to get yesterdays included
However, eye balling the last 24 hours, autosens is probably correct
blob
Scott Leibrand
@scottleibrand
Mar 12 2016 20:39
:+1:
jaylagorio
@jaylagorio
Mar 12 2016 22:14
I think I'm pretty close to having this all nailed down on a Pi for upload to Nightscout, I'm just running into one final snag. I have a Medtronic pump with the "security improvements" that preclude it from being used in a fully closed loop. I'm at the point where I'm looking to generate monitor/upload-status.json but it needs enact/enacted.json. I have every other dependency report being generated so basically, like max_iob.json, I think I want a dummy JSON file that will just let this report finish. I don't think I'm making the mental leap necessary to generate that file. Anyone have pointers other than the using-oref0-tools.md documentation?
The other error I'm getting is "Warning: could not parse meal_input. Meal Assist disabled." when I do enact/suggested.json but that file does get populated with data.
Scott Leibrand
@scottleibrand
Mar 12 2016 22:16
Try just copying suggested.json to enacted.json?
most (all?) of the required fields are the same.
Meal assist is optional. We made that warning less scary in newer versions. :-)
you might need to add a received: false (with appropriate json syntax) if it complains about that.
jaylagorio
@jaylagorio
Mar 12 2016 22:20
Yeah, I don't think I need meal assist right now so that's fine. I tried copying suggested.json to enacted.json and I'm stil l getting the same error with monitor/upload-status.json: Could not parse input data: [TypeError: Cannot read property 'duration' of undefined]
No JSON object could be decoded
Scott Leibrand
@scottleibrand
Mar 12 2016 22:22
Your suggested isn't suggesting anything.
Try setting a temp basal for it to cancel, and using the resulting suggested.json with a duration field.
or just add duration: 0 manually if you're comfortable editing json.
jaylagorio
@jaylagorio
Mar 12 2016 22:23
If I'm understanding this I think it's suggesting not to cancel anything?
{"temp":"absolute","bg":184,"tick":-6,"eventualBG":118,"snoozeBG":151,"mealAssist":"Off: Carbs: undefined Boluses: undefined Ta
rget: 120 Deviation: -20 BGI: -1.4","reason":"Eventual BG 118>115 but Delta -6 < Exp. Delta -1.4; no temp to cancel"}
I'm comfortable doing that, I'll try it now
Scott Leibrand
@scottleibrand
Mar 12 2016 22:23
You might need a rate: 0 too.
jaylagorio
@jaylagorio
Mar 12 2016 22:24
Same error. This is so strange
And I added rate as well
jaylagorio
@jaylagorio
Mar 12 2016 22:30
For completeness, here's the script I'm running and the full output:
rm -f settings/ monitor/ enact/*
openaps gather-profile
openaps monitor-pump
openaps monitor-cgm
openaps report invoke monitor/iob.json
openaps report invoke enact/suggested.json
cp enacted.tests.json enact/enacted.json
openaps status-upload
Well, I just noticed an error I hadn't seen before: "Warning: could not parse carbratio_data. Meal Assist disabled. " I'll see what's making that happen
Scott Leibrand
@scottleibrand
Mar 12 2016 22:33
That is also a warning you can ignore.
What is the actual error now?
jaylagorio
@jaylagorio
Mar 12 2016 22:33
OK. It's coming from enact/suggested.json
This is the error, plus stack trace, still with status-upload:
ns-status://JSON/shell/monitor/upload-status.json
Could not parse input data:[TypeError: Cannot read property 'duration' of undefined]
No JSON object could be decoded
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
app( )
File "/home/pi/src/openaps/openaps/cli/init.py", line 44, in call
self.run(self.args)
File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
output = app(args, self)
File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/home/pi/src/openaps/openaps/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/home/pi/src/openaps/openaps/reports/reporters/init.py", line 27, in call
self.blob = self.serialize(data)
File "/home/pi/src/openaps/openaps/reports/reporters/init.py", line 25, in serialize
return self.method.serialize(render(data), self)
File "/home/pi/src/openaps/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Scott Leibrand
@scottleibrand
Mar 12 2016 22:35
You might have a json syntax error.
jaylagorio
@jaylagorio
Mar 12 2016 22:39
Maybe! Here's some progress:
Could not require: /home/pi/openaps-jml/[ { [Error: Cannot find module '/home/pi/openaps-jml/['] code: 'MODULE_NOT_FOUND' }
reporting monitor/upload-status.json
But upload-status.json is generated
So it looks like determine-basal might be generating bad json?
Rachel Sandlain
@audiefile
Mar 12 2016 22:47
/home/ok/openaps-jml/ should be your openaps directory. I see that every time (not sure why as that's the current working directory) but it should still run. Thagd not from determine-basal
/home/pi...
jaylagorio
@jaylagorio
Mar 12 2016 22:48
Yeah, that is my openaps directory (with the INI file and everything)
It's my current working directory as well
Rachel Sandlain
@audiefile
Mar 12 2016 22:50
And upload-status.json generates ok? Its not an empty file or anything?
jaylagorio
@jaylagorio
Mar 12 2016 22:51
It does now that I have @scottleibrand 's enacted.json file in place
Milos Kozak
@MilosKozak
Mar 12 2016 22:55
@scottleibrand what is the best version to start dealing with meal assist?
Rachel Sandlain
@audiefile
Mar 12 2016 22:56
Then I wouldn't worry about it @jaylagorio
John Vilburn
@johnvilburn
Mar 12 2016 22:59
Anyone here using SDR# on Windows for decoding radio signals?
jaylagorio
@jaylagorio
Mar 12 2016 23:00
Sounds good. I have to take a break for a bit but will come back at the "Uploading Latest Treatments to Nightscout" step. Thank you for your help, @audiefile and @scottleibrand! I'll let you know as I make progress.
Ben West
@bewest
Mar 12 2016 23:11
to check syntax, try running it through the json tool: cat monitor/upload-status.json | json