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

5th
Jul 2017
gregtcm
@gregtcm
Jul 05 2017 00:09
@scottleibrand Ran a fresh oref0-setup.sh and got the same error. Any thoughts?
Scott Leibrand
@scottleibrand
Jul 05 2017 00:36
@Bender1061 it usually means the directory you're in isn't a valid git repo. Do you have an extra .git in ~/ ?
John Benjamin
@Bender1061
Jul 05 2017 00:42
@scottleibrand directory was deleted completely before I started. But I believe it's something wrong with my edison. I'll reflash it later. Working with a different rig now
Scott Leibrand
@scottleibrand
Jul 05 2017 00:43
No, I was asking about ~/.git not ~/johnopenaps/.git/
John Benjamin
@Bender1061
Jul 05 2017 01:42
that would make a bit more sense.
I'll have to look later when I plug that edison back in
PieterGit
@PieterGit
Jul 05 2017 05:16
@gregctm: i never seen the error you list in https://gitter.im/nightscout/intend-to-bolus?at=595c26c5bf7e6af22ca4e719, I don't think it's a autoconfigure-device-crud / token based authentication error, but somehow a git issue on the rig. Does your API_SECRET start with token=, because then we know if your using token based authentication or plain API_SECRET authentication.
gregtcm
@gregtcm
Jul 05 2017 06:25
@PieterGit No, it doesn't. I initially ran the oref0-runagain.sh, but when that threw the error, I then wondered if there might be something new and/or different in the latest oref0-setup.sh. I looked it over and I didn't notice anything that might be different, but I ran it anyway with the same results. This was all prompted by an error that happened in my looping a few days ago. I think that underlying issue is still the problem. I guess I should have reached out for help then rather than try to fix it on my own by re-running the setup. (Although that has fixed issues in the past.) That is a good idea, though, that it might be a git issue. I'll look into that before I do a complete wipe and re-install. Thank you for your thoughts!
sdneufer
@sdneufer
Jul 05 2017 06:32
Has the pi zero-W been used much for openaps? We have seen the reports that Intel will stop selling the Edison after Sept 16th. https://m.slashdot.org/story/327703. We will try to buy a couple more backups before they disappear completely however we wondered what are the other options.
John Sjolund
@sjolundjohn
Jul 05 2017 06:35
@danamlewis I have been testing oref1 for the last few days. I can't see any evidence in Nightscout of SMB. All settings activated in preferences. Could I be missing something simple?
@jkelleher I struggle to remember what the problem was. I think that it was requiring to get carbs from Nightscount, but I didn't ever input carbs in Nightscout, so it created problems
I think by removing the requirement for Carbs in profile.json it may have solved it
PieterGit
@PieterGit
Jul 05 2017 07:45
@gregtcm did you run npm run global-install?
marafie
@marafie
Jul 05 2017 09:32
Is their a way to enable AMA without running setup again ?
Matthias
@ceben80
Jul 05 2017 10:50
@marafie AMA relies on different settings in openaps.ini e.g. device, report, alias... the recommended way is re-run the setup :wink:
tynbendad
@tynbendad
Jul 05 2017 11:03
@sjolundjohn the new (dev branch) oref0-setup asks you about enabling them... have you read http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/oref1-features.html ?
marafie
@marafie
Jul 05 2017 11:24
@ceben80 do I run the setup in the normal way?
And when it asks about AMA i select yes
Matthias
@ceben80
Jul 05 2017 11:31
Should work so, yes....are you running master or dev? AFAIK AMA is master included per default
marafie
@marafie
Jul 05 2017 11:40
How can I know what I am running ?
I am running the one based on the instructions in the website
Now I am thinking of oref1
I need it co I am not accurate in calculating the conversation ratio between protein and fats to carbs
Coz
When I was fasting during the month of ramathan I had a specific meal for the whole month and I was able to calculate all properly .... now I am back to random food which it's hard to calculate .... for example I had smoked taxes style short ribs ..... it was really hard to get the BG down
Matthias
@ceben80
Jul 05 2017 11:49
git status in ~/src/oref0
Dana Lewis
@danamlewis
Jul 05 2017 12:09
@sjolundjohn probably skipped manually enabling, too. You can either manually add to enable line, or pull a fresh copy of dev and oref0-setup will now prompt with instructions on how to add.
@ceben80 FYI master does not have AMA on by default. But dev as of a few days ago does now.
@sdneufer the community is still investigating the next best hardware option for future rigs, but plenty of Edisons til end of year so still will be supported for a good long while.
John Sjolund
@sjolundjohn
Jul 05 2017 12:20
@danamlewis ok thanks - I think I manually added every advanced and new feature during setup (and also ensured values are set to true in preferences.json" but will give it another go and report back
Dana Lewis
@danamlewis
Jul 05 2017 12:22
You also (prior to a few days ago) had to enable it manually
Docs now reflect the new way to set up, so you'll want to repull and rerun setup and read the oref1 page closely
Dana Lewis
@danamlewis
Jul 05 2017 13:21
@marafie git branch will tell you which branch you’re on, but irrelevant for the Q above.
Matthias
@ceben80
Jul 05 2017 13:32
@danamlewis Ohh I thought (master and AMA), my bad...thx for clarification :wink:
I need vacation from looping stuff :smile:
Dana Lewis
@danamlewis
Jul 05 2017 13:40
enjoy your real vacation ;)
Dirk Gastaldo
@dirkgastaldo
Jul 05 2017 13:46
Good morning. I was testing Termius on my phone last night and I might have messed up my wpa_supplicant.conf file trying to exit the edit. Is this the only text in the supplicant.conf file (screenshot below)?
image.png
Andrew Baugh
@baughaw
Jul 05 2017 14:07
Is this an Error or an informational item?
RefreshError: carb_ratio 0.359 out of bounds
Dana Lewis
@danamlewis
Jul 05 2017 14:45
@baughaw might be related to openaps/decocare#27
marafie
@marafie
Jul 05 2017 14:54
@danamlewis I am using master
Dana Lewis
@danamlewis
Jul 05 2017 14:54
@marafie k. then yes, you’ll need to manually enable AMA, it’s under advanced settings in oref0-setup.sh
marafie
@marafie
Jul 05 2017 14:55
What about oref1
Dana Lewis
@danamlewis
Jul 05 2017 14:55
that’s in dev
marafie
@marafie
Jul 05 2017 14:55
How can I get it?
Do I need to enable AMA to use oref1?
Dana Lewis
@danamlewis
Jul 05 2017 14:56
no
AMA is it’s own thing. unrelated to oref1
oref1 is in dev. follow the instructions for installing dev in step 1 http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html and then re-do step 2 (oref0-setup.sh) and follow the instructions in the advanced features menu for enabling oref1-related features
bjarecki
@bjarecki
Jul 05 2017 15:07
Anyone out there using a Pixel to Bluetooth tether their rig? I have been having issues since my recent update keeping Bluetooth tethering active. It works for a few minutes than is shut off. Worse yet all the apps that used to keep it active like BTAutoTethering do not work anymore. Anyone solved this problem my rig is basically useless now.
Andrew Baugh
@baughaw
Jul 05 2017 15:10
@danamlewis Thanks!
cameronrenwick
@cameronrenwick
Jul 05 2017 15:33
hey everyone... little thought regarding SMB. I'd encourage people to make sure that they've got a "goldilocks" sensor (not too old, not to new; very reliable) running before you bring on SMB. I just started with SMB on the weekend and my sensor, while only 10 days old, was giving me a fair bit of noise. As I'm also running fiasp it made for a bumpy first few days. Just started a new sensor today and things are waay smoother but something that should be intuitive didn't occur to me until I was hi then low then really high then.... anyway, fwiw, my 2 cents!
garykidd
@garykidd
Jul 05 2017 16:00
any obvious areas to check relating to bluetooth tethering via android....my rig keeps connecting and shortly therafter disconnecting....temporarily flashes it's conencted to Bluez5.44 as well....then cycles through again and again??
Eric
@ecc1
Jul 05 2017 16:34
Check the messages in the system log. And verify that your phone actually supports BT tethering (not all do), and that it's turned on. Try the bt-pan client XX:XX:... command in the docs by hand to see if that works, and whether bnep0 shows up when you do ifconfig -a
And this assumes you've successfully done the pairing and trusting described in the docs already.
Tim Street
@tim2000s
Jul 05 2017 17:01
@garykidd also check the phone against the list in the docs.
KS615
@KS615
Jul 05 2017 17:28
Hi all, I re-ran my Oref0 to add UAM and autotune last night. Since that time, I've not received any SMBs anymore. It looks like my preferences are correct, can you advise on what to check next?
{
        "max_iob": 10,
        "max_daily_safety_multiplier": 3,
        "current_basal_safety_multiplier": 4,
        "autosens_max": 1.2,
        "autosens_min": 0.7,
        "rewind_resets_autosens": true,
        "autosens_adjust_targets": true,
        "adv_target_adjustments": true,
        "maxCOB": 120,
        "override_high_target_with_low": false,
        "skip_neutral_temps": false,
        "unsuspend_if_no_temp": false,
        "bolussnooze_dia_divisor": 2,
        "min_5m_carbimpact": 8,
        "carbratio_adjustmentratio": 1,
        "autotune_isf_adjustmentFraction": 0.5,
        "remainingCarbsFraction": 1,
        "remainingCarbsCap": 90,
        "enableUAM": true,
        "enableSMB_with_bolus": true,
        "enableSMB_with_COB": true,
        "enableSMB_with_temptarget": true
}
Scott Leibrand
@scottleibrand
Jul 05 2017 17:29
That answer will always be: check your logs.
KS615
@KS615
Jul 05 2017 17:31
good point, I also checked papertrail logs, and it looked normal last night, but now I'm getting this:
`l 05 13:29:18 edison2 pump-loop.log: TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:29:18 edison2 pump-loop.log: grep: enact/enacted.json: No such file or directory
Jul 05 13:29:18 edison2 pump-loop.log: enact/enacted.json raised unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:29:18 edison2 pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Jul 05 13:29:18 edison2 pump-loop.log: Traceback (most recent call last):
Jul 05 13:29:18 edison2 pump-loop.log: TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:29:18 edison2 pump-loop.log: cat: enact/enacted.json: No such file or directory
Jul 05 13:29:19 edison2 pump-loop.log: Settings less than 10m old
Jul 05 13:29:20 edison2 pump-loop.log: Pumphistory-24 less than 20m old
Jul 05 13:29:20 edison2 pump-loop.log: Completed pump-loop at Wed Jul 5 13:29:20 EDT 2017
Jul 05 13:29:24 edison2 ns-loop.log: ns://JSON/shell/settings/temptargets.json
```
which is why I tried to go into preferences to see if I hadn't enabled it somehow
And now it looks ok again `
Jul 05 13:33:33 edison2 pump-loop.log: UAM Impact: 14.3 mg/dL per 5m; UAM Duration: 0.5 hours
Jul 05 13:33:33 edison2 pump-loop.log: minPredBG: -58 minIOBPredBG: 39 minCOBPredBG: 108 minUAMPredBG: 39 avgPredBG: -58 COB: 52 carbs: 70
Jul 05 13:33:33 edison2 pump-loop.log: BG projected to remain above 98 for 240 minutes
But, my BG is 255 and climbing post meal, with SMBs only (I only enabled SMBs not UAM initially), I stayed mostly under 180 and they would have kicked in by now. I'm sure I'm missing something obvious with enabling UAM, but can't figure out what it is!
Scott Leibrand
@scottleibrand
Jul 05 2017 17:36
You need to capture the reason lines
KS615
@KS615
Jul 05 2017 17:38
ul 05 13:35:22 edison2 pump-loop.log: {"iob":8.725,"activity":0.0424,"bolussnooze":5.539,"basaliob":0.87,"netbasalinsulin":1.85,"hightempinsulin":2,"microBolusInsulin":0,"microBolusIOB":0,"time":"2017-07-05T17:34:50.000Z","lastBolusTime":1499273387000}
Jul 05 13:35:22 edison2 pump-loop.log: {"delta":3,"glucose":255,"short_avgdelta":3.89,"long_avgdelta":11.23}
Jul 05 13:35:22 edison2 pump-loop.log: {"duration":17,"rate":1.425,"temp":"absolute"}
Jul 05 13:35:22 edison2 pump-loop.log: Autosens adjusting basal from 1.05 to 1.1; target_bg from 100 to 98; sens from 53.4 to 50.4 (autosens ratio 1.06)
Jul 05 13:35:22 edison2 pump-loop.log: naive_eventualBG: -185, eventualBG: -103
Jul 05 13:35:22 edison2 pump-loop.log: min_bg unchanged: 98; target_bg unchanged: 98; max_bg unchanged: 98
Jul 05 13:35:22 edison2 pump-loop.log: Carb Impact: 13.7 mg/dL per 5m; CI Duration: 0 hours; remaining 4h+ CI: 0 mg/dL per 5m
Jul 05 13:35:22 edison2 pump-loop.log: Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours
Jul 05 13:35:22 edison2 pump-loop.log: UAM Impact: 14.6 mg/dL per 5m; UAM Duration: 0 hours
Jul 05 13:35:22 edison2 pump-loop.log: minPredBG: -122 minIOBPredBG: 39 avgPredBG: -122 COB: 0 carbs: 0
Jul 05 13:35:22 edison2 pump-loop.log: BG projected to remain above 98 for 75 minutes
Jul 05 13:35:22 edison2 pump-loop.log: bgUndershoot: NaN zeroTempDuration: 75 zeroTempEffect: 66 carbsReq: NaN
Jul 05 13:35:23 edison2 pump-loop.log: determine-basal://text/shell/enact/suggested.json
Jul 05 13:35:23 edison2 pump-loop.log: reporting enact/suggested.json
Jul 05 13:35:23 edison2 pump-loop.log: {"temp":"absolute","bg":255,"tick":"+3","eventualBG":null,"snoozeBG":316,"insulinReq":null,"reservoir":null,"deliverAt":"2017-07-05T17:35:22.528Z","minPredBG":-122,"predBGs":{"IOB":[255,257,257,254,250,244,235,225,213,199,183,164,144,125,106,88,71,55,39],"UAM":[255,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},"COB":0,"IOB":8.725,"reason":"COB: 0, Dev: 82, BGI: -10.68, ISF: 50, Target: 98, minPredBG -122, IOBpredBG 39; Eventual BG NaN >= 98, temp 1.425<NaNU/hr. ","duration":30,"rate":null}
Jul 05 13:35:31 edison2 pump-loop.log: rm: cannot remove ‘enact/enacted.json’: No such file or directory
Jul 05 13:35:31 edison2 pump-loop.log: enact/enacted.json raised unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:35:31 edison2 pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Jul 05 13:35:31 edison2 pump-loop.log: Traceback (most recent call last):
Jul 05 13:35:31 edison2 pump-loop.log: TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:35:31 edison2 pump-loop.log: grep: enact/enacted.json: No such file or directory
Jul 05 13:35:31 edison2 pump-loop.log: enact/enacted.json raised unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:35:31 edison2 pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Jul 05 13:35:31 edison2 pump-loop.log: Traceback (most recent call last):
Jul 05 13:35:31 edison2 pump-loop.log: TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Jul 05 13:35:31 edison2 pump-loop.log: cat: enact/enacted.json: No such file or directory
Jul 05 13:35:46 edison2 pump-loop.log: Settings refreshed
Jul 05 13:36:09 edison2 pump-loop.log: pumphistory-24h refreshError, retrying
Jul 05 13:36:56 edison2 pump-loop.log: Listening: .No pump comms detected from other rigs
Jul 05 13:37:07 edison2 pump-loop.log: mmtune: pump://JSON/mmtune/monitor/mmtune.json
Jul 05 13:37:07 edison2 pump-loop.log: reporting monitor/mmtune.json
Jul 05 13:37:13 edison2 pump-loop.log: "916.540", 5, -79 Starting pump-loop at Wed Jul 5 13:37:13 EDT 2017:
Dana Lewis
@danamlewis
Jul 05 2017 17:39
@KS615 check and see if you still have smb enabled, not just in preferences
KS615
@KS615
Jul 05 2017 17:39
Not sure, but I think that the reasons lines are at the top, no? If no, maybe I'm confused on which lines to capture
ok, that's it, no microbolus or UAM under the enable line
Dana Lewis
@danamlewis
Jul 05 2017 17:40
just mb, no uam there needed
:+1: easy fix
KS615
@KS615
Jul 05 2017 17:41
perfect, thank you!!!
Scott Leibrand
@scottleibrand
Jul 05 2017 17:41
"Completed pump-loop" indicates you haven't enabled SMB in oref0-setup yet.
Not sure if UAM will work without that.
KS615
@KS615
Jul 05 2017 17:41
yep, when I re-ran the script last night, I forgot to go back and add SMB to the enable line-phew! so simple, thank you, both!
stefanakerblom
@stefanakerblom
Jul 05 2017 17:43
@danamlewis Fixed. Thx. I just deployed another site using the dev branch and used the same mongodb. Now I can fiddle around wit new stuff on one site and keep the stable stuff on another. Sorry for beeing daft.
KS615
@KS615
Jul 05 2017 17:45
while I have you, one more question about autotune and autosens. Before last night, I was only running autotune as a one-off and had autosens enabled. My one-offs tended to be 5-7 day duration analysis and it kept suggesting that my ISF be higher (from 40 to 53) and continues to rise each time I recheck it (by a little-3-5 points). However, autosens almost always has it adjusted to the mid-40s, why is that?
Scott Leibrand
@scottleibrand
Jul 05 2017 17:58
they're totally different algorithms. autosens isn't trying to come up with a "right answer" for ISF: it's just adjusting it alongside basals as needed to reflect overall sensitivity / resistance
there is also a bias toward raising ISF too much in autotune. there's a change in oref0 dev that will cause autotune to "anchor" a bit more on the pump ISF, so if you think that's high enough, you can stop raising it and autotune will be less prone to raise it too much beyond that
Dana Lewis
@danamlewis
Jul 05 2017 18:00
btw for anyone enabling oref1 with the current/new dev way of doing it - feedback welcome by ways of PRs for how to make it clear about what you need to do to get oref1 going. so if there’s a more clear way to articulate those directions, please PR. https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/oref1-features.html#
Dana Lewis
@danamlewis
Jul 05 2017 18:32
@gregtcm I’m doing a setup with someone and saw same thing; trying your sleep 10 fix and worked. may just add that in for everyone. thanks! (@scottleibrand )
KS615
@KS615
Jul 05 2017 18:35
@scottleibrand and @danamlewis -thanks for the clarification re autotune. And, I'll take a look at the docs for Oref1 and review my notes to see if I have anything to add. Thanks for your help!
Dana Lewis
@danamlewis
Jul 05 2017 18:35
:+1:
also http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/autotune.html#the-difference-between-autotune-and-autosens if you have any clarifications to make differences in autotune and autosens more clear
PR all the things! :D ;) :)
Brian Rabinovitz
@bdr1177
Jul 05 2017 18:38
If I want to do a clean install on my edison, can I safely delete all the directories or are there some that need to stay? (I do NOT want to reflash Jubilinux)
KS615
@KS615
Jul 05 2017 18:41
Ok, will do. And, I just looked at the Oref1 docs and they've been updated a lot since I started it mid-June. So, will look at it more carefully. One clarification, under how to "turn on SMB and UAM," it reads like if you follow the interactive instructions through the advanced features, that will enable SMB (ie without having to re-run your script and manually type microbolus in under enable). Last night, I re-did the full interactive set up, clicked Y to SMB, autotune, autosens, and UAM, but that didn't add microbolus under the "enable" command (eg I re-ran it this AM and added it). Is that how its supposed to work or is that a glitch?
KS615
@KS615
Jul 05 2017 18:56
And PS, I am SO grateful for SMBs-they really are making a huge difference in my postmeal highs. Such a relief-I thought I was going to have to stop eating all carbs in order to get my A1C down to the recommended levels for pregnancy! Thank you!!
Dana Lewis
@danamlewis
Jul 05 2017 18:57
@KS615 did you re-pull dev before doing that?
and yay - glad they’re helping :) <3 :sparkles:
KS615
@KS615
Jul 05 2017 18:59
hmm, I'm trying to remember because I read that section ...but maybe I didn't re-pull it. When was it updated?
I think ultimately, I didn't...my rig kept rebooting from radio errors (now fixed) so I got side tracked and probably didn't end up doing that
Dana Lewis
@danamlewis
Jul 05 2017 19:01
it was updated sunday monday tuesday ;)
but ya, if you didn’t re-pull you’d have the old dev way of setting up
KS615
@KS615
Jul 05 2017 19:01
haha, yep, well that's it. Ok, good, glad to know it was just my distractedness :)
Dana Lewis
@danamlewis
Jul 05 2017 19:01
:+1:
gregtcm
@gregtcm
Jul 05 2017 19:04

@danamlewis Glad I could help!! I initially tried a sleep 5, but that wasn't long enough. I don't know enough about scripting on *nix, but maybe some sort of loop would be helpful ... just in case a sleep 10 isn't long enough for some other rigs.

@gregtcm I’m doing a setup with someone and saw same thing; trying your sleep 10 fix and worked. may just add that in for everyone. thanks! (@scottleibrand )

Helene Brashear
@sillystring13
Jul 05 2017 19:08
trying to switch back to the master branch from dev, but keep getting the message, "please commit your changes or stash them before you can switch branches." any ideas?
Dana Lewis
@danamlewis
Jul 05 2017 19:08
git stash
gregtcm
@gregtcm
Jul 05 2017 19:09

@PieterGit Yes, I did. I've done this a few times with no problem, so I really think that the error that was causing my loop to fail and why I tried to fix it with an update, is breaking the update. If I'm able to figure it out without a full wipe, I'll let you know.

@gregtcm did you run npm run global-install?

I was able to get my new rig up and running on dev last night after testing @danamlewis super cool new setup script. So, now I can get back to debugging my original rig. Thanks again for your thoughts.
Dana Lewis
@danamlewis
Jul 05 2017 19:12
:+1:
Elisakelley
@Elisakelley
Jul 05 2017 19:15
just switched over to the dev branch and enabled SMB and everything looked good in the logs (supermicrobolus loops were running), but now I'm on hour 2 of constant reboots due to radio errors. Jul 05 14:12:05 elisa pump-loop.log: Starting supermicrobolus pump-loop at Wed Jul 5 14:12:02 CDT 2017 with 20 second wait_for_silence:
Jul 05 14:12:05 elisa network.log: At Wed Jul 5 14:12:02 CDT 2017 my local IP is: 192.168.1.86
Jul 05 14:12:05 elisa pump-loop.log: Waiting up to 4 minutes for new BG: ls: cannot access monitor/pump_loop_completed: No such file or directory
Jul 05 14:12:06 elisa network.log: At Wed Jul 5 14:12:02 CDT 2017, my wifi network name is ATT8n9kaM4, and my public IP is: 104.184.100.97
Jul 05 14:12:06 elisa ns-loop.log: Starting ns-loop at Wed Jul 5 14:12:06 CDT 2017:
Jul 05 14:12:06 elisa network.log: Finished oref0-online.
Jul 05 14:12:06 elisa autosens-loop.log: Wed Jul 5 14:12:06 CDT 2017
Jul 05 14:12:06 elisa autosens-loop.log: Wed Jul 5 14:12:06 CDT 2017
Jul 05 14:12:07 elisa autosens-loop.log: settings/autosens.json
Jul 05 14:12:07 elisa autosens-loop.log: settings/autosens.json
Jul 05 14:12:11 elisa pump-loop.log: Radio ok. Listening: .Starting pump-loop at Wed Jul 5 14:12:11 CDT 2017:
Jul 05 14:12:13 elisa pump-loop.log: Traceback (most recent call last):
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/bin/mmeowlink-any-pump-comms.py", line 15, in <module>
Jul 05 14:12:13 elisa pump-loop.log: app.run(None)
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/decocare/helpers/cli.py", line 113, in run
Jul 05 14:12:13 elisa pump-loop.log: self.prelude(args)
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/mmeowlink/cli/any_pump_comms_app.py", line 28, in prelude
Jul 05 14:12:13 elisa pump-loop.log: super(AnyPumpCommsApp, self).prelude(args)
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/mmeowlink/cli/base_mmeowlink_app.py", line 26, in prelude
Jul 05 14:12:13 elisa pump-loop.log: self.link = link = LinkBuilder().build(args.radio_type, port)
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/mmeowlink/link_builder.py", line 16, in build
Jul 05 14:12:13 elisa pump-loop.log: return SubgRfspyLink(port)
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 55, in init
Jul 05 14:12:13 elisa pump-loop.log: self.open()
Jul 05 14:12:13 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 23, in open
Jul 05 14:12:13 elisa pump-loop.log: raise AlreadyInUseException("%s already in use" % self.device)
Jul 05 14:12:13 elisa pump-loop.log: mmeowlink.vendors.serial_interface.AlreadyInUseException: /dev/spidev5.1 already in use
Jul 05 14:12:20 elisa ns-loop.log: ns://JSON/shell/cgm/ns-glucose.json
Jul 05 14:12:20 elisa ns-loop.log: reporting cgm/ns-glucose.json
Jul 05 14:12:20 elisa pump-loop.log: mmtune: monitor/mmtune.json raised /dev/spidev5.1 already in use
Jul 05 14:12:21 elisa pump-loop.log: pump://JSON/mmtune/monitor/mmtune.json
Jul 05 14:12:21 elisa pump-loop.log: Traceback (most recent call last):
Jul 05 14:12:21 elisa pump-loop.log: File "/usr/local/bin/openaps-report", line 82, in <module>
Jul 05 14:12:21 elisa pump-loop.log: app( )
Jul 05 14:12:21 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
Jul 05 14:12:21 elisa pump-loop.log: self.run(self.args)
Jul 05 14:12:21 elisa pump-loop.log: File "/usr/local/bin/openaps-report", line 75, in run
Jul 05 14:12:21 elisa pump-loop.log: output = app(args, self)
Jul 05 14:12:21 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
Jul 05 14:12:21 elisa pump-loop.log: return self.method.main(args, app)
Jul 05 14:12:21 elisa pump-loop.log: File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py"
@sillystring13 it's really well documented (and short ;) )
Since our rigs are basically always connected (at least mine), is it doable to refactor code to move to (i dunno, maybe) Nightscout host site a microservice for the evaluation of the autosens alg? It would speed a pump loop on a ridicously slow device like my RPi Zero
gregtcm
@gregtcm
Jul 05 2017 19:55
@scottleibrand @danamlewis FYI: for the past 40 min both my new dev rig (from Jul 4) and my backup dev (from May 11) started throwing errors within minutes of each other. They both just resolved themselves, but I thought I'd at least let y'all know since you are trying to get dev released to master.
Starting supermicrobolus pump-loop at Wed Jul 5 12:26:17 PDT 2017 with 30 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
Radio ok. Listening: ........No pump comms detected from other rigs
mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
Checking pump status (suspended/bolusing): mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
grep: monitor/status.json: No such file or directory
Error, retrying
Sleeping 8;
Starting supermicrobolus pump-loop at Wed Jul 5 12:28:58 PDT 2017 with 2 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Listening for 30s silence before mmtuning: .....................No pump comms detected from other rigs
mmtune: "916.564", 5, -55 Listening: ........No pump comms detected from other rigs
Preflight OK. Old pumphistory, waiting for 2 seconds of silence: Radio ok. Listening: .No pump comms detected from other rigs
RefreshIndexError: bytearray index out of range

Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Error, retrying
Sleeping 8;
Starting supermicrobolus pump-loop at Wed Jul 5 12:41:28 PDT 2017 with 11 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
Listening for 30s silence before mmtuning: ..........
Starting supermicrobolus pump-loop at Wed Jul 5 12:43:03 PDT 2017 with 6 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
Radio ok. Listening: .No pump comms detected from other rigs
Preflight OK. Old pumphistory, waiting for 6 seconds of silence: Radio ok. Listening: .No pump comms detected from other rigs
RefreshAssertionError: CRC does not match page data

Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Error, retrying
Sleeping 3;
Scott Leibrand
@scottleibrand
Jul 05 2017 20:15
@elisakelly: you might have ended up with two loops both running in cron?
Elisakelley
@Elisakelley
Jul 05 2017 20:35
@scottleibrand in the docs it says to "comment out in cron the loops you don't want running." Is there info
Somewhere with details on how to do that exactly?
Scott Leibrand
@scottleibrand
Jul 05 2017 20:38
Or you can just answer yes to removing the existing cron in oref0-setup.
Giuseppe
@giupo
Jul 05 2017 20:41
@Elisakelley crontab -e
it just edits the text file rappresentation of the output of crontab -l
PieterGit
@PieterGit
Jul 05 2017 20:50
Do others still have lsusb return unable to initialize libusb: -99 (new explorer board, Dexcom G4)? I'm about to reinstate my cronjob that reboot's if lsusb gives an error
if others also have this I can PR this if requested
sefish99
@sefish99
Jul 05 2017 20:53
What is the best way to set an alert notification about rig battery status? Thank you!!
John Sjolund
@sjolundjohn
Jul 05 2017 20:55

@danamlewis indeed I don't think I had it setup correctly. I ran the setup script about 5 days ago, but it wasn't clear for me how to get all advanced features including SMB running.

I now got it all going again, we are off and running

Dana Lewis
@danamlewis
Jul 05 2017 20:58
@sjolundjohn 10:4 :+1:
Giuseppe
@giupo
Jul 05 2017 21:01
I keep getting, sometimes, the dreaded BG data is too old (it's probably this), I think due the failing RF connection between the TI stick and Pump/CGM (I have a Medtroinic 554/Enlite): is this the correct diagnosis or should I investigate even further?
Elisakelley
@Elisakelley
Jul 05 2017 21:04
@scottleibrand thanks! Do I need to name it something besides the default "myopenaps" in the setup script?
My loop I've been running is called myopenaps.. wondering if I need to change the name of the new loop in dev
PieterGit
@PieterGit
Jul 05 2017 21:07
Scott: i think moving unsuspend_if_no_temp stuff into Retrying SMB checks is a winner! without manual mmtune i managed to restore the rig-pump communication! :clap: . See https://github.com/openaps/oref0/pull/523#issuecomment-313225892
gregtcm
@gregtcm
Jul 05 2017 21:09
@scottleibrand I just tested the unsuspend_if_no_temp. This forgetful diabetic is very excited and thankful!
Giuseppe
@giupo
Jul 05 2017 21:29
using openaps use pump read_glucose_data effectively the last GlucoseSensorData is at the same older time stamp that trigger OpenAPS to show the message BG data is too old ...
so looks like it's the pump NOT giving out it's data; btw the pump correctly shows Sensor readings.
PieterGit
@PieterGit
Jul 05 2017 21:30
@giupo are you using master or dev?
Giuseppe
@giupo
Jul 05 2017 21:30
@PieterGit master!
just in case, I'll post my pump-log
PieterGit
@PieterGit
Jul 05 2017 21:35
you might want to try dev, openaps/oref0#424 on a fresh rig. There are some MDT fixes, but I'm unsure if they help you. I don't use MDT. The next stable version will probably be released soon, but if you have a spare rig, you can check if your MDT works. @scottleibrand just fixed a blocking issue on dev openaps/oref0#522 (so probably best to wait until that issue has been merged to dev).
@giupo : the BG data is too old (it's probably this), or clock set incorrectly is quite common if you have CGM issues (or incorrectly set clocks). Please check if the glucose.json file is available and not empty. I can't help you debug a MDT CGM problem unfortuately.
Martin Haeberli
@mhaeberli
Jul 05 2017 21:49
Untitled 11.tiff
trying to understand a few things
a) yes, autotune and autosens are on. normal basal this time of day is maybe 1.3… but maybe autosens is assuming higher is needed? also, since target is 118 or so, it seems to almost be ‘thrashing’ - retrospective predictions are for maybe just above 120 (so time to high-temp) or much lower (so time to low-temp) ...
how can I ‘tune’ to settle this down. yes, we could add carbs now … but maybe rather run a bit more autonomously
Giuseppe
@giupo
Jul 05 2017 21:54
@PieterGit glucose.json is present...
Schermata 2017-07-05 alle 23.54.03.png
Martin Haeberli
@mhaeberli
Jul 05 2017 21:54
ok, so look at papertrail...
Giuseppe
@giupo
Jul 05 2017 21:55
and openaps is correct, it can't download BG data from pump
Martin Haeberli
@mhaeberli
Jul 05 2017 22:04
@scottleibrand
Jul 05 14:50:32 openaps0 ns-loop.log: Refreshed temptargets and meal-carbs
Jul 05 14:50:33 openaps0 ns-loop.log: {"batteryVoltage":3752, "battery":57}
Jul 05 14:50:35 openaps0 pump-loop.log: {"carbs":52,"boluses":8.6,"mealCOB":10,"currentDeviation":2.86,"maxDeviation":5.32,"minDeviationSlope":-0.478}
Jul 05 14:50:35 openaps0 pump-loop.log: {"iob":-0.228,"activity":0.0205,"bolussnooze":0,"basaliob":-0.41,"netbasalinsulin":-0.85,"hightempinsulin":0.75,"microBolusInsulin":0,"microBolusIOB":0,"time":"2017-07-05T21:49:49.000Z","lastBolusTime":1499281948000}
Jul 05 14:50:35 openaps0 pump-loop.log: {"delta":-1,"glucose":78,"short_avgdelta":-1.39,"long_avgdelta":-2.99}
Jul 05 14:50:35 openaps0 pump-loop.log: {"duration":59,"rate":0,"temp":"absolute"}
Jul 05 14:50:35 openaps0 pump-loop.log: Autosens adjusting basal from 1.612 to 1.95; target_bg from 130 to 118; sens from 35 to 29.2
Jul 05 14:50:35 openaps0 pump-loop.log: Carb Impact: 1.6 mg/dL per 5m; CI Duration: 5.1 hours; remaining 4h+ CI: 0 mg/dL per 5m
Jul 05 14:50:35 openaps0 pump-loop.log: Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0.8 hours
Jul 05 14:50:35 openaps0 pump-loop.log: UAM Impact: 0 mg/dL per 5m; UAM Duration: 0 hours
Jul 05 14:50:35 openaps0 pump-loop.log: minPredBG: 90 minIOBPredBG: 85 minCOBPredBG: 90 avgPredBG: 108 COB: 10 carbs: 52
Jul 05 14:50:35 openaps0 pump-loop.log: BG projected to remain above 110 for 0 minutes
Jul 05 14:50:35 openaps0 pump-loop.log: bgUndershoot: -7 zeroTempDuration: 30 zeroTempEffect: 24 carbsReq: -16
Jul 05 14:50:36 openaps0 pump-loop.log: determine-basal://text/shell/enact/suggested.json
Jul 05 14:50:36 openaps0 pump-loop.log: reporting enact/suggested.json
Jul 05 14:50:36 openaps0 pump-loop.log: {"temp":"absolute","bg":78,"tick":-1,"eventualBG":125,"snoozeBG":95,"insulinReq":0,"reservoir":null,"deliverAt":"2017-07-05T21:50:35.326Z","minPredBG":999,"predBGs":{"IOB":[78,76,76,75,75,76,77,78,79,80,80,81,82,82,83,84,84,85,85,86,87,87,88,88,88,89,89,89,90],"aCOB":[78,84,90,95,100,105,109,112,114,115,115,116,117,117,118,119,119,120,120,121,122,122,123,123,123,124,124,124,125],"COB":[78,77,76,76,76,78,79,81,83,84,86,88,90,92,94,96,97,99,101,103,104,106,107,109,110,111,113,114,115,116,117,118,119,120,120,121,122,122,123,123,124,125]},"COB":10,"IOB":-0.228,"reason":"COB: 10, Dev: 10, BGI: -2.99, ISF: 29, Target: 118, minPredBG 90, IOBpredBG 90, COBpredBG 125; 125-90 in range: no temp required; setting current basal of 1.95 as temp. ","duration":30,"rate":1.95}
Jul 05 14:50:41 openaps0 pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Jul 05 14:50:41 openaps0 pump-loop.log: reporting enact/enacted.json
Jul 05 14:50:41 openaps0 pump-loop.log: {"insulinReq":0,"bg":78,"reservoir":null,"temp":"absolute","snoozeBG":95,"rate":1.95,"predBGs":{"COB":[78,77,76,76,76,78,79,81,83,84,86,88,90,92,94,96,97,99,101,103,104,106,107,109,110,111,113,114,115,116,117,118,119,120,120,121,122,122,123,123,124,125],"aCOB":[78,84,90,95,100,105,109,112,114,115,115,116,117,117,118,119,119,120,120,121,122,122,123,123,123,124,124,124,125],"IOB":[78,76,76,75,75,76,77,78,79,80,80,81,82,82,83,84,84,85,85,86,87,87,88,88,88,89,89,89,90]},"minPredBG":999,"IOB":-0.228,"reason":"COB: 10, Dev: 10, BGI: -2.99, ISF: 29, Target: 118, minPredBG 90, IOBpredBG 90, COBpredBG 125; 125-90 in range: no temp required; setting current basal of 1.95 as temp. ","COB":10,"eventualBG":125,"recieved":true,"duration":30,"tick":-1,"timestamp":"2017-07-05T14:50:40.088218","deliverAt":"2017-07-05T21:50:35.326Z"}
Jul 05 14:50:42 openaps0 ns-loop.log: Uploaded
Jul 05 14:50:42 openaps0 pump-loop.log: Settings less than 10m old
Jul 05 14:51:01 openaps0 network.log: Starting oref0-online.
Giuseppe
@giupo
Jul 05 2017 22:04
@scottleibrand I've read all the logs, and the only info I get is that I might have a problem with the clock, but the 'real' problem seems that, by using openaps use pump read_glucose_data/iter_glucose_data the pump is not giving the data requested. The pump has a sensor active and is logging data (it's not stuck, lost sensor, etc). If I try to read other infos from the pump via openaps use pump all the commands complete successfully (it gets me to exclude any problem between TI and Pump). I'm stuck, the only thing I would to is to reflash TI stick and reinstall on a fresh rig... If anyone has some suggestions are welcome
Dirk Gastaldo
@dirkgastaldo
Jul 05 2017 22:07
Greetings, I fear I may have inadvertently edited my supplicant.conf info when I was testing the Termius app on my phone. Is this all the infor you would expect to see in supplicant.conf?
image.png
Martin Haeberli
@mhaeberli
Jul 05 2017 22:07
so I guess my questions include - how to make the cutoff not so crisp, and why is autosense adjusting so much ? rtfd and rtfl i guess - more thinking ...
katie disimone
@Kdisimone
Jul 05 2017 22:22
@dirkgastaldo that's update config =1 line isn't usually there but the rest looks good
Dirk Gastaldo
@dirkgastaldo
Jul 05 2017 22:23
Thanks, @Kdisimone, I'll remove it, thank you.
image.png
@Kdisimone, this is what I saw in Termius last night. I'm hitting ESC and then :q to quit without saving any changes. What am I doing wrong, or what causes this red message?
Dirk Gastaldo
@dirkgastaldo
Jul 05 2017 22:30
@Kdisimone I was able to quit, and then re-edit. I just hadn't seen this red E37 error message before and didn't want to break something. Thanks again.
sdneufer
@sdneufer
Jul 05 2017 22:31
@dirkgastaldo Assuming you are using vi and you changed the file (or the computer thinks you did) you must type :q! to acknowledge that you are quitting without saving a change you made.
Giuseppe
@giupo
Jul 05 2017 22:37
My problem (cgm data old) solved by "rebooting" (removed and interted the same battery). The pump restarted to give back the correct BG data
I meant rebooting the insulin pump
gregtcm
@gregtcm
Jul 05 2017 22:39
@Kdisimone I was curious about that update_config=1 line, too, after it showed up after running @danamlewis 's new setup script. I just looked it up and found this explanation:
# Whether to allow wpa_supplicant to update (overwrite) configuration
#
# This option can be used to allow wpa_supplicant to overwrite configuration
# file whenever configuration is changed (e.g., new network block is added with
# wpa_cli or wpa_gui, or a password is changed). This is required for
# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
# Please note that overwriting configuration file will remove the comments from
# it.
#update_config=1
Dirk Gastaldo
@dirkgastaldo
Jul 05 2017 22:53
@sdneufer thank you!
garykidd
@garykidd
Jul 05 2017 23:10
@diabetic_dude_twitter It should be flashed with USB firmware. I have a debugger you can borrow if you'd like to flash something else to it.
Brian Rabinovitz
@bdr1177
Jul 05 2017 23:30
If I'm doing a brand new install (but not reflashing) are there any directories that it is not okay to delete?
Brian Rabinovitz
@bdr1177
Jul 05 2017 23:36
For example, can I delete "git-corrupted" from my home directory?
Scott Leibrand
@scottleibrand
Jul 05 2017 23:51
@giupo glad that fixed it for you. be warned that if you take a AAA battery out of a Medtronic pump, it may error on you when you put it back in if the voltage isn't 100%
@mhaeberli based on your logs it looks like autosens is detecting a lot of resistance, as you suspected. we'd need to see the logs before, during, and after one of the zero-temp episodes to see why it's dropping all the way to a zero temp and then going back to neutral.