edison@doubled:~/Documents/try5$ openaps report invoke monitor/meal.json
meal://text/shell/monitor/meal.json
Warning: could not parse monitor/carbhistory.json
/home/edison/src/oref0/bin/oref0-meal.js:79
if (glucose_data.length < 36) {
^
TypeError: Cannot read property 'length' of undefined
at Object.<anonymous> (/home/edison/src/oref0/bin/oref0-meal.js:79:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
reporting monitor/meal.json
settings/carbhistory.json
. Works just fone.
STARTING GET-BG
ns-glucose://text/shell/monitor/ns-glucose.json
reporting monitor/ns-glucose.json
STARTING ENACT
{"carbs":104,"boluses":3.1,"mealCOB":34}
{"ratio":1.23}
{"iob":0.005,"activity":0.0114,"bolussnooze":0,"basaliob":-0.034,"netbasalinsulin":0.4,"hightempinsulin":0.65,"time":"2016-06-11T01:55:51.000Z"}
{"delta":-2,"glucose":62,"avgdelta":-1.333}
{"duration":25,"rate":0,"temp":"absolute"}
{"max_iob":2,"type":"current","dia":4,"current_basal":0.3,"max_daily_basal":0.35,"max_basal":1,"min_bg":90,"max_bg":100,"sens":100,"carb_ratio":15}
Adjusting basal from 0.3 to 0.37
Adjusting sens from 100 to 81.3
Carb Impact: 2.6 mg/dL per 5m; CI Duration: 11.8 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 3.1 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":62,"tick":-2,"eventualBG":154,"snoozeBG":78,"predBGs":{"IOB":[62,60,58,55,53,52,52,51,50,50,51,51,51,51,51,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,61,62,62,63,63,64,64,64,65],"aCOB":[62,67,72,77,82,89,95,101,107,115,122,129,135,142,148,154,160,166,171,177,182,187,191,196,200,203,207,210,213,215,218,220,222,223,225,226,226,227,227,228,228,229,229,229,230],"COB":[62,60,58,56,55,55,56,56,57,59,62,64,66,69,71,74,76,79,81,84,87,90,93,95,98,101,103,106,108,111,113,116,118,121,123,126,128,131,133,135,138,140,142,144,147,149,151,153,154]},"reason":"COB: 34, Dev: 16, BGI: -4.63, ISF: 81.3, Target: 95; BG 62<70, but 25m left and 0 ~ req 0U/hr: no action required"}
No action required
Jun 10 19:31:29 indy-e1 openaps-loop: ------+->>>>+=----------+----++->+>>>+++++++---+=---------+++-++-+>>>+>>>++++--+-+---+- 58% of non-meal deviations negative (target 45%-50%)
Jun 10 19:31:29 indy-e1 openaps-loop: Excess insulin sensitivity detected: ISF adjusted from 80 to 100
Jun 10 19:31:29 indy-e1 openaps-loop: 0
STARTING ENACT
{"carbs":128,"boluses":3.1,"mealCOB":60}
{"ratio":1.24}
{"iob":0.094,"activity":0.015,"bolussnooze":0,"basaliob":0.028,"netbasalinsulin":0.45,"hightempinsulin":0.65,"time":"2016-06-11T01:48:10.000Z"}
{"delta":1,"glucose":66,"avgdelta":1}
{"duration":29,"rate":0.325,"temp":"absolute"}
{"max_iob":2,"type":"current","dia":4,"current_basal":0.3,"max_daily_basal":0.35,"max_basal":1,"min_bg":90,"max_bg":100,"sens":100,"carb_ratio":15}
Adjusting basal from 0.3 to 0.37
Adjusting sens from 100 to 80.6
Carb Impact: 7 mg/dL per 5m; CI Duration: 7.7 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 5.4 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":66,"tick":"+1","eventualBG":281,"snoozeBG":100,"predBGs":{"IOB":[66,66,68,68,69,69,70,71,71,71,71,71,71,71,71,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,73],"aCOB":[66,70,75,80,85,90,97,103,110,117,125,133,141,148,156,163,171,178,185,192,199,206,213,219,225,232,238,243,249,255,260,265,271,275,280,285,290,294,298,302,306,310,314,317,320,323,326,329,332],"COB":[66,67,69,71,74,76,81,85,89,93,99,105,111,116,122,128,133,139,145,150,156,161,167,172,177,182,187,192,197,202,207,212,216,221,225,230,234,239,243,247,251,255,259,263,267,270,274,277,281]},"reason":"COB: 60, Dev: 42, BGI: -6.04, ISF: 80.6, Target: 95; BG 66<70, avg delta 1.00>0, temp 0.325 ~ req 0.37U/hr"}
No action required
STARTING TEMP BASAL
STARTING UPLOAD
Uploaded
STARTING GET-SETTINGS
STARTING AUTOSENSE
>>>++>>>>>>>>>>>>>>>>>>>>>++>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>++>+++>+>>>>>>>>>>>>>>>>>>>++>>>+>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>++++++-+-+++++-+++-++--+-=----------++++++++++-------+-----------++-+-++----------++-+++>>>>+++++++++-+++--++++++++--++++++++++++ 38% of non-meal deviations negative (target 45%-50%)
Excess insulin resistance detected: ISF adjusted from 100 to 81.30081300813008
detect-sensitivity://text/shell/settings/autosens.json
reporting settings/autosens.json
STARTING WAITFORBG
{
"bg": 77,
"temp": "absolute",
"snoozeBG": 104,
"recieved": true,
"predBGs": {
"IOB": [
77,
77,
78,
79,
80,
81,
83,
84,
86,
87,
89,
90,
91,
92,
94,
95,
96,
97,
98,
99,
100,
101,
102,
103,
103,
104,
105,
105,
105,
106,
106,
106,
106,
107
]
},
"rate": 0.325,
"reason": "COB: 0, Dev: 9, BGI: -1.19, ISF: 95, Target: 110; BG 77<80, delta 1>0; setting current basal of 0.35 as temp. Setting neutral temp basal of 0.35U/hr",
"COB": 0,
"eventualBG": 104,
"timestamp": "2016-06-10T23:17:42.725931",
"duration": 30,
"tick": "+1",
"IOB": -0.189
}
enacted.json (END)
root@ubilinux:/# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
}
at the end of the file.
oref0-reset-git
any other way around that? the fix-git command doesn't work. Wondering if I should run that in cron once an hour but seems destructive.
git status
fail?
git status
was ok, but invoking anything failed due to locks, and the error was getting lost in my preflight so it took a while to find
oref0-fix-git-corruption
in cron hourly. Then if it locks up manually running oref0-reset-git
git status
is ok, that's the check that is used in the fix script, but I think there might be some git corruption issues that don't cause git status
to fail
oref0-reset-git
so I couldn’t loop last night
Evening all - trying to move to AMA and I am getting an error that I don't know how to debug:
> openaps report invoke monitor/meal.json
meal://text/shell/monitor/meal.json
/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:71
if (typeof basalprofile_data[0].glucose != 'undefined') {
^
TypeError: Cannot read property 'glucose' of undefined
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:71:36)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
reporting monitor/meal.json
Any suggestions?