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

15th
May 2018
Scott Leibrand
@scottleibrand
May 15 2018 00:00
If your pump can’t keep time, it’s not safe to use.
Especially for manual use with the bolus wizard, where IOB matters a lot.
jquitos
@jquitos
May 15 2018 00:02
Ok. Will be something that I will have to monitor to see if it does keep correct time or not. For whatever reason when he goes to school BT tether sometimes does not connect and I know that it goes back to basal profile... but if the time lags I suspect that the basals will not be changed at the correct times.
What would be an acceptable occurenct for a "new time set" in openAPS?
occurence
Boris and Kayley Raskin
@boryanvbu
May 15 2018 00:24
I set up a new rig. Turned on enableSMB options, ran autotune, bolus wizard is off, but still unable to get the rig to SMB. I'm also getting two contradictory messages in the loop log. It says "SMB disabled (no enableSMB preferences active)", as well as "...and that smb-suggested.json is less than 1m old;enact/smb-suggested.json: "temp":"absolute","bg":100,"tick"..." Attaching section of loop log below. Any ideas why?
Starting oref0-pump-loop at Mon May 14 20:05:02 EDT 2018 with 29 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight OK. Profile less than 60m old; Profile valid. Refreshed pumphistory and meal.json
Checking pump clock: "2018-05-14T20:06:02-04:00" is within 1m of current time: Mon May 14 20:06:04 EDT 2018
Temp refreshed
Autotune exists! Hoorah! You can use microbolus-related features.
{"carbs":15,"nsCarbs":15,"bwCarbs":0,"mealCOB":11,"currentDeviation":-5.62,"maxDeviation":8.2,"minDeviation":-3.89,"slopeFromMaxDeviation":-1.669,"slopeFromMinDeviation":0,"allDeviations":[-6,-4,-2,1,2,3,6,8],"lastCarbTime":1526341019620,"bwFound":false}
{"iob":3.427,"activity":0.0297,"basaliob":-0.215,"bolusiob":3.642,"netbasalinsulin":-1.4,"bolusinsulin":8,"time":"2018-05-15T00:06:08.000Z","iobWithZeroTemp":{"iob":3.427,"activity":0.0297,"basaliob":-0.215,"bolusiob":3.642,"netbasalinsulin":-1.4,"bolusinsulin":8,"time":"2018-05-15T00:06:08.000Z"},"lastBolusTime":1526340287000,"lastTemp":{"rate":0,"timestamp":"2018-05-14T20:00:45-04:00","started_at":"2018-05-15T00:00:45.000Z","date":1526342445000,"duration":6.43}}
{"delta":-14,"glucose":100,"short_avgdelta":-13.67,"long_avgdelta":-10.13,"date":1526342659000}
Autosens ratio: 0.97; Adjusting basal from 1.25 to 1.2; target_bg from 90 to 91; ISF from 44.8 to 46.2; CR: 8.298
currenttemp: { duration: 104, rate: 0, temp: 'absolute' } lastTempAge: 5 m tempModulus: 19 m
SMB disabled (no enableSMB preferences active)
Last carbs 29 minutes ago; remainingCATime: 3.8 hours; 27% carbs absorbed
Carb Impact: -7.1 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 2.7 mg/dL per 5m
predCIs (mg/dL/5m): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
remainingCIs:       0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
UAM Impact: -7.1 mg/dL per 5m; UAM Duration: 0 hours
minPredBG: 23 minIOBPredBG: 39 minZTGuardBG: 23 minCOBPredBG: 39 avgPredBG: 23 COB: 11 / 15
BG projected to remain above 91 for 5 minutes
BG projected to remain above 66 for 15 minutes
naive_eventualBG: -58 bgUndershoot: 123.5 zeroTempDuration: 15 zeroTempEffect: 14 carbsReq: 12
Checking deliverAt: 2018-05-15T00:06:14.584Z is within 1m of current time: Mon May 14 20:06:14 EDT 2018
and that smb-suggested.json is less than 1m old
enact/smb-suggested.json: {"temp":"absolute","bg":100,"tick":-14,"eventualBG":39,"insulinReq":0,"reservoir":"40.6","deliverAt":"2018-05-15T00:06:14.584Z","sensitivityRatio":0.97,"predBGs":{"IOB":[100,87,74,61,50,40,39,39,39,39,39,39,39],"ZT":[100,93,86,79,72,66,61,55,52,49,46,43,41,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,41,45,49,53,56,60,64,68,72,76,80,84,87],"COB":[100,87,74,62,51,41,39,39,39,39,39,39,39]},"COB":11,"IOB":3.427,"reason":"COB: 11, Dev: -20, BGI: -7, ISF: 46, CR: 8.3, Target: 91, minPredBG 23, minGuardBG -9, IOBpredBG 39, COBpredBG 39; 12 add'l carbs req w/in 15m; minGuardBG -9<66","carbsReq":12,"duration":120,"rate":0}
Temp refreshed: monitor/temp_basal.json: {"duration":104,"rate":0,"temp":"absolute"}
enact/smb-enacted.json: "Rate: 0 Duration: 120"
Temp refreshed: monitor/temp_basal.json: {"duration":120,"rate":0,"temp":"absolute"}
No bolus needed (yet). Settings less than 15 minutes old. Edison battery at 61% is charged (>= 98%) or likely charging (60-70%). Pumphistory-24 < 15m old
Pump profile refreshed; Settings refreshed; RefreshValueError: need more than 0 values to unpack
Retrying invoke_pumphistory_etc
ValueError: need more than 0 values to unpack
Couldn't invoke_pumphistory_etc - continuing
Retrying monitor_pump
ValueError: need more than 0 values to unpack
Retrying invoke_pumphistory_etc
ed pumphistory and meal.json
IOB: 3.397
Your instance of oref0 [0.6.0, master] is up-to-date.
Completed oref0-pump-loop at Mon May 14 20:07:32 EDT 2018
Tim Gunn
@Tornado-Tim
May 15 2018 00:38
What preferences to enable SMB have you got enabled? - might be just simpler to paste your preferences.json file under ~/myopenaps
Boris and Kayley Raskin
@boryanvbu
May 15 2018 00:44
Here is my preferences.json @Tornado-Tim. Thank you!
{
        "max_iob": 8,
        "max_daily_safety_multiplier": 3,
        "current_basal_safety_multiplier": 4,
        "autosens_max": 1.2,
        "autosens_min": 0.7,
        "rewind_resets_autosens": true,
        "adv_target_adjustments": false,
        "exercise_mode": true,
        "wide_bg_target_range": false,
        "sensitivity_raises_target": true,
        "unsuspend_if_no_temp": true,
        "enableSMB_with_bolus": true,
        "enableSMB_with_COB": true,
        "enableSMB_with_temptarget": true,
        "enableUAM": true,
        "enableSMB_always": true,
        "enableSMB_after_carbs": true,
        "high_temptarget_raises_sensitivity": true,
        "low_temptarget_lowers_sensitivity": true,
        "sensitivity_raises_target": true,
        "resistance_lowers_target": true,
        "curve": "ultra-rapid",
        "offline_hotspot": false,
        "A52_risk_enable": true
}
Scott Leibrand
@scottleibrand
May 15 2018 01:04
And are those enableSMB preferences also making it through to profile.json?
@jquitos new time set occurrences are totally irrelevant to whether that pump is safe to use as a pump without OpenAPS involved.
Please check the pump clock (while not using OpenAPS) and see how much it drifts. If it drifts more than about 5% (3 minutes per hour) then over the course of a few days the time would get too far off for basals to be scheduled properly, unless OpenAPS fixes the time or you do so manually. If it drifts more than about 10%, then that starts to affect IOB calculations.
Boris and Kayley Raskin
@boryanvbu
May 15 2018 01:10
It doesn't look like it @scottleibrand. What could be the cause of that?
Here is the profile.json from the settings directory
{
  "max_iob": 8,
  "max_daily_safety_multiplier": 3,
  "current_basal_safety_multiplier": 4,
  "autosens_max": 1.2,
  "autosens_min": 0.7,
  "rewind_resets_autosens": true,
  "high_temptarget_raises_sensitivity": false,
  "low_temptarget_lowers_sensitivity": false,
  "sensitivity_raises_target": true,
  "resistance_lowers_target": false,
  "adv_target_adjustments": false,
  "exercise_mode": false,
  "half_basal_exercise_target": 160,
  "maxCOB": 120,
  "wide_bg_target_range": false,
  "unsuspend_if_no_temp": false,
  "bolussnooze_dia_divisor": 2,
  "min_5m_carbimpact": 8,
  "autotune_isf_adjustmentFraction": 1,
  "remainingCarbsFraction": 1,
  "remainingCarbsCap": 90,
  "enableUAM": true,
  "A52_risk_enable": false,
  "enableSMB_with_COB": false,
  "enableSMB_with_temptarget": false,
  "enableSMB_always": false,
  "enableSMB_after_carbs": false,
  "allowSMB_with_high_temptarget": false,
  "maxSMBBasalMinutes": 30,
  "curve": "rapid-acting",
  "useCustomPeakTime": false,
  "insulinPeakTime": 75,
  "carbsReqThreshold": 1,
  "offline_hotspot": false,
  "dia": 3,
  "model": "522",
  "current_basal": 1.126,
  "basalprofile": [
Dana Lewis
@danamlewis
May 15 2018 01:13
It looks like you also had a value error. Resolves on next good pump read. Has it been >20 min since setup and is that still in your logs?
Boris and Kayley Raskin
@boryanvbu
May 15 2018 01:19
I've been running for a few days now and have been getting these value errors. That was going to be my next question :) Preflight also seems to be failing often, not sure if that's related. Just replaced the pump battery too, will let you know if that makes a difference. @danamlewis @scottleibrand
kenkotch
@kenkotch
May 15 2018 02:25
hey, im looking for some advice on this. my rig is successfully looping but I get no pump data on nitescout. here's the error in my logs:
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!) Preflight mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low? fail. Retrying preflight Preflight mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low? OK. Profile less than 60m old; Profile valid. RefreshIndexError: bytearray index out of range Retrying invoke_pumphistory_etc IndexError: bytearray index out of range Couldn't invoke_pumphistory_etc - continuing Retrying monitor_pump IndexError: bytearray index out of range Retrying invoke_pumphistory_etc IndexError: bytearray index out of range Couldn't invoke_pumphistory_etc - continuing Couldn't monitor_pump - continuing Couldn't refresh_pumphistory_and_meal oref0-pump-loop failed. Unsuccessful oref0-pump-loop at Mon May 14 20:21:38 MDT 2018
then: Starting oref0-pump-loop at Mon May 14 20:22:02 MDT 2018 with 15 second wait_for_silence: Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!) Preflight fail. Retrying preflight Preflight OK. Profile less than 60m old; Profile valid. RefreshValueError: need more than 0 values to unpack Retrying invoke_pumphistory_etc IndexError: bytearray index out of range Couldn't invoke_pumphistory_etc - continuing Retrying monitor_pump ValueError: need more than 0 values to unpack Retrying invoke_pumphistory_etc ^[ValueError: need more than 0 values to unpack Couldn't invoke_pumphistory_etc - continuing Couldn't monitor_pump - continuing Couldn't refresh_pumphistory_and_meal oref0-pump-loop failed. Unsuccessful oref0-pump-loop at Mon May 14 20:23:16 MDT 2018
Screen Shot 2018-05-14 at 8.23.01 PM.png
Dana Lewis
@danamlewis
May 15 2018 02:30
Those errors reflect that it's not getting a good read of the pump. I'm surprised it's looping. When was the last temp set?
kenkotch
@kenkotch
May 15 2018 02:41
its been doing this for a few days. currently im half way through a 30min temp
Boris and Kayley Raskin
@boryanvbu
May 15 2018 02:44
10:23pm EDT (20 min ago) and the last time it ran before that was 9:53pm. There are a lot of preflight failures since then and in between. Looks very similar to the errors that @kenkotch is getting actually.
Dana Lewis
@danamlewis
May 15 2018 02:48
What version are ya'll running?
kenkotch
@kenkotch
May 15 2018 02:50
checking
0.6.0, master...up to date
Dana Lewis
@danamlewis
May 15 2018 02:51
K
kenkotch
@kenkotch
May 15 2018 02:59
it is strange, this rig has been working flawlessly for weeks. I havent changed a thing
Dana Lewis
@danamlewis
May 15 2018 03:01
@kenkotch re NS not uploading, did you review everything on the troubleshooting NS-rig page?
kenkotch
@kenkotch
May 15 2018 03:02
Everything. maybe not. I'll go take another look.
Boris and Kayley Raskin
@boryanvbu
May 15 2018 03:02
we're also on 0.6.0, master
Dana Lewis
@danamlewis
May 15 2018 03:04
We're about to release 0.6.1, so if you wanted, you could try switching to dev and see if it resolves your problems since it's a new rig. @boryanvbu
Boris and Kayley Raskin
@boryanvbu
May 15 2018 03:20
Cool! We will try that and let you know if it works.
Dana Lewis
@danamlewis
May 15 2018 03:26
:+1:
jquitos
@jquitos
May 15 2018 03:31
@scottleibrand will do. Thanks!
kenkotch
@kenkotch
May 15 2018 03:41
Thanks @danamlewis I'm thinking it is an mlab size issue. donating data, then I'll clear it
drmartinezs
@drmartinezs
May 15 2018 04:16
Do these affect for looping?: Your Papertrail service for "——" has reached 90% of its included log data transfer of 10 MB for today.
Dana Lewis
@danamlewis
May 15 2018 04:25
No
drmartinezs
@drmartinezs
May 15 2018 04:29
thanks
Boris and Kayley Raskin
@boryanvbu
May 15 2018 04:33
@scottleibrand @danamlewis. I updated to dev 0.6.1. I may have figured out why the profile.json wasn't updating with the settings from preferences.json. It was due to a sudo unable to resolve host error. Had to update host name in /etc/hosts and now profile.json is updated. Preflight still appears to be failing though :(
Scott Leibrand
@scottleibrand
May 15 2018 04:34
the sudo thing is not an error, just a warning, and shouldn't have affected it. the profile.json won't update if it can't pull pump settings, FWIW
do you have the pump serial number and region (NA vs. WW) correct?
Boris and Kayley Raskin
@boryanvbu
May 15 2018 04:38
pump serial number is correct and I ran the setup script with --radio_locale='US'. Loop runs successfully once about every 30 minutes and fails a bunch of times in between.
Scott Leibrand
@scottleibrand
May 15 2018 04:41
what rssi and frequency do you get from mmtune when the rig is sitting right next to the pump?
Boris and Kayley Raskin
@boryanvbu
May 15 2018 04:46
mmtune says "916.636", 0, -99. How do I get the rssi?
yes, rig is right next to pump
Scott Leibrand
@scottleibrand
May 15 2018 04:48
-99 is the rssi
that means it's not communicating at all
is the pump battery fresh with a full charge? if so, next step is probably to try different hardware. do you have a second rig or a backup pump?
Dana Lewis
@danamlewis
May 15 2018 04:50
And check, is edison seated well on the board?
Boris and Kayley Raskin
@boryanvbu
May 15 2018 04:54
hang on, just realized had the wrong rig next to the pump. This is what happens at 1 am :P Let me see if preflight works now. We have an older rig which is beat up and is getting subg_rfspy errors which is why I'm setting up a new one.
now mmtune is returning "916.636", 5, -79!
Scott Leibrand
@scottleibrand
May 15 2018 04:58
:+1:
Boris and Kayley Raskin
@boryanvbu
May 15 2018 04:59
CGM stopped working, so BG data is too old. Will have to replace the Dexcom now and probably won't know if the loop will work until after the 2 hours :/
Thanks for your help Scott and Dana! You two are awesome for always being there with help and advice. Will have to get back to it tomorrow
Dana Lewis
@danamlewis
May 15 2018 05:08
:+1: have (as good of a night as is possible)!
hamishsprocket
@hamishsprocket
May 15 2018 08:41
I am trying to set up papertrail but have been unable to get it working. I've pasted the error I'm getting below. Any help is greatly appreciated root@sprocketsrig:~/remote_syslog# sudo remote_syslog
2018-05-15 08:24:02 CRITICAL remote_syslog.go:244 Failed to start server: No destination hostname specified
root@sprocketsrig:~/remote_syslog#
garykidd
@garykidd
May 15 2018 16:04
Are folks using dex G6...is there support for it?
garykidd
@garykidd
May 15 2018 16:41
is anyone else out there experiencing periods where NS indicates UNKNOWN on OpenAPS pill (as well as no update for Pump pill)......This has now happened several times. The only way that I have found to resolve the issue is to delete treatments from NS utility. Appreciate any feedback.
Scott Leibrand
@scottleibrand
May 15 2018 16:50
have you tried setting up a new NS site so you can switch back and forth and see if the problem stays with NS or with your OpenAPS rig?
garykidd
@garykidd
May 15 2018 17:00
I didnt but I have 4 active rigs all of which use same NS instance and none is able to upload the info successfully to NS in this situation. Would it still be useful to create alternate NS instance? If so, I can try when it happens again---I suspect it will.
Kate Farnsworth
@ELUTE
May 15 2018 17:00
Answer offered in CGMITC
Dana Lewis
@danamlewis
May 15 2018 17:01
@garykidd do all your ns-loop logs have the same error?
garykidd
@garykidd
May 15 2018 17:04
@ELUTE never exceeded 496...sorry my computer had bad internet connection.
@danamlewis are you referring to No IOB error within the ns-loop log?
@danamlewis that section is helpful...and ultimately it was the cleanout that was the only method to solve...but it does have its disadvantages.
Dana Lewis
@danamlewis
May 15 2018 17:08
@garykidd do all 4 of your rig logs for ns-loop look the same? same error? if so, can you paste a copy of the error? if not, can you paste a copy of each error?
garykidd
@garykidd
May 15 2018 17:20
I'm not sure logs are actually showing any error at all
Milos Kozak
@MilosKozak
May 15 2018 17:33
trying to create new test setup on RPI witn carelink stick
oref0 template mint reports medtronic-pump doesn't return anything
ideas?
Dana Lewis
@danamlewis
May 15 2018 17:33
@MilosKozak what branch are you using?
@garykidd what do your ns-loop-logs say?
Milos Kozak
@MilosKozak
May 15 2018 17:35
pi@rpi:~/myopenaps $ openaps --version
openaps 0.1.5
Dana Lewis
@danamlewis
May 15 2018 17:35
sorry, I meant oref0!
there were some tweaks in dev (about to be 0.6.1) to support carelink usage again, but I haven't tested those myself, but if you're not on dev I'd try dev
Milos Kozak
@MilosKozak
May 15 2018 17:35
i installed using script on fresh system ... so i expect master
how do i detect master or dev?
Dana Lewis
@danamlewis
May 15 2018 17:39
cd ~/src/oref0 and git branch
if you used the automated script, you got master
(or planning to do the release this afternoon, so you can pull a fresh master after that)
Milos Kozak
@MilosKozak
May 15 2018 17:41
hmmm looks like using script doesn't use clone. there is no .git
garykidd
@garykidd
May 15 2018 17:43
Starting oref0-ns-loop at Tue May 15 08:18:01 EDT 2018:
Glucose file is fresh
{"glucose":94,"dateString":"2018-05-15T08:16:03-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Refreshed carbhistory; COB: 0
{"batteryVoltage":3666,"battery":48}
[{"duration":0,"bolus":{"programmed":0.1,"_type":"Bolus","_description":"Bolus 2018-05-15T08:17:08 head[8], body[0] op[0x01]","timestamp":"2018-05-15T08:17:08-04:00","_body":"","_head":"0100040004006400","amount":0.1,"unabsorbed":2.5,"duration":0,"type":"normal","_date":"4851284f12"},"timestamp":"2018-05-15T08:17:08-04:00","created_at":"2018-05-15T08:17:08-04:00","eventType":"Correction Bolus","insulin":0.1,"notes":"Normal bolus (solo, no bolus wizard).\nCalculated IOB: 1.389\nProgrammed bolus 0.1\nDelivered bolus 0.1\nPercent delivered:  100%","medtronic":"mm://openaps/mm-format-ns-treatments/Correction Bolus","enteredBy":"openaps://medtronic/723","_id":"5afad00c7f0b0ad077ff8d10"},{"duration":30,"raw_duration":{"_type":"TempBasalDuration","_description":"TempBasalDuration 2018-05-15T08:16:40 head[2], body[0] op[0x16]","timestamp":"2018-05-15T08:16:40-04:00","_body":"","_head":"1601","duration (min)":30,"_date":"6850084f12"},"timestamp":"2018-05-15T08:16:40-04:00","absolute":0.375,"rate":0.375,"raw_rate":{"_type":"TempBasal","temp":"absolute","_description":"TempBasal 2018-05-15T08:16:40 head[2], body[1] op[0x33]","timestamp":"2018-05-15T08:16:40-04:00","_body":"00","_head":"330f","rate":0.375,"_date":"6850084f12"},"eventType":"Temp Basal","medtronic":"mm://openaps/mm-format-ns-treatments/Temp Basal","created_at":"2018-05-15T08:16:40-04:00","enteredBy":"openaps://medtronic/723","_id":"5afad00c7f0b0ad077ff8d12"}]
Completed oref0-ns-loop at Tue May 15 08:18:20 EDT 2018

Starting oref0-ns-loop at Tue May 15 08:19:02 EDT 2018:
Glucose file is fresh
{"glucose":94,"dateString":"2018-05-15T08:16:03-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Refreshed carbhistory; COB: 0
{"batteryVoltage":3679,"battery":50}
No new treatments to upload
Completed oref0-ns-loop at Tue May 15 08:19:19 EDT 2018

Starting oref0-ns-loop at Tue May 15 08:20:02 EDT 2018:
Glucose file is fresh
{"glucose":94,"dateString":"2018-05-15T08:16:03-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Refreshed carbhistory; COB: 0
{"batteryVoltage":3662,"battery":47}
No new treatments to upload
Completed oref0-ns-loop at Tue May 15 08:20:22 EDT 2018

Starting oref0-ns-loop at Tue May 15 08:21:01 EDT 2018:
Glucose file is fresh
{"glucose":94,"dateString":"2018-05-15T08:16:03-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Refreshed carbhistory; COB: 0
{"batteryVoltage":3679,"battery":50}
No new treatments to upload
Completed oref0-ns-loop at Tue May 15 08:21:20 EDT 2018

Starting oref0-ns-loop at Tue May 15 08:22:02 EDT 2018:
Found recent valid BG:
{"glucose":71,"dateString":"2018-05-15T08:21:04-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Refreshed carbhistory; COB: 0
{"batteryVoltage":3671,"battery":49}
No new treatments to upload
Completed oref0-ns-loop at Tue May 15 08:22:22 EDT 2018

Starting oref0-ns-loop at Tue May 15 08:23:02 EDT 2018:
Glucose file is fresh
{"glucose":71,"dateString":"2018-05-15T08:21:04-04:00"}
Latest NS temptargets: {"target":80,"duration":90,"start":"2018-05-14T15:26:25.301Z"}
Merging local temptargets: Temptargets merged: {"t
garykidd
@garykidd
May 15 2018 17:49
didnt even no G6 was out yet--looks very cool.
Milos Kozak
@MilosKozak
May 15 2018 17:50
oref0 is installed to /usr/local/lib/node_modules/oref0 without git
Scott Leibrand
@scottleibrand
May 15 2018 17:56
@MilosKozak the commands you're trying are legacy from the pre-oref0-setup days
we no longer use mint
and we use openaps with --no-git
Scott Leibrand
@scottleibrand
May 15 2018 17:58
those are the old manual instructions. try starting from the top
Milos Kozak
@MilosKozak
May 15 2018 17:59
ok. i'll create fresh SD card
thanks
Scott Leibrand
@scottleibrand
May 15 2018 17:59
:+1:
garykidd
@garykidd
May 15 2018 18:44
@danamlewis I rolled my 0.7.0 rigs back to 0.6.1 dev....they did seem to work fine though for 24 hours or so.
Jon Cluck
@cluckj
May 15 2018 19:32
Woo!
Milos Kozak
@MilosKozak
May 15 2018 19:42
it looks like the setup is different for rpi and carelink stick. directories are on different places than described in docs and setup didn't run well :(
Jon Cluck
@cluckj
May 15 2018 19:42
:clap: :clap: :clap:
the carelink docs are probably way outdated
Dana Lewis
@danamlewis
May 15 2018 19:44
in 0.6.1, someone updated things to work w/ setup script for carelink; but i don't know that they were starting with a fresh Pi so that wouldn't surprise me if the Pi docs need some other tweaks for carelink
Milos Kozak
@MilosKozak
May 15 2018 19:45
is there another way to run oref1 ? for example on virtual pc and virtual pump? i don't have edison :(
Scott Leibrand
@scottleibrand
May 15 2018 19:46
@MilosKozak yeah, Carelink is deprecated and no longer well documented, but if you run through oref0-setup and don't select the Explorer Board/HAT it will attempt to set it up for carelink I believe
there'll probably be some tweaks needed to get it working again with Carelink
Milos Kozak
@MilosKozak
May 15 2018 19:47
openaps use pump read_clock works but oref0-pump-loop not
Scott Leibrand
@scottleibrand
May 15 2018 19:47
@MilosKozak you'll probably want to update to 0.6.1 that @danamlewis just released 15m ago if you haven't already
Dana Lewis
@danamlewis
May 15 2018 19:47
(same as dev, though, which I think he switched to in between me saying that & me getting to the release)
Scott Leibrand
@scottleibrand
May 15 2018 19:47
:+1:
Milos Kozak
@MilosKozak
May 15 2018 19:48
root@raspberrypi:~/myopenaps# openaps --version
openaps 0.2.1-dev
Scott Leibrand
@scottleibrand
May 15 2018 20:02
openaps is the pump comms toolkit. oref0 is the algorithms etc. You can check oref0 version with npm list -g oref0 or similar
Milos Kozak
@MilosKozak
May 15 2018 20:15
Starting oref0-pump-loop at Tue May 15 22:13:09 CEST 2018 with 19 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial
Listening for 40s silence before mmtuning: .....
Scott Leibrand
@scottleibrand
May 15 2018 20:16
function mmtune {
    if grep "carelink" pump.ini 2>&1 >/dev/null; then
    echo "using carelink; skipping mmtune"
        return
    fi
what does your ~/myopenaps/pump.ini have?
Milos Kozak
@MilosKozak
May 15 2018 20:17
root@raspberrypi:~/myopenaps# cat pump.ini
[device "pump"]
serial = 678734
radio_locale = US
Scott Leibrand
@scottleibrand
May 15 2018 20:17
ok, try adding a carelink in there somewhere
Milos Kozak
@MilosKozak
May 15 2018 20:19
added carelink = on
and it looks much better
root@raspberrypi:~/myopenaps# oref0-pump-loop

Starting oref0-pump-loop at Tue May 15 22:18:43 CEST 2018 with 9 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
using carelink; not waiting for silence
Preflight OK. Old pumphistory-24h, waiting for 9 seconds of silence: using carelink; not waiting for silence
Old pumphistory-24h refreshed
Old settings: Pump profile refreshed; Could not parse autotune_data
Settings refreshed; Profile valid. Refreshed pumphistory and meal.json
Checking pump clock: "2018-05-15T22:18:46+02:00" is within 90s of current time: Tue May 15 22:19:45 CEST 2018
Pump clock is more than 55s off: attempting to reset it
/usr/local/bin/oref0-set-device-clocks: line 44: ntp-wait: command not found
sudo: unable to resolve host raspberrypi: Connection timed out
sudo: /etc/init.d/ntp: command not found
Temp refreshed
Warning: Autotune has not been run. All microboluses will be disabled until you manually run autotune or add it to run nightly in your loop.
{"carbs":0,"nsCarbs":0,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":-0.43,"maxDeviation":2.78,"minDeviation":-2.18,"slopeFromMaxDeviation":-0.697,"slopeFromMinDeviation":1.091,"allDeviations":[0,-2,2,0,3,0],"lastCarbTime":0,"bwFound":false}
Optional feature Auto Sensitivity enabled.  Could not find specified auto-sens: settings/autosens.json
{ [Error: ENOENT: no such file or directory, open 'settings/autosens.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'settings/autosens.json' }
{"iob":0.089,"activity":0.0022,"basaliob":0.001,"bolusiob":0.088,"netbasalinsulin":0.05,"bolusinsulin":1,"time":"2018-05-15T20:18:51.000Z","iobWithZeroTemp":{"iob":0.089,"activity":0.0022,"basaliob":0.001,"bolusiob":0.088,"netbasalinsulin":0.05,"bolusinsulin":1,"time":"2018-05-15T20:18:51.000Z"},"lastBolusTime":1526403107000,"lastTemp":{"rate":0.325,"timestamp":"2018-05-15T18:03:33+02:00","started_at":"2018-05-15T16:03:33.000Z","date":1526400213000,"duration":30}}
{"delta":0,"glucose":114,"noise":null,"short_avgdelta":-2.11,"long_avgdelta":-3.02,"date":1526415328000}
Autosens ratio: 1; Basal unchanged: 0.3; ISF unchanged: 252; CR: 28
currenttemp: { duration: 0, rate: 0.325, temp: 'absolute' } lastTempAge: 256 m tempModulus: 16 m
SMB disabled (!microBolusAllowed)
Carb Impact: 0.7 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 0 mg/dL per 5m
UAM Impact: 0.7 mg/dL per 5m; UAM Duration: 0 hours
minPredBG: 94 minIOBPredBG: 94 minZTGuardBG: 98 minUAMPredBG: 90 avgPredBG: 98 COB: 0 / 0
BG projected to remain above 6.0 for 20 minutes
BG projected to remain above 4.1 for 240 minutes
naive_eventualBG: 92 bgUndershoot: -18 zeroTempDuration: 240 zeroTempEffect: 302 carbsReq: -36
undefined 19
2018-05-15T20:19:53.750Z
Checking deliverAt: 2018-05-15T20:19:53.750Z is within 1m of current time: Tue May 15 22:19:53 CEST 2018
and that smb-suggested.json is less than 1m old
enact/smb-suggested.json: {"temp":"absolute","bg":114,"tick":"+0","eventualBG":96,"insulinReq":0,"reservoir":"158.8","deliverAt":"2018-05-15T20:19:53.750Z","sensitivityRatio":1,"predBGs":{"IOB":[114,112,110,108,106,105,103,102,101,100,99,98,97,96,95,95,95,94],"ZT":[114,111,109,106,104,103,101,100,99,98,98,98,98,99,100,101,102,104,106,108],"UAM":[114,111,109,106,104,102,100,99,97,96,95,94,93,92,92,91,91,90]},"COB":0,"IOB":0.089,"reason":"COB: 0, Dev: 0.2, BGI: -0.2, ISF: 14.0, CR: 28, Target: 6.0, minPredBG 5.2, minGuardBG 5.0, IOBpredBG 5.2, UAMpredBG 5.0; Eventual BG 5.3 < 6.0, setting 0.1U/hr. ","duration":30,"rate":0.1}
Temp refreshed: monitor/temp_basal.json: {"duration":0,"rate":0.325,"temp":"absolute"}
rm: cannot remove 'enact/smb-enacted.json': No such file or directory
enact/smb-enacted.json: "Rate: 0.1 Duration: 30"
Temp refreshed: monitor/temp_basal.json: {"duration":30,"rate":0.1,"temp":"absolute"}
No bolus needed. Settings less than 15 minutes old. Edison battery level not found. Pumphistory-24 < 15m old
Settings less than 3 minutes old. Refreshed pumphistory and meal.json
IOB: 0.08
Scott Leibrand
@scottleibrand
May 15 2018 20:22
cool. could you PR something in to the docs noting that carelink users will need to edit their pump.ini like that?
Milos Kozak
@MilosKozak
May 15 2018 20:22
thx @scottleibrand . temp basal set on pump
Scott Leibrand
@scottleibrand
May 15 2018 20:22
:+1:
Dana Lewis
@danamlewis
May 15 2018 20:24
:clap:
Milos Kozak
@MilosKozak
May 15 2018 20:28
openaps/docs#1276
Dana Lewis
@danamlewis
May 15 2018 20:29
Merged! Thanks :+1:
Dana Lewis
@danamlewis
May 15 2018 20:35
anyone want to play with mLab API for cleaning out data (vs deleting everything)? https://github.com/cascer1/docs/blob/767d4e7cd1e353be0df3c2979e391733a8353c9f/docs/docs/Troubleshooting/Rig-NS-communications-troubleshooting.md#mlab-api <-- new section there. Please comment on the PR (openaps/docs#1266) if that works well for you!
@garykidd ^^ might be a good one for you to try?
Milos Kozak
@MilosKozak
May 15 2018 20:59
where to look when status is not uploaded? TRB yes
Scott Leibrand
@scottleibrand
May 15 2018 21:03
NS uploads are logged in /var/log/openaps/ns-loop.log
Milos Kozak
@MilosKozak
May 15 2018 21:04
no error there
Starting ns-loop at Tue 15 May 23:02:02 CEST 2018:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
ns://JSON/shell/settings/temptargets.json
reporting settings/temptargets.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
Refreshed temptargetsns://JSON/shell/monitor/carbhistory.json
reporting monitor/carbhistory.json
 and meal-carbs

Uploaded
Scott Leibrand
@scottleibrand
May 15 2018 21:05
what CGM source did you configure?
Milos Kozak
@MilosKozak
May 15 2018 21:05
xdrip
but pulling only NS
Scott Leibrand
@scottleibrand
May 15 2018 21:06
k, then I would reconfigure with a different CGM. the xdripAPS config still uses the old openaps ns-loop, not the newer oref0-ns-loop with better logging
also double-check your NS URL and API secret
Milos Kozak
@MilosKozak
May 15 2018 21:06
temp basals are uploaded
Scott Leibrand
@scottleibrand
May 15 2018 21:06
ok, then URL etc. are probably correct.
still worth reconfiguring to get better logging
also double-check the size of your devicestatus collection if you're using a free mlab from heroku or whatever
there's an openaps docs page on troubleshooting NS upload stuff too
Milos Kozak
@MilosKozak
May 15 2018 21:07
which one should i choose when i use only NS?
Scott Leibrand
@scottleibrand
May 15 2018 21:07
just hit enter, and let it default to G4 or whatever
they all fall back to NS the same way
Milos Kozak
@MilosKozak
May 15 2018 21:12
that was it :+1: thx
Scott Leibrand
@scottleibrand
May 15 2018 21:12
odd, I wonder what was broke with the xdripaps config in your setup
Milos Kozak
@MilosKozak
May 15 2018 21:14
i didn't change anything manually. only run oref0-setup so far
Scott Leibrand
@scottleibrand
May 15 2018 21:14
in any event, xdripaps is getting switched over to oref0-ns-loop in 0.7.0-dev I believe, so I'm not too concerned about troubleshooting the legacy stuff if you got it working
Dana Lewis
@danamlewis
May 15 2018 21:15
Two things to note on this updated pump page: 1) @statuur is awesome and has worked on an updated flowchart for compatible pumps! Yay and thank you! 2) I figured out how to have a collapsible drop down menu in the docs now :raised_hands: , which you can see for example in this sub-section on tips for finding and purchasing pumps. I've also added it in a few other places throughout the docs. If you see a section like that could/should be converted to a collapsible section, feel free to either PR it or let me know.
Milos Kozak
@MilosKozak
May 15 2018 21:16
my setup is probably not the common one. all i need is compare results with AAPS
Dana Lewis
@danamlewis
May 15 2018 21:16
(and in case you like it, you can use that collapsible drop down on regular Github content, too, like PRs, etc.)
Scott Leibrand
@scottleibrand
May 15 2018 21:17
@MilosKozak :+1:
statuur
@statuur
May 15 2018 21:54
@danamlewis the least i can do, i'll look into the typo in the pump number tomorrow. I'dd like to contribute on the native push notification for the nigthscout server side also. Have some private stuff to deal with, but will come back to that very shortly i hope.
hkorer
@hkorer
May 15 2018 21:58
@danamlewis thanks for updating 0.6.1, we actually just got it set up from dev the other day. However, when trying the pump suspend during his bath today, NS was still showing increased basal? Is there a particular preference we need to set up to zero temp while on suspend?
Dana Lewis
@danamlewis
May 15 2018 21:59
@statuur :+1:
@hkorer it may still display in NS as the temp is running; but OpenAPS should correctly calculate the IOB as zero (I think it's default now, but if you don't zero temp, you'll probably want to turn off unsuspend-if-no-temp, so it doesn't unsuspend the pump if there's not temp running and issue SMB while disconnected)
I didn't test that one personally, though, so someone else may chime in re that behavior
hkorer
@hkorer
May 15 2018 22:07
@danamlewis thanks, I’ll have a look at IOB behaviour next time. I think we have the unsuspend if no temp off anyway, so that shouldn’t be an issue.
Dana Lewis
@danamlewis
May 15 2018 22:08
:+1:
garykidd
@garykidd
May 15 2018 22:50
@scottleibrand if I ran setup script selecting G5 as CGM parameter...is it pulling BG from NS?
Scott Leibrand
@scottleibrand
May 15 2018 22:53
all configs always pull BGs from NS
they also try to pull BGs locally, and then decide which is more recent, and use that
garykidd
@garykidd
May 15 2018 22:58
and can rig pull locally w/ G5 election?
Scott Leibrand
@scottleibrand
May 15 2018 22:58
depends: did you plug it in?
or did you install xdrip-js / lookout?
garykidd
@garykidd
May 15 2018 22:59
so just needs to be physically plugged in...or in conjuction with xdrip_js / lookout?
Scott Leibrand
@scottleibrand
May 15 2018 23:00
those are two different options
plug in the receiver with a USB OTG cable, and the g5 option on the rig will pull from it
garykidd
@garykidd
May 15 2018 23:00
right--understood.
Scott Leibrand
@scottleibrand
May 15 2018 23:00
or set up xdrip_js / lookout if you want to do it over BLE from the transmitter to the rig
garykidd
@garykidd
May 15 2018 23:01
and xdrip_js/lookout works with G5
Scott Leibrand
@scottleibrand
May 15 2018 23:02
time to RTD
garykidd
@garykidd
May 15 2018 23:02
OK---I know it's dated stuff already now
last question for a while...what about dex g6?
garykidd
@garykidd
May 15 2018 23:09
I just saw an ad on TV last night for dex g6 but not sure how similar it is to G5...but more curious about plans/ability to use G6 w/ OpenAPS?
garykidd
@garykidd
May 15 2018 23:29
I re-read that section can I ask another question now?
Scott Leibrand
@scottleibrand
May 15 2018 23:39
g6 will probably be usable much like the g5 once some people get their hands on them. in the mean time it should work via NS at least. that's about all we can guess.
garykidd
@garykidd
May 15 2018 23:40
yeah---really cool...zero finger pricks
10d sensor life
I just re-installed 0.6.1 on rig and with xdrip as CGM option...
Scott Leibrand
@scottleibrand
May 15 2018 23:41
unclear if you'll be able to restart G6 sensors or not. it's not as easy, for sure.
garykidd
@garykidd
May 15 2018 23:43
I just re-installed 0.6.1 on rig and with xdrip as CGM option-- assuming you need to enable hotspot..is that right?
for offline looping
garykidd
@garykidd
May 15 2018 23:54
...actually thinking that's not right...
THe more I think about it the more I can see the simplicity of just plugging in a receiver to rig