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

18th
Mar 2019
Matthew Yeager
@AmazingThew
Mar 18 00:16
Hey quick question: I replaced the HAT on my Pi rig a couple days ago, and updated to latest in dev branch. Everything works fine, but the HAT display keeps inverting every few loops (as in, text and the BG graph appear as black pixels on a lit background). Is this a software bug, or a new feature, or do I have hardware problems?
Django van Leeuwen
@tekkushi
Mar 18 00:21
you have colour settings in nightscout
dont know how to chaneg them on the rig
samueldemers2
@samueldemers2
Mar 18 00:24
Hello everyone, some people helped me a lot setting up my first pi0/HAT friday night. It's going great and all, but since then, I haven't manage to set up my bluetooth tethering. I follow the step, but I'm unable to succeed at the line "sudo /usr/local/bin/bluetoothd --experimental &"
Is this method is supposed to work with a pi0 rig ?
Django van Leeuwen
@tekkushi
Mar 18 00:30
you can skip that part if you want to keep you rig name as name for you bluetooth
start with sudo service bluetooth start to start you bluetooth again
samueldemers2
@samueldemers2
Mar 18 00:30
Ill give it a try
Django van Leeuwen
@tekkushi
Mar 18 00:32
then you can use 'bleutoothclt' and do the commands as shown in the yellow/green field
samueldemers2
@samueldemers2
Mar 18 00:35
I still do the sudo killall bluetoothd
Just not the sudo /usr/local/bin/bluetoothd --experimental &
Django van Leeuwen
@tekkushi
Mar 18 00:36
you can skip that part start with the bluetoothclt and follow with the power on pwoer off stuff
samueldemers2
@samueldemers2
Mar 18 00:38
So i restarted the cron and all, but I'm stuck at "waiting to connect to bluetoothd..."
Could it be because I previously killall bluetoohd?
Django van Leeuwen
@tekkushi
Mar 18 00:43
use sudo service bluetooth start to start it again
and us bluetoothclt with out doing kilall
samueldemers2
@samueldemers2
Mar 18 00:54
It worked! Thanks!
Django van Leeuwen
@tekkushi
Mar 18 00:55
no prob i'm looking into auto connecting the rigbecause it may not always connect when you lose wifi
bluetooth auto connect
samueldemers2
@samueldemers2
Mar 18 00:59
What do you mean ?
Jon Cluck
@cluckj
Mar 18 01:29
@AmazingThew new feature, it'll keep the pixels on the screen from burning down unevenly
Django van Leeuwen
@tekkushi
Mar 18 01:36
@samueldemers2 lots of time when i leave home it does not connect to bluetooth
looking to let it auto check for bluetooth
samueldemers2
@samueldemers2
Mar 18 01:51
I just tried mine. It worked as soon as i enable bluetooth tethering on my phone
Time will tell if it still get going tomorow
Abigail Cember
@acember
Mar 18 02:00
@tekkushi @samueldemers2 Yeah, it works fine as long as I go through the steps outlined in the docs to set bluetooth tethering up. But it will only work once: if I switch back to wifi but then try to go to BT again, I have to go through the whole business of doing the BT-pan and identifying the device. It doesn't just use BT on its own without me "asking".
@scottleibrand Yeah, I do have it enabled. Would you advise trying to only rely on UAM and not tell NS or BW about eating? Because what's happening is exactly as you describe: often my bloodsugar is already dropping again, but COB is still some big number.
Today I had a really crazy situation: openAPS at one point thought I had something like 120 COB, even though in reality I had eaten those over a period of maybe two or three hours, and there was nothing with a lot of fat. I was getting SMBs even though my blood sugar was drifting downwards, which was kind of scary, so I deleted the entries from NS until my rig was only counting what I had eaten in the past 45 minutes or so, which solved the problem.
Abigail Cember
@acember
Mar 18 02:12
image.png
Just to give you an idea, I didn't give myself any insulin for those two 20g and one 30g snack, then gave 4.0 for the 80g meal, which appears to be gone in about an hour (I did walk home from the restaurant, so physical activity comes into play, but I usually walk after eating). Where that 0.3 is, I was going to be getting more SMBs, but I suspended my pump and then stopped looping. Ideally I would have a better solution than that (hence all of my daydreaming about these sensitivity adjustments.)
I didn't get basals in the snapshat, but I was zero-temped (by openAPS) until that 30g mark, then I went back to my regular basals.
Scott Leibrand
@scottleibrand
Mar 18 03:16
What is autotune trying to do with your carb ratio? Sounds like it’s way too low.
You should be able to go ahead and enter all of your carbs, set activity mode high targets for any walks home or other physical activity, and it should decay carbs mostly accurately, and avoid dosing if it still thinks you have COB once deviations start dropping toward neutral when carb absorption slows down.
Also, if you’re doing full boluses for meals, you might want to reduce those and let SMB pick up the slack later once it sees enough carb absorption to warrant more.
Stargazer32584
@Stargazer32584
Mar 18 07:15
Good morning, everybody ! Today, before i start to go to work, i tested the rig with the Medtronic 712. I use the
Stargazer32584
@Stargazer32584
Mar 18 07:29
x12-fix from @cluckj . So, i have a problem with the mmtune.json . The file is empty. Here is a screenshot:
PieterGit
@PieterGit
Mar 18 07:32
@danamlewis Am I right that your mention at https://gitter.im/nightscout/intend-to-bolus?at=5c8d70c449fdaa0d81c743e0 referred to @dramageek comment's on @sulkaharo PR https://github.com/openaps/oref0/pull/1139# . I don't use xdrip anymore. Switched from xdrip Lookout (@jpcunningh https://github.com/xdrip-js/Lookout ) to share2nightscout bridge recently.
boc-the-git
@boc-the-git
Mar 18 10:17
Not sure if it'll be impacting others, but on a Pi+HAT rig running the latest oref0-dev, I was having issues with actually getting any display on the HAT. Sadly I don't have the exact errors as I've tried a couple things, but where I am now (which works) is with the openaps-menu package.json as follows (i2c-bus and rpi-gpio versions updated):
{
  "name": "openaps-menu",
  "version": "1.0.1",
  "description": "OpenAPS menu application for Pi Zero W Explorer HAT.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/openaps/openaps-menu.git"
  },
  "author": "",
  "license": "MIT",
  "dependencies": {
    "extend": "^3.0.1",
    "i2c-bus": "^4.0.9",
    "menube": "^1.0.3",
    "oled-font-5x7": "^1.0.0",
    "oled-i2c-bus": "git+https://github.com/bnielsen1965/oled-i2c-bus.git",
    "pngparse": "^2.0.1",
    "node-pi-buttons": "git+https://github.com/bnielsen1965/node-pi-buttons.git",
    "rpi-gpio": "^2.1.3"
  }
}
I believe a related part to my problem is I've updated npm and node to the latest versions as well, which therefore didn't work with a certain version of rpi-gpio
npm v6.7.0
node v11.12.0
samueldemers2
@samueldemers2
Mar 18 11:55
Hey everyone. Just a quicky. What do you do with your rig that stay home while you go to work?
Jon Cluck
@cluckj
Mar 18 11:59
@Stargazer32584 update your install, there are a couple bugfixes x12-fix was missing that I just merged
Stargazer32584
@Stargazer32584
Mar 18 12:05
@cluckj Thank you for the reply. I do it in the evening.
Stargazer32584
@Stargazer32584
Mar 18 12:43
@cluckj I have downloaded x12-fix from your GitHub account and try to Install it. But there is the "old" problem with the 'npm run global install' . With 'npm init', i make a new package.json file.
But, if i want to make the 'npm run global install' the following error appears : https://drive.google.com/file/d/1l0nFRxQTYhHAdZx9pHsa3lfCiAk0uSub/view?usp=drivesdk
Jon Cluck
@cluckj
Mar 18 12:51
run it again? that error is intermittent
Scott Leibrand
@scottleibrand
Mar 18 13:56
@samueldemers2 nothing: just leave it powered.
samueldemers2
@samueldemers2
Mar 18 15:22
Good. Ill continue that way
Stargazer32584
@Stargazer32584
Mar 18 15:34

