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

20th
Apr 2019
Scott Leibrand
@scottleibrand
Apr 20 03:37
@whogeorge I just updated step 2 of the master patch test fixes gist - can you give that another try? https://gist.github.com/scottleibrand/9372092ac914c7edbe23fa4eb94b83d8
Jon Cluck
@cluckj
Apr 20 04:09
@danamlewis yes, the patch should fix that error
:thumbsup:
@Ricco555 I'll see about making that a little more clear either in the installer or the docs :)
Scott Leibrand
@scottleibrand
Apr 20 04:11
(this message was incorrect: deleted)
Jon Cluck
@cluckj
Apr 20 04:11
oh?
Scott Leibrand
@scottleibrand
Apr 20 04:11
you removed npm from openaps-packages
I just did a fresh jubilinux 0.3.0 install and saw the same error @whogeorge did above
npm: command not found
Jon Cluck
@cluckj
Apr 20 04:13
nodesource installs node and npm
could it be a .bash_profile thing?
Scott Leibrand
@scottleibrand
Apr 20 04:14
lemme check one other thing
oh, no, it's not an error in cluckj-master
it's in the gist
Jon Cluck
@cluckj
Apr 20 04:15
easy enough to move it from openaps-install.sh to openaps-packages.sh though :)
oh
lol
Dana Lewis
@danamlewis
Apr 20 04:18
This is why I wanted to copy and paste because even we both messed it up 😂
Scott Leibrand
@scottleibrand
Apr 20 04:18
Jon Cluck
@cluckj
Apr 20 04:18
want me to edit my PR comment to point to that link?
:laughing:
Scott Leibrand
@scottleibrand
Apr 20 04:18
lemme test it first
testing code is hard: maybe we should've just YOLO released it. ;-)
Dana Lewis
@danamlewis
Apr 20 04:19
My comment will need editing of the link. Yours is fine I think @cluckj
Jon Cluck
@cluckj
Apr 20 04:20
lol
Cameron Chunn
@applehat
Apr 20 04:20
Nah, you just need a few people to commit to be "staging" pancreases @scottleibrand
lol
Dana Lewis
@danamlewis
Apr 20 04:20
@applehat ohai. And be careful what you volunteer for :smile:
Jon Cluck
@cluckj
Apr 20 04:20
if it makes you feel any better, I did that like 45 times testing this
Scott Leibrand
@scottleibrand
Apr 20 04:20
@applehat yeah, that works fine when we can tell the "staging" pancreases to install dev
Dana Lewis
@danamlewis
Apr 20 04:21
@cluckj 😂 yup thanks. I was also blaming it on fever brain earlier.
Scott Leibrand
@scottleibrand
Apr 20 04:21
problem here is we're trying to do a patch release to master without doing a full release of dev to master
Jon Cluck
@cluckj
Apr 20 04:21
forgot to edit the script prolific barfing about npm
Scott Leibrand
@scottleibrand
Apr 20 04:21
lol
I initially read that as you barfing about npm, which is probably also true by try 44
Jon Cluck
@cluckj
Apr 20 04:23
no barfing but I did swear at my computer about the sudo npm thing
Dana Lewis
@danamlewis
Apr 20 04:23
Lol
Scott Leibrand
@scottleibrand
Apr 20 04:23
Press Enter to run oref0-setup with the current release (master branch) of oref0,
or press ctrl-c to cancel.
so now the new gist works: updated https://github.com/openaps/oref0/pull/1241#issuecomment-485019505 to point to the corrected one
Dana Lewis
@danamlewis
Apr 20 04:24
In cheerful news: I did solve someone’s npm error today on Facebook 👏🏼 (by pointing out it didn’t need sudo) so that’s 1:67 or so 😂 in the npm wars this week
:+1: Thanks
Jon Cluck
@cluckj
Apr 20 04:24
hahaha
Scott Leibrand
@scottleibrand
Apr 20 04:24
do I need to hit enter and make sure I don't get spi errors on master?
Dana Lewis
@danamlewis
Apr 20 04:24
Yes
Jon Cluck
@cluckj
Apr 20 04:24
yes
Scott Leibrand
@scottleibrand
Apr 20 04:24
k
Dana Lewis
@danamlewis
Apr 20 04:25
must put @cluckj’s epic :bug: hunting fix to the full test
Scott Leibrand
@scottleibrand
Apr 20 04:25
bah, my runagain has dev-only stuff. :)
scottleibrand @scottleibrand stops trying to take shortcuts
Dana Lewis
@danamlewis
Apr 20 04:26
😂
/me mutters about no one reading the docs about not using runagain when changing major versions ;)
Cameron Chunn
@applehat
Apr 20 04:26
Just a random heads up -- I tried rerunning oref0-setup earlier today (because i had pulled latest dev, was seeing a little weirdness, so I figured I'd actually re-run instead of doing my normal "look at changes, decide it should run fine" that I tend to do) -- the Binaries that got pulled from ecc1 wouldn't run on my Pi. Trying to figure out now if something on my Pi is dumb or if the latest release is messed up for Pi. Assuming since that release is 11 days old someone would have caught it by now tho so Im moving forward assuming its my fault somehow =P
Dana Lewis
@danamlewis
Apr 20 04:27
Try setup-improvements branch but per above I think someone else might’ve bumped into that too
Jon Cluck
@cluckj
Apr 20 04:27
is this on your HAT rig, or rfm69?
Cameron Chunn
@applehat
Apr 20 04:28
my HAT rig. The rfm69 rig is a wonderful champion that has been running for weeks without a restart and is currently keeping me from going insane while trying to fix the HAT rig =P
Dana Lewis
@danamlewis
Apr 20 04:29
(Note to self: I need to come up w a table so we can cross check all the hardware types for our testing, and easily update when one bonks or gets fixed)
Jon Cluck
@cluckj
Apr 20 04:29
is the HAT on a pi0?
Dana Lewis
@danamlewis
Apr 20 04:29
@applehat latest dev should be fresher than 11 days..?
Cameron Chunn
@applehat
Apr 20 04:29
@danamlewis ecc1 binary releases, not oref0 dev
@cluckj yeah its a pi0
(and its ridiculously slow)
Jon Cluck
@cluckj
Apr 20 04:30
yep
Dana Lewis
@danamlewis
Apr 20 04:30
Ah gotcha
Jon Cluck
@cluckj
Apr 20 04:30
what flavor error is it giving you?
Cameron Chunn
@applehat
Apr 20 04:31
Well at this point Im just trying to get an oref0 enviroment back up. I forget what the binary errors were.
during the npm install -g part of global-install im getting some crazyness
root@RadAway:~/src/oref0# npm install -g
(node:25048) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! fetch failed https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz
Jon Cluck
@cluckj
Apr 20 04:31
latest mdt binaries are from march, latest oref0 dev is a couple days old
Cameron Chunn
@applehat
Apr 20 04:31
Oh, I missread the date then
I wonder why npm is failing to fetch those
I can wget them on the rig directly without issue
Scott Leibrand
@scottleibrand
Apr 20 04:32
what npm --version?
Jon Cluck
@cluckj
Apr 20 04:32
^
Cameron Chunn
@applehat
Apr 20 04:33
root@RadAway:~# npm --version
1.4.21
(node:25085) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Old, I guess. lol
Scott Leibrand
@scottleibrand
Apr 20 04:33
that's too old, ya
Jon Cluck
@cluckj
Apr 20 04:33
wow yeah update that lol
Scott Leibrand
@scottleibrand
Apr 20 04:33
are you not on oref0 dev?
Cameron Chunn
@applehat
Apr 20 04:34
I am
Im not sure how npm is so out of date
Scott Leibrand
@scottleibrand
Apr 20 04:34
it should install node 8 and npm 6 when you run oref0-setup
Jon Cluck
@cluckj
Apr 20 04:34
:eyes:
Scott Leibrand
@scottleibrand
Apr 20 04:34
have you run that since switching to dev?
Cameron Chunn
@applehat
Apr 20 04:34
It started on dev
its a Pi rig
Jon Cluck
@cluckj
Apr 20 04:34
node and npm are separate packages on raspbian
Cameron Chunn
@applehat
Apr 20 04:34
root@RadAway:~# node -v
v8.11.1
root@RadAway:~# which npm
/usr/bin/npm
root@RadAway:~#
Jon Cluck
@cluckj
Apr 20 04:34
node is v8, but npm is prehistoric
Cameron Chunn
@applehat
Apr 20 04:35
lol. Beautiful.
Scott Leibrand
@scottleibrand
Apr 20 04:35
do we need to update our nodesource install to explicitly install npm too?
Cameron Chunn
@applehat
Apr 20 04:35
Maybe. My NPM version is from the raspbian repo
Jon Cluck
@cluckj
Apr 20 04:35
I was thinking about having npm update itself regardless of platform, but it could get messy
Cameron Chunn
@applehat
Apr 20 04:36
I assume the nodesource thing would install npm as well
Jon Cluck
@cluckj
Apr 20 04:36
I think sudo npm install npm@latest -g
nodesource doesn't do armv6 :unamused:
Scott Leibrand
@scottleibrand
Apr 20 04:36
ugh
Jon Cluck
@cluckj
Apr 20 04:37
yeah
Cameron Chunn
@applehat
Apr 20 04:37
Have we ever considered building a custom raspbian image thats pre-configured (as much as it can be) and with our own apt package repo?
(this old node version explains how "quiet" all the scripts seemed when I was running them btw)
I thought it was awfully strange I wasn't getting a crap ton of simi-unless information from NPM =P
Scott Leibrand
@scottleibrand
Apr 20 04:38
building our own image has always looked like more work to maintain than updating raspbian lite to do what we want
dunno if anything has changed there
Cameron Chunn
@applehat
Apr 20 04:39
I just have in my head this idea of flashing an image, setting some stuff on the /boot partition in a config file, and booting into a fully working openaps rig =P
Well, npm install npm@latest -g is ... running? This NPM doesn't give me much detail about what its doing
Jon Cluck
@cluckj
Apr 20 04:41
tbh nobody knows what npm is doing
Cameron Chunn
@applehat
Apr 20 04:42
I think about 80% of what it does is just make you thankful your not using PHP's Composer.
Well, npm is fixed. lol
Maybe I can get far enough to figure out what my other issue is now.
Jon Cluck
@cluckj
Apr 20 04:46
awesome
Cameron Chunn
@applehat
Apr 20 04:46
Thanks
Its a shame that all the debian repos are always so ancient.
imagine if I could just trust my package manager. Wouldn't that be something.
Jon Cluck
@cluckj
Apr 20 04:53
lol
Dana Lewis
@danamlewis
Apr 20 04:55
@scottleibrand :clap:
Any objections to releasing it as a patch 0.6.3 this weekend? @cluckj have you seen any other master related issues?
(Yes accompanied with lots of writeup about it - I will start drafting that)
Scott Leibrand
@scottleibrand
Apr 20 04:57
probably better to go ahead and do the 0.6.3 release sooner rather than have too many people set their oref0 origin to cluckj's
Jon Cluck
@cluckj
Apr 20 04:57
hah, I was going to ask if there was anything critical from dev that should be included
Scott Leibrand
@scottleibrand
Apr 20 04:57
If people can get up and looping without it, it's not critical. :)
Cameron Chunn
@applehat
Apr 20 04:58
is that autotune bug a thing in 6.X?
Jon Cluck
@cluckj
Apr 20 04:58
yes, the lack of problems kinda speaks for itself
Scott Leibrand
@scottleibrand
Apr 20 04:58
I'll probably delete and re-clone my ~/src/oref0 to fix the git origin
Dana Lewis
@danamlewis
Apr 20 04:58
No
Cameron Chunn
@applehat
Apr 20 04:58
:+1:
Dana Lewis
@danamlewis
Apr 20 04:58
Was an issue in dev only
Scott Leibrand
@scottleibrand
Apr 20 04:58
@applehat no, the autotune bug was introduced in the 0.7.0-dev refactor
Dana Lewis
@danamlewis
Apr 20 04:59
@scottleibrand the only people will see it is if we point to it as troubleshooters and I can’t imagine many people will see it between now and say tomorrow
Scott Leibrand
@scottleibrand
Apr 20 04:59
yeah, just saying we don't want to wait weeks and point people to the gist in the mean time
Dana Lewis
@danamlewis
Apr 20 04:59
:+1: no definitely this weekend
Cameron Chunn
@applehat
Apr 20 05:02
Looks like oref0-setup works substantially better on a NPM not published in 2014.
Dana Lewis
@danamlewis
Apr 20 05:02
:laughing:
Jon Cluck
@cluckj
Apr 20 05:02
:clap:
Cameron Chunn
@applehat
Apr 20 05:04
I do question how I got it to work in the first place...
Somewhere along the line my newer NPM must have gotten lost, because I doubt I ever managed an install on 1.4
Scott Leibrand
@scottleibrand
Apr 20 05:07
don't be too surprised: master worked on ancient node and npm until just recently
Jon Cluck
@cluckj
Apr 20 05:07
unless you updated it manually, it's been the stock version
Cameron Chunn
@applehat
Apr 20 05:09
@scottleibrand I remember
Because I like to joke that I run on JavaScript
and for a while I'd add "not just any javascript. Node 0.10"
Scott Leibrand
@scottleibrand
Apr 20 05:09
;-)
Cameron Chunn
@applehat
Apr 20 05:10
Is there any Python left in oref0?
Scott Leibrand
@scottleibrand
Apr 20 05:11
yeah, we still use the openaps toolkit for some things, even in dev
Cameron Chunn
@applehat
Apr 20 05:12
You know its pretty impressive this whole system works
lol
(I dont mean that offensively or anything)
Scott Leibrand
@scottleibrand
Apr 20 05:13
heh yeah, I know.
Jon Cluck
@cluckj
Apr 20 05:14
:laughing:
Scott Leibrand
@scottleibrand
Apr 20 05:14
FWIW, I just reproduced the npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0' error switching from master to setup-improvements
Cameron Chunn
@applehat
Apr 20 05:14
For a while I had a project at work that was PHP, Node, and Python, and Bash.
Jon Cluck
@cluckj
Apr 20 05:14
edison or pi?
Scott Leibrand
@scottleibrand
Apr 20 05:15
edison
Cameron Chunn
@applehat
Apr 20 05:15
Im back up and looping :+1:
Jon Cluck
@cluckj
Apr 20 05:15
wooo
Dana Lewis
@danamlewis
Apr 20 05:15
:+1:
Jon Cluck
@cluckj
Apr 20 05:16
is that error in the npm run global-install portion?
Scott Leibrand
@scottleibrand
Apr 20 05:16
yeah, I'm reverting the last commit I added
Jon Cluck
@cluckj
Apr 20 05:17
image.png
Scott Leibrand
@scottleibrand
Apr 20 05:17
lol
Jon Cluck
@cluckj
Apr 20 05:17
wat
Scott Leibrand
@scottleibrand
Apr 20 05:17
$ date
Fri Apr 19 22:21:54 PDT 2019
scottleibrand @scottleibrand fixes that
Dana Lewis
@danamlewis
Apr 20 05:18
You’ve been working on my time machine, thanks 😂
Jon Cluck
@cluckj
Apr 20 05:19
is in dev's oref0-setup a better place for that?
Scott Leibrand
@scottleibrand
Apr 20 05:19
not sure npm remove is a good idea at all
Jon Cluck
@cluckj
Apr 20 05:22
the npm install -g should overwrite that stuff
I'm very skeptical of npm this week, though :laughing:
Scott Leibrand
@scottleibrand
Apr 20 05:36
after that fix, I was able to install from setup-improvements and it's looping fine
zekeat09
@zekeat09
Apr 20 05:38
@danamlewis After change of DIA, i still face high BG after meal bolus. Still hv zero temp basal and cause BG at 14.8 when check with meter.
Scott Leibrand
@scottleibrand
Apr 20 05:39
are you running OpenAPS? oref0 master or dev branch? have you run autotune? does it suggest any changes?
zekeat09
@zekeat09
Apr 20 05:40
Oref0 master
I follow the autotune suggest setting..
I adjust pump Basal as Autotune. Same for CR and ISF.
If i put lower CR, then will face long Zero Temp. If i put CR as Autotune, the BG didn’t come down and minGuardBG cause zero temp basal and let BG go up further...
Scott Leibrand
@scottleibrand
Apr 20 05:43
maybe try an autotune run using dev, perhaps with autotuneweb, and see if it suggests anything different?
zekeat09
@zekeat09
Apr 20 05:45
I tried Autotuneweb, abt same setting..
I am thinking to use dev branch, but not sure what is the improvement will help for my case..
Riko L
@Ricco555
Apr 20 06:39

