@old-square-eyes agree that autotune can go off course if ISF varies a lot during the day.
Suggest you set both of these to equal 1 in preferences so autotune settings = pump settings (after next autotune run) this will reduce the amount of inuslin you carry after midnight.
"autosens_max": 1,
"autosens_min": 1,
Annecdotally at least i think our DIA could be longer than 8 hours which we're currently using perhaps an issue for you too?
/root/src/oref0/bin/oref0-autotune-prep.js:107
return console.error("Warning: could not parse "+glucose_input", e);
^^^^^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Could not run oref0-autotune-prep ns-treatments.2021-10-15.json profile.json ns-entries.2021-10-15.json
Hey everybody,
I have been running into a problem. I don't get the same results here https://autotuneweb.azurewebsites.net/ as when I run autotune manually from my computer:
I copied my profile.json to openaps/settings/autotune.json, openaps/settings/pumpprofile.json. and ran
oref0-autotune-prep myopenaps/autotune/ns-treatments.json myopenaps/autotune/profile.json myopenaps/autotune/ns-entries.{date}.json myopenaps/autotune/profile.json
in which date is replaced by dates of the different days
I use as the startdate "2021-12-30" and as the enddate "2022-01-04" (the day of yesterday) and I get these results:
00:00 | 0.360 | 0.432 | 2
01:00 | 0.360 | 0.252 | 2
02:00 | 0.360 | 0.252 | 0
03:00 | 0.360 | 0.252 | 0
04:00 | 0.360 | 0.252 | 2
05:00 | 0.360 | 0.252 | 2
06:00 | 0.360 | 0.432 | 2
07:00 | 0.380 | 0.456 | 2
08:00 | 0.380 | 0.266 | 2
09:00 | 0.380 | 0.266 | 2
10:00 | 0.380 | 0.456 | 0
11:00 | 0.380 | 0.266 | 0
12:00 | 0.320 | 0.224 | 2
13:00 | 0.290 | 0.203 | 2
14:00 | 0.280 | 0.196 | 2
15:00 | 0.340 | 0.367 | 2
16:00 | 0.360 | 0.242 | 2
17:00 | 0.300 | 0.210 | 1
18:00 | 0.320 | 0.245 | 1
19:00 | 0.320 | 0.384 | 1
20:00 | 0.380 | 0.428 | 2
21:00 | 0.350 | 0.245 | 2
22:00 | 0.330 | 0.231 | 2
23:00 | 0.330 | 0.231 | 2
When I run autotuneWeb on the azure platform I get these results, which seem better
"Based on data entered between 2021-12-30 and 2022-01-04":
ISF [mg/dL/U] | 45.000 | 49.923 |
Carb Ratio[g/U]| 16.000 | 14.852 |
00:00 | 0.360 | 0.432 | 1
01:00 | 0.360 | 0.432 | 1
02:00 | 0.360 | 0.432 | 1
03:00 | 0.360 | 0.432 | 1
04:00 | 0.360 | 0.432 | 1
05:00 | 0.360 | 0.432 | 1
06:00 | 0.360 | 0.434 | 2
07:00 | 0.380 | 0.454 | 2
08:00 | 0.380 | 0.454 | 2
09:00 | 0.380 | 0.456 | 1
10:00 | 0.380 | 0.436 | 0
11:00 | 0.380 | 0.369 | 1
12:00 | 0.320 | 0.286 | 0
13:00 | 0.290 | 0.241 | 1
14:00 | 0.280 | 0.259 | 1
15:00 | 0.340 | 0.291 | 0
16:00 | 0.360 | 0.330 | 0
17:00 | 0.300 | 0.280 | 1
18:00 | 0.320 | 0.320 | 3
19:00 | 0.320 | 0.320 | 3
20:00 | 0.380 | 0.358 | 1
21:00 | 0.350 | 0.387 | 1
22:00 | 0.330 | 0.396 | 1
23:00 | 0.330 | 0.396 | 1
I think the problem has something to do with the input, but I can't figure out what Im doing wrong. I've tried to use different options for oref0-autotune-prep.js according to the help doc, ( -i and -u) but it doesn't get the results from manual autotune results better.
Does anybody have an idea what I'm doing wrong?
@scottleibrand Thanks! But I'm trying to run it as ./oref0-runagain.sh --dir=/root/myopenaps ... --disable='autotune' ...
and it shows me:
Setting up oref0 in /root/myopenaps for pump 594848 with MDT CGM,
NS host https://..., TTY /dev/spidev0.0, advanced features autotune
So, it adds autotune
again, right? Why?