@cluckj Alright. NPM seems to be running. So, i go to the oref0 - setup and compiling it. But at the end is the following error:

'tor@5.1.3)
├── moment@2.24.0
└── lodash@4.17.11
Could not run oref0-get-profile
'
What can i do...

Jon Cluck
@cluckj
Mar 18 15:45
it may have done an incomplete global-install :/
Dana Lewis
@danamlewis
Mar 18 16:47
@PieterGit no. It looks like someone changed a setting in the NS gitter “org” which influences the GitHub connection inside this room. I didn’t know if you or @sulkaharo made a change elsewhere in gitter that may have trickled down
Stargazer32584
@Stargazer32584
Mar 18 18:16

@cluckj The command 'npm run global-install' works fine. But the oref0 - setup end now with this:

'unbuild oref0@0.7.0-dev
/root/src/oref0/node_modules/oref0 -> /usr/local/lib/node_modules/oref0 -> /root/src/oref0
(node:6224) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! cb() never called!
npm ERR! not ok code 0

npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! You can get their info via:
npm ERR! npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/src/oref0/npm-debug.log
npm ERR! not ok code 0
/root/src/oref0/bin/oref0-setup.sh: line 688: oref0-get-profile: command not found
Could not run oref0-get-profile
'

Stargazer32584
@Stargazer32584
Mar 18 18:53

@cluckj The greatest errors of the setup with npm are gone. I have only this:

Checking oref0 installation
(node:7658) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! invalid: oref0@0.7.0-dev /usr/local/lib/node_modules/oref0
npm ERR! not ok code 0
Installing latest oref0 from /root/src/oref0/
(node:7682) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

oref0@0.7.0-dev global-install /root/src/oref0
npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g

And after a lot more entries, it ends with:

tor@5.1.3)
├── moment@2.24.0
└── lodash@4.17.11
Could not run oref0-get-profile
root@APS:~#

PieterGit
@PieterGit
Mar 18 19:47
@danamlewis ok, thanks. No, I didn't change anything and don't have any gitter org rights (afaict). What's the problem with the NS gitter "org"?
Tracey Berg-Fulton
@BergFulton
Mar 18 20:11
any suggestions on likely issues if:
  • Nightscout says OpenAPS hasn't been looping for 2 HRs but it shows as still be connected to my pump
  • I seem to not be able to use ssh or sudo to log in to my rig
  • Mongo DB is way under the limit
  • I had to delete log files off the rig last week because it stopped due to disk being full
I feel like this is similar to a weird auth key issue I had a few months ago but after that adventure I got rid of those
Tracey Berg-Fulton
@BergFulton
Mar 18 20:17
well, pants. ssh finally did its thing, turns out disk is full again. time to flush :toilet:
zasteph
@zasteph
Mar 18 20:18
why are the logs not cleaned automatically? Did you set the daily vs. weekly? Just wondering if I have the same issue :)
Tracey Berg-Fulton
@BergFulton
Mar 18 20:20
I thought I had them set to clear daily...but now I'm not so sure. These same files (my syslog & kern.log files) filled the disk a few months ago and I've been bumping along no problems since then
once I'm back looping I'll give it a look
(the files I cleared last week were different files, for the record)