@Ricco555 I'll see about making that a little more clear either in the installer or the docs :)

@cluckj thanks. Even with the current status it is a huge improvement :+1:

Tracey Berg-Fulton
@BergFulton
Apr 20 11:32
Hm, had an overnight stoppage of my rig.
Woke up and checked my mLab, which was full. I compacted my database.
Then I tried l, and things were still not going, so I ran
df -h
and
du /var/log/dev/* /var/log/* |sort -n|tail -5
And then
rm /var/log/openaps/network.log
rm /var/log/openaps/autosens-loop.log
rm /var/log/openaps/pump-loop.log
so now
l
Gives me
Starting oref0-pump-loop at Sat Apr 20 07:28:02 EDT 2019 with 28 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. Old pumphistory-24h, waiting for 28 seconds of silence: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Old pumphistory-24h refreshed
Profile less than 60m old; Profile valid. Refgrep: monitor/status.json: No such file or directory
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 567: test: ==: unary operator expected
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 568: test: ==: unary operator expected

cat: monitor/status.json: No such file or directory
Couldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
any clues?
Tracey Berg-Fulton
@BergFulton
Apr 20 11:38
:-| I swear, every time I come here, it magically fixes itself. I got the battery alarm while sitting here, changed it, and POOF, we're good. Have a good weekend, yinz.
davidvjr
@davidvjr
Apr 20 11:45
Hello all. I'm trying to install oref0 for the first time on an Edison + Explorer block. I am getting Couldn't make bluez every time. I am logging in as root, entering the following to start the installation:
root@edisonrig:~# oref0-setup --dir=/root/myopenaps --serial=369206 --cgm=xdrip --ns-host=https://vaniernightscout.herokuapp.com --api-secret=moogmoogmoog --tty=/dev/spidev5.1 --pumpmodel=x12 --max_iob=2 --radio_locale='WW' --btmac='BC:FF:EB:7C:3A:43'
image.png
I have limited knowledge of what I'm doing beyond the docs! Any suggestions?
davidvjr
@davidvjr
Apr 20 11:59
I have no idea if my BT tethering on my phone needs to be on... I turned it on, but I do not have a mobile data signal here where I live. Could this be a problem?
davidvjr
@davidvjr
Apr 20 12:24
OK, so since I posted my bluez problem, I ran oref0 setup and selected N for Bluetooth tethering. oref0 ran without a hitch.
davidvjr
@davidvjr
Apr 20 12:45
Working on enabling tethering manually from docs...
LuminaryXion
@LuminaryXion
Apr 20 12:56
Hi there! I was installing OpenAPS on my Pi, I accidentally interrupted the install by plugging in the Pi to charge. Now I can log in to Pi, but not to root. How can I reset the root password?
Jon Cluck
@cluckj
Apr 20 13:06
if you can still log into pi, do that and sudo bash then passwd to change the password
LuminaryXion
@LuminaryXion
Apr 20 13:08
brilliant. You're a hero, Jon. :)
or not. it still won7t let me login with the new password... >.<
Jon Cluck
@cluckj
Apr 20 13:10
root login via ssh might still be disabled
LuminaryXion
@LuminaryXion
Apr 20 13:10
would restarting fix this?
Jon Cluck
@cluckj
Apr 20 13:12
it depends how far the setup progressed before it rebooted
LuminaryXion
@LuminaryXion
Apr 20 13:13
about 34% I think
can I just login as pi and use sudo bash to run the installer?
Jon Cluck
@cluckj
Apr 20 13:13
yep
did it start oref0-setup?
LuminaryXion
@LuminaryXion
Apr 20 13:14
I had only just set my time zone and told it to connect to github. then it was very busy after that for a while.
it hadn't asked me any of the question I'm used to seeing from Edison yet. about my connections and setup specs
my first Pi. :) trying to make a backup in case the edison dies some day
Jon Cluck
@cluckj
Apr 20 13:16
start with the openaps-install part
LuminaryXion
@LuminaryXion
Apr 20 13:17
the curl command?
that's what I had been doing when I interrupted it before.
ok, it's running again. Thanks!
Jon Cluck
@cluckj
Apr 20 13:25
:thumbsup:
LuminaryXion
@LuminaryXion
Apr 20 13:41
Now I've gotten an error about a corrupted file. I guess I just run it again...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
Get:43 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf vim armhf 2:8.0.0197-4+deb9u1 [790 kB]
Fetched 41.1 MB in 46s (881 kB/s)
apt-listchanges: Reading changelogs...
Extracting templates from packages: 100%
(Reading database ... 34541 files and directories currently installed.)
Preparing to unpack .../procps_2%3a3.3.12-3+deb9u1_armhf.deb ...
Unpacking procps (2:3.3.12-3+deb9u1) over (2:3.3.12-3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/procps_2%3a3.3.12-3+deb9u1_armhf.deb (--unpack):
cannot copy extracted data for './bin/ps' to '/bin/ps.dpkg-new': unexpected end of file or stream
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/procps_2%3a3.3.12-3+deb9u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Jon Cluck
@cluckj
Apr 20 13:46
rm /var/cache/apt/archives/procps_2%3a3.3.12-3+deb9u1_armhf.deb and run the command again?
LuminaryXion
@LuminaryXion
Apr 20 13:52
ok, trying now!
Jon Cluck
@cluckj
Apr 20 13:54
during the download of that file may have been the exact spot where it had its power disconnected
LuminaryXion
@LuminaryXion
Apr 20 13:54
that seems likely! Good thinking. It seems to be progressing better now :)
oleg-post
@oleg-post
Apr 20 14:20
Hello all. When the aps is running on my raspberry I can’t execute ‘reboot’ or ‘poweroff’. Nothing happen. Can you help me with this?
Jon Cluck
@cluckj
Apr 20 14:25
it's a bug in pibakery, you might need to use reboot -f
oleg-post
@oleg-post
Apr 20 14:45
Ok. Thanks. I’ll try.
whogeorge
@whogeorge
Apr 20 16:19
hello what is :pushover API token, please?
whogeorge
@whogeorge
Apr 20 16:34
@danamlewis thank you. Can I ask why it keeps refering to Android? I though this system did not work on Android?
davidvjr
@davidvjr
Apr 20 16:36
I'm not having any sucess getting my first install of oref0 to loop. G6, 712 (WW), Edison+Explorer. Heres the log I'm getting:
Starting oref0-pump-loop at Sat Apr 20 12:20:02 EDT 2019 with 16 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight fail. Retrying preflight
Preflight fail. Couldn't preflight
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
OK

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Sat Apr 20 12:23:26 EDT 2019
grep: monitor/temp_basal.json: No such file or directory
Pump and rig are CLOSE!
Dana Lewis
@danamlewis
Apr 20 16:44
@whogeorge OpenAPS is phone agnostic, you can use it with any type of phone. There are some companion apps like pushover that can work with iphone or android. And there are some sections that’ll talk about phone specific apps
@davidvjr which branch are you using?
davidvjr
@davidvjr
Apr 20 16:48
@danamlewis I just ran cd && ~/src/oref0/bin/oref0-setup.sh so would that be the master branch?
davidvjr
@davidvjr
Apr 20 17:02
After removing the external antenna from the rig (I may have had the wrong one on) It seem as though the preflight is no longer failing.

``` Starting oref0-pump-loop at Sat Apr 20 12:52:02 EDT 2019 with 20 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight (x12 models do not support SMB safety checks, SMB will not be available.) OK. Profile less than 60m old; Profile valid. Refgrep: monitor/status.json: No such file or directory
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 567: test: ==: unary operator expected
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 568: test: ==: unary operator expected

cat: monitor/status.json: No such file or directory
Couldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
OK

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Sat Apr 20 12:54:49 EDT 2019
grep: monitor/temp_basal.json: No such file or directory
```

whogeorge
@whogeorge
Apr 20 17:05
so the instructions (pushover) tell me to change it to script..... i seriously can t see where I do that!
Dana Lewis
@danamlewis
Apr 20 17:13
@davidvjr cool. Give it 20 minutes and see if it loops from there :+1:
@whogeorge see the end of the instructions I linked, where it says how to edit the runagain file and what to add, you can copy and paste that command to edit your file
Once edit, save and exit, then run that last instruction
whogeorge
@whogeorge
Apr 20 17:16
but if I"m doing from the first Q/A for script, do I have to run those 3 lines?
Dana Lewis
@danamlewis
Apr 20 17:19
No. Enter your pushover info in the script when asked
Cameron Chunn
@applehat
Apr 20 17:25
Anyone ever run into issues with smb_verify_everything failing often? My rig has been able to set temp basals no problem, but if likes to fail SMBs often. I keep going high because I never prebolus. Lol
whogeorge
@whogeorge
Apr 20 17:29
Screen Shot 2019-04-19 at 3.51.19 PM.png
if my preflight fails (running first test loop) over and over I messed up..... correct?
Screen Shot 2019-04-20 at 1.28.50 PM.png
ignore first pic
davidvjr
@davidvjr
Apr 20 18:08
@danamlewis Still no looping.
Starting oref0-pump-loop at Sat Apr 20 14:01:02 EDT 2019 with 29 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight (x12 models do not support SMB safety checks, SMB will not be available.) OK. Profile less than 60m old; Profile valid. Refgrep: monitor/status.json: No such file or directory
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 567: test: ==: unary operator expected
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 568: test: ==: unary operator expected

cat: monitor/status.json: No such file or directoryCouldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
OK

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Sat Apr 20 14:03:53 EDT 2019
grep: monitor/temp_basal.json: No such file or directory
@danamlewis How can you tell if there are any comms with the pump?
Jon Cluck
@cluckj
Apr 20 18:40
not at my PC for the day, but the x12 support on dev is 1000x better; would you be okay with switching to that branch?
oleg-post
@oleg-post
Apr 20 18:44
@cluckj looks like it works. But ‘sudo shutdown -h now’ or ‘sudo halt’ doesn’t work. The session used to close but raspi still works and pings.
Jon Cluck
@cluckj
Apr 20 18:45
@oleg-post ya, I think it's something with the init scripts but haven't had time to dig into the cause
oleg-post
@oleg-post
Apr 20 18:46
@cluckj maybe some lok- files
@oleg-post Das it help to kill some processes?
davidvjr
@davidvjr
Apr 20 19:34
I'm also getting [FAILED] Failed to start Hostname Service. earlier while oref0 is setting up.
tzachi-dar
@tzachi-dar
Apr 20 20:17
Hi again
Not sure if this is the right place to tell about this...
Getting the following error on my nightscout site:
Sat, 20 Apr 2019 20:12:28 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:126:24
Apr 20 23:12:28 snir-dev app/web.1: Production environment detected, enabling Minify
Apr 20 23:12:28 snir-dev app/web.1: Listening on port 12731 null
Apr 20 23:12:28 snir-dev app/web.1: (node:4) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
Apr 20 23:12:28 snir-dev heroku/web.1: State changed from starting to up
Apr 20 23:12:31 snir-dev heroku/router: at=info method=GET path="/api/v1/devicestatus.json?count=100" host=snir-dev.herokuapp.com request_id=911bcd6f-72ae-4a9b-8c82-2ad9c6215be4 fwd="37.142.0.75" dyno=web.1 connect=0ms service=54ms status=200 bytes=13778 protocol=https
Apr 20 23:12:31 snir-dev app/web.1: GRANTED: 37.142.0.75 no-token api:devicestatus:read default
Apr 20 23:12:32 snir-dev heroku/router: at=info method=GET path="/api/v1/treatments.json?find[created_at][$gte]=2019-04-19T20:12+00:00&find[eventType]=Temporary+Target" host=snir-dev.herokuapp.com request_id=553af968-57bf-4d0b-a164-1d74ea487f28 fwd="37.142.0.75" dyno=web.1 connect=0ms service=8ms status=200 bytes=427 protocol=https
Apr 20 23:12:32 snir-dev app/web.1: GRANTED: 37.142.0.75 api-secret api:treatments:read
Apr 20 23:12:33 snir-dev app/web.1: searching treatments q { find: { created_at: { '$gte': '2019-04-12T20:12:32.865Z' } },
Apr 20 23:12:33 snir-dev app/web.1: sort: { created_at: 1 } }
Apr 20 23:12:33 snir-dev app/web.1: Load Complete:
Apr 20 23:12:33 snir-dev app/web.1: sgvs:488, treatments:62, profiles:1, devicestatus:393, activity:21, tempbasalTreatments:58
Apr 20 23:12:33 snir-dev app/web.1: reloading sandbox data
Apr 20 23:12:33 snir-dev app/web.1: /app/node_modules/mongodb/lib/utils.js:132
Apr 20 23:12:33 snir-dev app/web.1: throw err;
Apr 20 23:12:33 snir-dev app/web.1: ^
Apr 20 23:12:33 snir-dev app/web.1: TypeError: Cannot read property 'uploader' of undefined
Apr 20 23:12:33 snir-dev app/web.1: at eachDevice (/app/lib/plugins/upbat.js:137:33)
Apr 20 23:12:33 snir-dev app/web.1: at /app/node_modules/lodash/lodash.js:4911:15
Apr 20 23:12:33 snir-dev app/web.1: at baseForOwn (/app/node_modules/lodash/lodash.js:2996:24)
Apr 20 23:12:33 snir-dev app/web.1: at /app/node_modules/lodash/lodash.js:4880:18
Apr 20 23:12:33 snir-dev app/web.1: at Function.forEach (/app/node_modules/lodash/lodash.js:9344:14)
Apr 20 23:12:33 snir-dev app/web.1: at Object.analyzeData (/app/lib/plugins/upbat.js:124:7)
Apr 20 23:12:33 snir-dev app/web.1: at setUpbat2 (/app/lib/plugins/upbat.js:26:20)
Apr 20 23:12:33 snir-dev app/web.1: at Object.offerProperty (/app/lib/sandbox.js:120:19)
Apr 20 23:12:33 snir-dev app/web.1: at Object.setProperties (/app/lib/plugins/upbat.js:25:9)
Apr 20 23:12:33 snir-dev app/web.1: at eachPlugin (/app/lib/plugins/index.js:150:16)
Apr 20 23:12:33 snir-dev heroku/web.1: State changed from up to crashed
Apr 20 23:12:33 snir-dev heroku/web.1: Process exited with status 1
Apr 20 23:12:36 snir-dev heroku/router: at=error code=H10 desc="App crashed" method=GET path="/api/v1/treatments.json?find[created_at][$gte]=2019-04-19T20:12+00:00&find[carbs][$exists]=true" host=snir-dev.herokuapp.com request_id=d53532c5-b8b2-4a9e-ab31-1f8be02e2f67 fwd="37.142.0.75" dyno= connect= service= status=503 bytes= protocol=https
Apr 20 23:12:43 snir-dev heroku/router: at=error code=H10 desc="App crashed" method=POST path="/api/v1/devicestatus.json" host=snir-dev.herokuapp.com request_id=ffaede12-aab9-43bb-b9c8-9ce7dd7b5c09 fwd="37.142.0.75" dyno= connect= service= status=503 bytes= protocol=https
Apr 20 23:12:44 snir-dev heroku/router: at=error code=H10 desc="App crashed" method=GET path="/api/v1/treatments.json?find[enteredBy]=/openaps:\/\//&count=1?911eea185f5c758ac275687da8b7eab50ad720e3" host=snir-dev.herokuapp.com request_id=88544bec-d388-4e27-bb84-cb847ca9768a fwd="37.142.0.75" dyno= connect= service= status=503 bytes= protocol=https
I guess it is happening since some entry on the mongo is missing uploader (or is actually undefined).
Does anyone has an idea what I should fix, or should i just delete the treamtents...
whogeorge
@whogeorge
Apr 20 20:20
Screen Shot 2019-04-20 at 4.19.25 PM.png
hello . Still looking for help with failed preflight.
Jon Cluck
@cluckj
Apr 20 20:22
@tzachi-dar get rid of the src/openaps-menu directory, myopenaps/monitor/edison-battery.json, and clear out your device status collection on mlab
tzachi-dar
@tzachi-dar
Apr 20 20:22
Ok, seems that deleting the last entry, which was:
    "_id": {
        "$oid": "5cbb79db8c028f00048b2989"
    },
    "device": "openaps://oapsad1",
    "openaps": {
        "iob": {
            "iob": 0.15,
            "activity": 0,
            "basaliob": 0,
            "bolusiob": 0.15,
            "netbasalinsulin": 0,
            "bolusinsulin": 0.15,
            "iobWithZeroTemp": {
                "iob": 0.15,
                "activity": 0,
                "basaliob": 0,
                "bolusiob": 0.15,
                "netbasalinsulin": 0,
                "bolusinsulin": 0.15,
                "time": "2019-04-20T19:57:27.000Z"
            },
            "lastBolusTime": 1555790202000,
            "lastTemp": {
                "date": 0
            },
            "timestamp": "2019-04-20T19:57:27.000Z"
        },
        "suggested": {
            "reason": "If current system time Sat Apr 20 2019 22:57:34 GMT+0300 (IDT) is correct, then BG data is too old. The last BG data was read 1706m ago at Fri Apr 19 2019 18:31:33 GMT+0300 (IDT). Temp 0 <= current basal 0.8U/hr; doing nothing. ",
            "timestamp": "2019-04-20T19:57:34.454Z"
        }
    },
    "pump": {
        "clock": "2019-04-20T22:57:27+03:00",
        "battery": {
            "voltage": 1.5,
            "string": "normal"
        },
        "reservoir": 166.525,
        "status": {
            "status": "normal",
            "bolusing": false,
            "suspended": false,
            "timestamp": "2019-04-20T19:57:13.154Z"
        }
    },
    "uploader": {},
    "created_at": "2019-04-20T19:58:19.854Z"
}
will now delete the directories that you have suggested.
Jon Cluck
@cluckj
Apr 20 20:23
(on your rfm69 rig)
tzachi-dar
@tzachi-dar
Apr 20 20:25
yes new rigs I'm building are rfm69 .
Let's see how it will go.
Jon Cluck
@cluckj
Apr 20 20:25
there's a bug in openaps-menu
if you're using the latest dev, it should not install openaps-menu at all :)
Jon Cluck
@cluckj
Apr 20 20:35
I set it up to only install that stuff on the HAT and radiofruit
tzachi-dar
@tzachi-dar
Apr 20 20:39
I was using the version from yesterday. I got one more entry without an uploader. Should I reboot again?
Jon Cluck
@cluckj
Apr 20 20:42
I'll take a look later, but it shouldn't be installing openaps-menu if you don't tell the setup that you have a screen
the problem is caused by monitor/edison-battery.json having {} in it
tzachi-dar
@tzachi-dar
Apr 20 20:52
Ok, it started looping...
Please note that since I have wired it as bonnet, I have also choose that option, and as a result, I think that it is expecting a menu.
Thanks again for your help.
Jon Cluck
@cluckj
Apr 20 20:55
that'd do it, choose the rfm69hcw option :) (#3 iirc)
tzachi-dar
@tzachi-dar
Apr 20 20:57
Is there an open bug about " monitor/edison-battery.json having {}" causing issue? If no one is looking at it, I'll try to solve it, but I must say that I have a lot of issues on my plate so it will take some time, till I get there.
Jon Cluck
@cluckj
Apr 20 20:58
@jansche was on it but I'm not sure the patches were merged
jvemme
@jvemme
Apr 20 21:38
I was wondering, why hasnt anyone made some kind of windows installer project. Most I know who might attempt this would be put of by having to play around in a linux terminal
davidvjr
@davidvjr
Apr 20 22:27
I'm using a WW 712. Does this mean I have a radio problem on the pump? The Explorer board is brand new.
root@edisonrig:~/myopenaps# cd ~/myopenaps && sudo service cron stop && killall -g openaps ; killall -g oref0-pump-loop; openaps-use pump mmtune && sudo service cron start
openaps: no process found
oref0-pump-loop: no process found
{
  "scanDetails": [
    [
      "868.150",
      0,
      -99
    ],
    [
      "868.174",
      0,
      -99
    ],
    [
      "868.198",
      0,
      -99
    ],
    [
      "868.222",
      0,
      -99
    ],
    [
      "868.246",
      0,
      -99
    ],
    [
      "868.270",
      0,
      -99
    ],
    [
      "868.294",
      0,
      -99
    ],
    [
      "868.318",
      0,
      -99
    ],
    [
      "868.342",
      0,
      -99
    ],
    [
      "868.366",
      0,
      -99
    ],
    [
      "868.390",
      0,
      -99
    ],
    [
      "868.414",
      0,
      -99
    ],
    [
      "868.438",
      0,
      -99
    ],
    [
      "868.462",
      0,
      -99
    ],
    [
      "868.486",
      0,
      -99
    ],
    [
      "868.510",
      0,
      -99
    ],
    [
      "868.534",
      0,
      -99
    ],
    [
      "868.558",
      0,
      -99
    ],
    [
      "868.582",
      0,
      -99
    ],
    [
      "868.606",
      0,
      -99
    ],
    [
      "868.630",
      0,
      -99
    ],
    [
      "868.654",
      0,
      -99
    ],
    [
      "868.678",
      0,
      -99
    ],
    [
      "868.702",
      0,
      -99
    ],
    [
      "868.726",
      0,
      -99
    ]
  ],
  "setFreq": 868.328,
  "usedDefault": true
}root@edisonrig:~/myopenaps#
davidvjr
@davidvjr
Apr 20 22:35
I've been having trouble getting a loop going all day, this is my first try at openAPS. Pump is very close to rig. Master branch, 712, Edison + Explorer block, G6. Here is a full loop cycle:
Starting oref0-pump-loop at Sat Apr 20 18:32:01 EDT 2019 with 23 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight (x12 models do not support SMB safety checks, SMB will not be available.) OK. Profile less than 60m old; Profile valid. Refgrep: monitor/status.json: No such file or directory
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 567: test: ==: unary operator expected
cat: monitor/status.json: No such file or directory
/usr/local/bin/oref0-pump-loop: line 568: test: ==: unary operator expected

cat: monitor/status.json: No such file or directory
Couldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
OK

The CC111x is located at /dev/spidev5.1
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Sat Apr 20 18:35:10 EDT 2019
grep: monitor/temp_basal.json: No such file or directory
Any help would be wonderful. I'm at a loss, but thinking my pump may be bad.
Jon Cluck
@cluckj
Apr 20 22:41
can you switch to dev? the x12 works a lot better on there
davidvjr
@davidvjr
Apr 20 22:44
@cluckj I havent learned much about it. Would there be any drawbacks?
I'll go educate myself!
Jon Cluck
@cluckj
Apr 20 23:17
:)
Dana Lewis
@danamlewis
Apr 20 23:23
@davidjr dev is usually experimental but there’s no algo changes there compared to master - just technical stuff like device comms, and improvements for things like x12 pumps, so I’d say you’re fine to switch because a) you’ll get support easier if anything is wonky b) it’ll help us get it released to master more quickly :smile:
davidvjr
@davidvjr
Apr 20 23:58
@danamlewis @cluckj OK, sounds good. I'll give it a go.