oref0
oref0 copied to clipboard
#1455: Don’t cancel a <10m old high temp due to lack of BG data
https://github.com/openaps/oref0/issues/1455
When running offline with multiple rigs, the rig with connected CGM will set a high temp, and the other without CGM data will immediately cancel it.
Let's not cancel a high temp due to lack of BG data if the temp has been running for less than 10m.
Testing with oref0-ns-loop purposefully broken:
No deliverAt found.
{"reason":"If current system time Sat Aug 19 2023 19:51:30 GMT-0700 (PDT) is correct, then BG data is too old. The last BG data was read 19.7m ago at Sat Aug 19 2023 19:31:49 GMT-0700 (PDT)lastTempAge of 0 < 10m; doing nothing. "}
Couldn't smb_verify_suggested
oref0-pump-loop failed. Waiting up to 4 minutes for new BG: .......
Will add a , but there.
Looking good now in testing:
Temp refreshed: monitor/temp_basal.json: {"duration":51,"temp":"absolute","rate":0}
Autotune exists! Hoorah! You can use microbolus-related features.
{"iob":0.295,"activity":0.0075,"basaliob":-0.095,"bolusiob":0.389,"netbasalinsulin":-2.5,"bolusinsulin":5.9,"time":"2023-08-20T04:39:38.000Z","iobWithZeroTemp":{"iob":0.295,"activity":0.0075,"basaliob":-0.095,"bolusiob":0.389,"netbasalinsulin":-2.5,"bolusinsulin":5.9,"time":"2023-08-20T04:39:38.000Z"},"lastBolusTime":1692497386000,"lastTemp":{"rate":0,"timestamp":"2023-08-19T21:29:15-07:00","started_at":"2023-08-20T04:29:15.000Z","date":1692505755000,"duration":0.03}}
{"delta":-1,"glucose":152,"noise":null,"short_avgdelta":-0.17,"long_avgdelta":3.46,"date":1692504407000,"last_cal":0,"device":"share2"}
null
No deliverAt found.
{"reason":"If current system time Sat Aug 19 2023 21:40:28 GMT-0700 (PDT) is correct, then BG data is too old. The last BG data was read 33.7m ago at Sat Aug 19 2023 21:06:47 GMT-0700 (PDT), but lastTempAge of 9 < 10m; doing nothing. "}
Couldn't smb_verify_suggested