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

19th
Apr 2019
Natalia S.
@Propelld
Apr 19 00:55
Hey all, can anyone share at what point in the initial setup does the HAT screen usually turn on?
I reflashed my card and starting from scratch. The last time I did my setup and the screen did not turn on, the loop ended up not working. I'm taking it as an early sign that something is not right
Natalia S.
@Propelld
Apr 19 01:01

country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

to delete#update_config=1

ap_scan=1
network={
scan_ssid=1
ssid="FritzBoxx-XXXYYYZZZ”"
psk="1234567890"
key_mgmt=WPA-PSK
priority = 5
}
network={
ssid="my-mobile-Router"
psk="1234567890"
priority = 4
}

@Volberger I have been having issues connecting to multiple networks too. Can you just explain what you did here? I tried to read but I'm not getting it. Do you just simply delete the update_config=1? Or is there a method to it?

Dana Lewis
@danamlewis
Apr 19 01:23
Yes delete that and the text “to delete”
Not sure how it got there
Natalia S.
@Propelld
Apr 19 01:24
Thanks @danamlewis ! Also, can you please tell me at what point in the setup the screen should turn on?
Dana Lewis
@danamlewis
Apr 19 01:25
@Propelld that’s a dev install, right?
@scottleibrand ^^
Natalia S.
@Propelld
Apr 19 01:25
Pardon my ignorance, but what does that mean? :P
Dana Lewis
@danamlewis
Apr 19 01:26
Which?
Natalia S.
@Propelld
Apr 19 01:26
the dev install?
@Propelld that’s a dev install, right?
Dana Lewis
@danamlewis
Apr 19 01:28
Making sure you are working off the dev branch (instead of directions for master)
Natalia S.
@Propelld
Apr 19 01:28
Ah, how can I tell?
Dana Lewis
@danamlewis
Apr 19 01:28
Doesn’t matter because we had an in-house (literally 😂) argument about that comment which shouldn’t be relevant here
Natalia S.
@Propelld
Apr 19 01:28
Okay :D
So this is my bijillionth install and I'm struggling.
Dana Lewis
@danamlewis
Apr 19 01:29
If you’re following the instructions for HAT you would be/are installing dev (as instructed), unless you specifically ignored those and kept installing master
Natalia S.
@Propelld
Apr 19 01:29
Yes, I'm farily certain that's what I followed
Dana Lewis
@danamlewis
Apr 19 01:30
(I don’t know the answer about when since I haven’t touched my HAT with a fresh install in a while - sorry. @cluckj or another recent HAT’er are probably more informed there)
Natalia S.
@Propelld
Apr 19 01:30
So I just finished the interactive setup and my logs are (of course) non functional
That's ok, as long as I can get a loop ANY LOOP
Not picky :D
This is what I'm getting after running the interactive script on a fresh card:

Starting oref0-pump-loop at Thu 18 Apr 21:26:06 EDT 2019 with 24 second wait_for_silence:
Waiting up to 4 minutes for new BG: jq: error: Could not open file monitor/glucose.json: No such file or directory
jq: error: Could not open file monitor/glucose.json: No such file or directory
date: invalid date ‘@’
ls: cannot access '/tmp/pump_loop_completed': No such file or directory
No more radio errors; canceling reboot

Starting oref0-pump-loop at Thu 18 Apr 21:27:16 EDT 2019 with 5 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory

I'm getting the spi error, for which I will follow the steps on that fix you gave us
I should honestly just bookmark it, I've done it so many times :(
Natalia S.
@Propelld
Apr 19 01:36
@danamlewis after running sed -i.bak -e "s/#dtparam=spi=on/dtparam=spi=on/" /boot/config.txt , should I actually be seeing something going on?
Because all I'm getting is root@nataliasrig:~# again
Dana Lewis
@danamlewis
Apr 19 01:39
Is your sensor live? Getting bg data?
Natalia S.
@Propelld
Apr 19 01:39
Yes, I have a reliable one in
Dana Lewis
@danamlewis
Apr 19 01:40
K so it’s probably that your rig is not online and pulling the BGs in. Make sure you follow the dev steps for the spi error fix - I think it’s the npm removal step that’s all that is needed now for dev
Natalia S.
@Propelld
Apr 19 01:41
ohhh
Okay I didn't realize. Did it mess it up if I ran both master and dev commands?
Dana Lewis
@danamlewis
Apr 19 01:43
No, it installed something not used in dev but shouldn’t hurt. make sure you did the dev step and reboot and see what your logs say then
Natalia S.
@Propelld
Apr 19 01:44
Ok, doing the dev one right now
Dana Lewis
@danamlewis
Apr 19 01:44
:+1:
Natalia S.
@Propelld
Apr 19 01:46
So it seems to be stuck
Radio check failed. ImportError: No module named spi_serial
Listening for 40s silence before mmtuning: ...........................................................
Dana Lewis
@danamlewis
Apr 19 01:50
@scottleibrand do you still need testers for 1245? ^
Natalia S.
@Propelld
Apr 19 02:06
@danamlewis I just ran it, getting

npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_02_52_523Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_02_52_754Z-debug.log
root@nataliasrig:~/src/oref0#

Scott Leibrand
@scottleibrand
Apr 19 02:10
ok, my turn. :)
cd ~/src/oref0 && git branch
Natalia S.
@Propelld
Apr 19 02:11
dev
master
Scott Leibrand
@scottleibrand
Apr 19 02:11
k, one sec
ok, let's delete and re-checkout oref0 to fix the ERR above
Natalia S.
@Propelld
Apr 19 02:13
You may have to explain like I'm 5 :P
Scott Leibrand
@scottleibrand
Apr 19 02:13
mkdir -p ~/src; cd ~/src && rm -rf oref0 && git clone git://github.com/openaps/oref0.git
Natalia S.
@Propelld
Apr 19 02:13
got it
Scott Leibrand
@scottleibrand
Apr 19 02:14
then cd ~/src/oref0 && git checkout setup-improvements && npm run global-install again
Natalia S.
@Propelld
Apr 19 02:14
Branch setup-improvements set up to track remote branch setup-improvements from origin.
Switched to a new branch 'setup-improvements'
Scott Leibrand
@scottleibrand
Apr 19 02:15
if that's all you got, run just npm run global-install again
Natalia S.
@Propelld
Apr 19 02:16
Ok, while I'm waiting, do you think this might be the reason my HAT screen hasn't come on yet?
Scott Leibrand
@scottleibrand
Apr 19 02:17
I'm not gonna be any help with the screen stuff, but hopefully can get you looping
Natalia S.
@Propelld
Apr 19 02:17
Oh no worries. It's not critical.
Scott Leibrand
@scottleibrand
Apr 19 02:19
and after npm run global-install finishes, watch your pump-loop.log with l to see how it does
Natalia S.
@Propelld
Apr 19 02:19
will do
Sarah Wagner
@SarahRWagner
Apr 19 02:20
@Propelld this might be a silly question but is your HAT switched on, on the side? i almost forgot that when i set it up
Natalia S.
@Propelld
Apr 19 02:22
@SarahRWagner yes it is, but it's never done anything for me....
The rig seems to ignore when I switch it
Sarah Wagner
@SarahRWagner
Apr 19 02:23
which kinda pi are you using?
Natalia S.
@Propelld
Apr 19 02:23
Zero WH
Sarah Wagner
@SarahRWagner
Apr 19 02:25
how are you powering it? (im just trying to think of anything hardware that might be an issue?)
Natalia S.
@Propelld
Apr 19 02:25
2.1A portable charger?
I remember I got it on once, but I can't remember what I did >.<
Sarah Wagner
@SarahRWagner
Apr 19 02:26
is that plugged in to the corner usb port?
Natalia S.
@Propelld
Apr 19 02:26

@scottleibrand This is what I got: Starting oref0-pump-loop at Thu 18 Apr 22:21:10 EDT 2019 with 25 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial
Listening for 40s silence before mmtuning: ..........................................................

@SarahRWagner Yes
Should I try rerunning the setup?
Scott Leibrand
@scottleibrand
Apr 19 02:28
no, let's try something else first
Natalia S.
@Propelld
Apr 19 02:28
Ok
Scott Leibrand
@scottleibrand
Apr 19 02:28
first, do a reboot
then watch the logs after reboot, and if you still get the No module named spi_serial error, try npm remove oref0 -g && reboot
Natalia S.
@Propelld
Apr 19 02:30
ok
The npm remove oref0 -g && reboot is that 2 separate commands?
Dana Lewis
@danamlewis
Apr 19 02:32
Yes, the “&&” combines them and allows you to copy and paste and run it together
Natalia S.
@Propelld
Apr 19 02:32
Ah
Dana Lewis
@danamlewis
Apr 19 02:33
So if you copy and paste his text as is it’s one. But yes originally two separate commands - good eye.
Natalia S.
@Propelld
Apr 19 02:33
@danamlewis :P I've stared at these commands for days now....
Dana Lewis
@danamlewis
Apr 19 02:35
:+1: (that’s how I learned Linux-y stuff too)
Scott Leibrand
@scottleibrand
Apr 19 02:35
&& is conditional: it only runs the second command if the first succeeds.
If the first one errors out it’ll stop to let you see why.
Natalia S.
@Propelld
Apr 19 02:35
Ok, good to know
Scott Leibrand
@scottleibrand
Apr 19 02:35
If you wanted it to barrel on regardless you’d use ;
Natalia S.
@Propelld
Apr 19 02:39
Okay so it rebooted
Still just shows the old loop log from 2230
Scott Leibrand
@scottleibrand
Apr 19 02:42
did you do the && commands or just the reboot?
Natalia S.
@Propelld
Apr 19 02:42
the && one
Scott Leibrand
@scottleibrand
Apr 19 02:42
if you did it all, and it's not even trying to loop, you'll need to run cd ~/src/oref0 && npm run global-install again I think
Natalia S.
@Propelld
Apr 19 02:42
Ok
It's stuck at Listening for 40s silence before mmtuning: ..............................................................................
from 2230
doing the global install now
Scott Leibrand
@scottleibrand
Apr 19 02:43
that's just the last thing it did before rebooting: if it can't find oref0 (because you uninstalled the only version) it will never run oref0-pump-loop until you reinstall it
Natalia S.
@Propelld
Apr 19 02:44
oh ok
does that mean the interactive script as well?
Ok, this is what I'm getting

root@nataliasrig:~# cd ~/src/oref0 && npm run global-install

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

npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_44_26_866Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_44_27_098Z-debug.log
root@nataliasrig:~/src/oref0#

Scott Leibrand
@scottleibrand
Apr 19 02:45
that is odd
let's try @SarahRWagner's version of the fix:
cd /usr/local/lib/node_modules
rm -rf oref0
cd ~/src/oref0 && git pull && npm run global-install
reboot
Natalia S.
@Propelld
Apr 19 02:45
ok
Is something supposed to happen after rm -rf oref0?
Scott Leibrand
@scottleibrand
Apr 19 02:46
no
Natalia S.
@Propelld
Apr 19 02:46
ok

This is what I got:
npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_48_12_519Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T02_48_12_746Z-debug.log

before rebooting
Scott Leibrand
@scottleibrand
Apr 19 02:49
ah, sorry. i had you delete the wrong thing
cd /root/src/oref0/node_modules/oref0 && rm -rf oref0 && cd ~/src/oref0 && git pull && npm run global-install
Natalia S.
@Propelld
Apr 19 02:50
I get
-bash: cd: /root/src/oref0/node_modules/oref0: No such file or directory
Scott Leibrand
@scottleibrand
Apr 19 02:51
weird. ok, back to the earlier fix: mkdir -p ~/src; cd ~/src && rm -rf oref0 && git clone git://github.com/openaps/oref0.git
Natalia S.
@Propelld
Apr 19 02:52
Cloning into 'oref0'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 16974 (delta 28), reused 40 (delta 23), pack-reused 16919
Receiving objects: 100% (16974/16974), 4.74 MiB | 1019.00 KiB/s, done.
Resolving deltas: 100% (11747/11747), done.
Scott Leibrand
@scottleibrand
Apr 19 02:53
ok, and one last cd ~/src/oref0 && git checkout setup-improvements && npm run global-install
Natalia S.
@Propelld
Apr 19 03:03
Ok, should I check logs now or reboot?
Scott Leibrand
@scottleibrand
Apr 19 03:03
just logs I think
Natalia S.
@Propelld
Apr 19 03:04
ok, they look successful
Listening for 5s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Thu 18 Apr 23:01:54 EDT 2019
Checking that pump clock: "2019-04-18T23:01:54-04:00" is within 90s of current time: 2019-04-18T23:01:56-0400
Temp refreshed: monitor/temp_basal.json: {"duration":0,"temp":"absolute","rate":0}
{"carbs":68,"nsCarbs":0,"bwCarbs":68,"journalCarbs":0,"mealCOB":0,"currentDeviation":-2.67,"maxDeviation":0,"minDeviation":-2.33,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0,"allDeviations":[-3,-2,-2,-2,-2],"lastCarbTime":1555627048000,"bwFound":true}
/usr/bin/oref0-pump-loop: line 306: oref0-determine-basal: command not found
No deliverAt found.
Couldn't smb_verify_suggested
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 33 s silence before mmtuning
"HAT Display Updated"
Listening for 33s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Thu 18 Apr 23:03:10 EDT 2019
Listening for 33 s silence before mmtuning: Listening for 33s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Thu 18 Apr 23:03:45 EDT 2019
mmtune:
Scott Leibrand
@scottleibrand
Apr 19 03:04
interesting
try which oref0-determine-basal and then locate oref0-determine-basal
Natalia S.
@Propelld
Apr 19 03:05
ok
Should I see anything? or just get logs again?
Scott Leibrand
@scottleibrand
Apr 19 03:07
if those commands came back completely without any output, we'll have to fix something else
was the last npm run global-install successful?
if you're not sure, do cd ~/src/oref0 && git checkout setup-improvements && npm run global-install again and paste the end of the output
Natalia S.
@Propelld
Apr 19 03:09

try which oref0-determine-basal and then locate oref0-determine-basal

So I checked logs after this, and got

Checking deliverAt: 2019-04-19T03:08:18.965Z is within 1m of current time: Thu 18 Apr 23:08:19 EDT 2019
and that smb-suggested.json is less than 1m old
enact/smb-suggested.json: {"temp":"absolute","bg":153,"tick":-5,"eventualBG":140,"insulinReq":0,"reservoir":"224.1\n","deliverAt":"2019-04-19T03:08:18.965Z","sensitivityRatio":1,"COB":0,"IOB":0.071,"duration":30,"rate":1.5}
"COB: 0, Dev: -0.6, BGI: 0.0, ISF: 1.8, CR: 5, Target: 5.0, minPredBG 7.7, minGuardBG 7.1, IOBpredBG 7.1; Eventual BG 7.8 > 5.0 but Min. Delta -5.00 < Exp. Delta -0.2; setting current basal of 1.5 as temp. . Setting neutral temp basal of 1.5U/hr"
IOB: [153,148,144,141,137,135,132,131,129,128,128,127,127]
ZT: [153,152,152,151,151,151,151,151,152,152,153,153]
Temp refreshed: monitor/temp_basal.json: {"duration":0,"temp":"absolute","rate":0}
rm: cannot remove 'enact/smb-enacted.json': No such file or directory
enact/smb-enacted.json: "Rate: 1.5 Duration: 30"
Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Temp refreshed: monitor/temp_basal.json: {"duration":30,"temp":"absolute","rate":1.5}
No bolus needed. Settings less than 30 minutes old. grep: enact/bolused.json: No such file or directory
Refreshing pumphistory because: enacted, Pump profile refreshed; Could not parse autotune_data
Could not parse temptargets_data.
No temptargets found.
Settings refreshed; Pump history updated through 2019-04-18T23:08:23-04:00 with 2 new records; meal.json
but the commands themselves didn't return anything
Scott Leibrand
@scottleibrand
Apr 19 03:10
ok, that's good I guess
Natalia S.
@Propelld
Apr 19 03:10
It also set a temp basal on my pump
Scott Leibrand
@scottleibrand
Apr 19 03:10
with log output like that it looks like you're... yeah. :)
Natalia S.
@Propelld
Apr 19 03:10
Interesting
Scott Leibrand
@scottleibrand
Apr 19 03:11
so I have no idea why npm makes such a mess, but it looks like we somehow cleaned it up
Natalia S.
@Propelld
Apr 19 03:11
Oh ok
Scott Leibrand
@scottleibrand
Apr 19 03:11
but we had to do so manually
I'll need to figure out how to make setup-improvements do it automatically
Natalia S.
@Propelld
Apr 19 03:12
Ok, that's amazing. I appreciate your help
I will let you know tomorrow if I encounter any more problems?
I had one instance in the past where the loop didn't seem to take
So I hope it stays :)
Dana Lewis
@danamlewis
Apr 19 03:14
:clap:
Scott Leibrand
@scottleibrand
Apr 19 03:14
I just pushed a fix to add npm remove oref0 -g to run automatically when you do npm run global-install, so the next person with this Radio check failed. ImportError: No module named spi_serial error on dev can try that by doing cd ~/src/oref0 && git fetch && git checkout setup-improvements && git pull && npm run global-install
Natalia S.
@Propelld
Apr 19 03:14
Many many thanks to all of you
Dana Lewis
@danamlewis
Apr 19 03:14
Yes let us know if any issues pop up
Jon Cluck
@cluckj
Apr 19 03:54
:sweat_smile:
Tim Street
@tim2000s
Apr 19 08:46
Pulled dev down this morning to test the updated Autotune code and when I run it, I’m getting the following error.
home/.rootfs/usr/local/lib/node_modules/oref0/node_modules/yargs/index.js:5
const yargs = require('./yargs')
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-autotune-prep.js:29:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
Could not run oref0-autotune-prep ns-treatments.2019-04-17.json profile.json ns-entries.2019-04-17.json
Scott Leibrand
@scottleibrand
Apr 19 15:28
Your node is too old.
I believe oref0-setup will upgrade it for you.
tzachi-dar
@tzachi-dar
Apr 19 15:30
@scottleibrand just installed latest from dev and getting:
.mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
No wait required.
Listening: ......
I have used download drivers.

ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial

Scott Leibrand
@scottleibrand
Apr 19 15:33
See my message from 20:14 PDT
tzachi-dar
@tzachi-dar
Apr 19 15:36
OK, doing that. I thought that your fix was to have this done automatically.
Scott Leibrand
@scottleibrand
Apr 19 15:37
Only once I merge that branch. Need you to test it first.
tzachi-dar
@tzachi-dar
Apr 19 15:38
@scottleibrand getting the following error:

'''
up to date in 0.336s
npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T15_37_36_967Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm remove oref0 -g; npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g && npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-19T15_37_37_063Z-debug.log
root@oapsad1:~/src/oref0# ls ^C
root@oapsad1:~/src/oref0# ls /root/src/oref0/node_modules/oref0
/root/src/oref0/node_modules/oref0
'''

Scott Leibrand
@scottleibrand
Apr 19 15:39
Ok, everyone seems to be getting that, so we’ll need to figure out why, not just fix it.
ls -la /root/src/oref0/node_modules/oref0 ?
tzachi-dar
@tzachi-dar
Apr 19 15:40
/root/src/oref0/node_modules/oref0 -> ../../../../usr/lib/node_modules/oref0
ls /usr/lib/node_modules/oref0
gives nothing
Scott Leibrand
@scottleibrand
Apr 19 15:41
And ls -la ../../../../usr/lib/node_modules/oref0 ?
tzachi-dar
@tzachi-dar
Apr 19 15:41
/usr/lib/node_modules/oref0
Scott Leibrand
@scottleibrand
Apr 19 15:42
Ok, so the problem is we have that directory linked, but are trying to remove the target and reinstall it.
Not sure if there’s anything more elegant we can do within the dev code itself: we may need to have people remove and re-clone oref0 when upgrading.
Were you on master before?
tzachi-dar
@tzachi-dar
Apr 19 15:46
I did not upgrade. This is a 100% clean install.
Scott Leibrand
@scottleibrand
Apr 19 15:46
Did you let it install master and then do dev, or hit ^C before the master install?
tzachi-dar
@tzachi-dar
Apr 19 15:47
hit ^c before install.
One thing that did happen Is that I had a failure in

```root@oapsad1:~/src/oref0# npm run global-install
(node:1290) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpd ir() instead.

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

(node:1309) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpd ir() instead.
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try thi s instead:
npm WARN deprecated npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alterna tives.
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 n pm 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 ins tall -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-v7+
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
```

and I was running "npm run global-install" again and everything worked.
Scott Leibrand
@scottleibrand
Apr 19 15:48
K. That should have been fine to re-run. I think I’m gonna have to walk through that process and try to reproduce.
tzachi-dar
@tzachi-dar
Apr 19 15:49
ok.
Scott Leibrand
@scottleibrand
Apr 19 15:49
In the mean time, scroll up for the command to rm and re-clone oref0, and then do the setup-improvements thing again.
tzachi-dar
@tzachi-dar
Apr 19 15:50
I should be offline for the next 24 hours, but I can help in testing after that,
Dana Lewis
@danamlewis
Apr 19 18:36
Seeing a few issues on Fbk I’m pointing over here, can’t tell if there related to the npm issues or separate
whogeorge
@whogeorge
Apr 19 18:36
Hello. George from FB here. With error
Trying to install bootstrap and errors with broken packages
Dana Lewis
@danamlewis
Apr 19 18:38
@whogeorge thanks for hopping over here. Can you clarify, what type of rig are you installing? (Edison or Pi+HAT)? Was this an existing or a new rig?
whogeorge
@whogeorge
Apr 19 18:38
Edison
New rig
Dana Lewis
@danamlewis
Apr 19 18:39
K. And same error occurs if you run it again?
whogeorge
@whogeorge
Apr 19 18:39
Yes 3x now
Dana Lewis
@danamlewis
Apr 19 18:40
If you’re on a computer, can you drag and drop your screenshot of the error into the gitter window?
whogeorge
@whogeorge
Apr 19 18:40
Umm I'll have to switch from.mobile to laptop chat.
well that was easy .lol
Dana Lewis
@danamlewis
Apr 19 18:42
@cluckj is this one of the issues fixed by your 0.6.x patch?
I think so (with node)... and if so, the resolution are these steps: https://github.com/openaps/oref0/pull/1241#issuecomment-483458641
@whogeorge you’ve already done step 1 there, so you’ll start with step 2
Let me know if those steps are unclear for what to edit for each step
whogeorge
@whogeorge
Apr 19 18:47
Screen Shot 2019-04-19 at 2.46.27 PM.png
sorry not a mac person..... ok i"ll try that.
Scott Leibrand
@scottleibrand
Apr 19 18:47
looks like it wants a newer version of node. you're using oref0 master I assume?
Dana Lewis
@danamlewis
Apr 19 18:48
Yes, new Edison master install
whogeorge
@whogeorge
Apr 19 18:50
so I'm adding those 3 lines to the bootstrap?
Dana Lewis
@danamlewis
Apr 19 18:51
editing to make sure the last lines match
whogeorge
@whogeorge
Apr 19 18:52
sorry that makes no sense to me. :(
Dana Lewis
@danamlewis
Apr 19 18:52
If it’s easier, you can copy and paste bootstrap into a text editor, edit the end lines there, then copy and paste to terminal
whogeorge
@whogeorge
Apr 19 18:53
shrug
Dana Lewis
@danamlewis
Apr 19 18:53
(I’m not at my computer) @scottleibrand can you stick an edited bootstrap in a gist for @whogeorge to copy and paste? Then we can update the release notes later w/ the easier copy paste version
whogeorge
@whogeorge
Apr 19 18:53
I'm not sure what I'm editing and where
Dana Lewis
@danamlewis
Apr 19 18:54
Ok. Let’s see if Scott has a second to edit it for you so you can copy and paste
whogeorge
@whogeorge
Apr 19 18:55
i found it
Scott Leibrand
@scottleibrand
Apr 19 18:55
sorry, I'm multitasking w/ work
Dana Lewis
@danamlewis
Apr 19 18:57
@whogeorge k.
whogeorge
@whogeorge
Apr 19 19:00
nope
Dana Lewis
@danamlewis
Apr 19 19:01
Ok I should be at my computer in ~20 min and can give you a version to copy paste then
whogeorge
@whogeorge
Apr 19 19:02
sorry
I'll keep trying
Dana Lewis
@danamlewis
Apr 19 19:04
It’s ok. If you have time to wait, no worries
(This is a fix we are about to do a patch release on - sorry the last bit of testing is not straight forward but if this resolves your error then we’ll be able to release this weekend and it shouldn’t be a hassle for anyone else)
whogeorge
@whogeorge
Apr 19 19:13
Screen Shot 2019-04-19 at 3.11.20 PM.png
so now i only get here wih step 2 updated lines
do i go back now and change the last line and rerun?
Dana Lewis
@danamlewis
Apr 19 19:15
Was that output from making the changes to the bootstrap?
whogeorge
@whogeorge
Apr 19 19:15
what i screen shot above
looks like it connects to my wifi then stops
Dana Lewis
@danamlewis
Apr 19 19:16
Ok now follow step 3 instructions (you can use vi to edit the file, or wait 5 more min for me to log in and update the instructions)
Dana Lewis
@danamlewis
Apr 19 19:27
ok
copy and paste the whole thing from 2, like you did the boostrap. if you're not sure you did the bootstrap correct, you can start with step 1 again as well, it won't hurt
whogeorge
@whogeorge
Apr 19 19:30
standby
Dana Lewis
@danamlewis
Apr 19 19:30
:+1:
whogeorge
@whogeorge
Apr 19 19:30
just stops
afetr wifi SSID
Dana Lewis
@danamlewis
Apr 19 19:31
screenshot?
whogeorge
@whogeorge
Apr 19 19:31
Screen Shot 2019-04-19 at 3.31.19 PM.png
Dana Lewis
@danamlewis
Apr 19 19:33
ok this might be an underlying issue (here's what we're expecting to see: https://openaps.readthedocs.io/en/latest/_images/openaps-bootstrap-wifi-setup.png)
whogeorge
@whogeorge
Apr 19 19:33
yes.... i signed into my wifi
Scott Leibrand
@scottleibrand
Apr 19 19:34
@whogeorge the output you pasted looks fine as far as it goes
was that after you pasted the bootstrap script from step 1?
whogeorge
@whogeorge
Apr 19 19:35
i copied and pasted the new bootstrap thingy..... it went through its thing then asked to sign into WIFI... I signed in and then it stopped as showen
Scott Leibrand
@scottleibrand
Apr 19 19:35
ok, that's good. it got you online at least, so I think you can move on to pasting step 2 from the gist (https://gist.github.com/danamlewis/6f2cf0d997e834269063c48dd9d7dc2b)
whogeorge
@whogeorge
Apr 19 19:36
stand by
its running
whogeorge
@whogeorge
Apr 19 19:49
ok it seems to have worked and logged me out of edison
so after entering; cd && ~/src/oref0/bin/oref0-setup.sh
is shows.......
Screen Shot 2019-04-19 at 3.51.19 PM.png
whogeorge
@whogeorge
Apr 19 19:58
i dont thin it install the setup script
Scott Leibrand
@scottleibrand
Apr 19 20:13
can you make the terminal window bigger so we can see the context of where exactly it died there?
Scott Leibrand
@scottleibrand
Apr 19 20:23
I presume this happened after you were prompted to "Press Enter to run oref0-setup with the current release (master branch) of oref0, or press ctrl-c to cancel. " ?
Riko L
@Ricco555
Apr 19 20:56
is there a quickfix for npm error npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' ?
I was previously running all install process as root, so probably comes from that.
Scott Leibrand
@scottleibrand
Apr 19 21:02
running everything as root is the normal recommended way to install oref0 on a rig
are you running as a non-root user now?
Riko L
@Ricco555
Apr 19 21:03
yes..
Scott Leibrand
@scottleibrand
Apr 19 21:03
do you have to? Is this on a Pi or Edison rig, or something else?
Riko L
@Ricco555
Apr 19 21:03
actually i do not have to.. but I was seeing sudo commands
in npm global-install
Scott Leibrand
@scottleibrand
Apr 19 21:05
those are for people who aren't running on a rig, and therefore shouldn't run things as root
if you're running on a rig, you should do everything as root
Riko L
@Ricco555
Apr 19 21:06
I see. I'll revert back to root
I had some npm error on updated-setup branch. that made me rethink if I was supposed to run this as root
sorry. "setup-imprevements" branch
Scott Leibrand
@scottleibrand
Apr 19 21:08
that seems to be related to the way npm link had symlinked things before
the quick fix is to delete ~/src/oref0 and re-clone before running npm run global-install
I need to figure out how to reproduce the problem and fix it properly
Riko L
@Ricco555
Apr 19 21:17
it was complaining to /usr/local/lib/node_modules/oref0.. now it is OK. thanks
Riko L
@Ricco555
Apr 19 21:35

also.. now running oref0-setup and choose RFM69HCW with build from source and apparently the script did not go into

    if [ $buildgofromsource = true ]; then
        echo "Building Go pump binaries from source"
        echo "What type of radio do you use? Options are:"
        echo "1) cc1110 or cc1111"
        echo "2) cc1101"
        echo "3) RFM69HCW on /dev/spidev0.0 (walrus)"

for me to choose old walrus configuration

Riko L
@Ricco555
Apr 19 22:06
OK.. sorted this one also, by choosing other option ("5 other radio" instead of "3) RFM69HCW (DIY: SPI)").
openaps is running again.
although I am not quite sure why the setup didn't go into other menu as choosing to build from source was supposed to start the above quote.
Dana Lewis
@danamlewis
Apr 19 22:27
This is setup-improvements?
Riko L
@Ricco555
Apr 19 22:38
yes
Riko L
@Ricco555
Apr 19 22:48
I choose initially:
3) RFM69HCW (DIY: SPI)
then, [U]nofficial (possibly untested) version
then, build the Medtronic library from [S]ource
and it skipped the other menu for choosing how to build go binaries.
which is not entirely bad as now if I read the code well, then the spidev0.1 was already set, which is wrong for 'walrus'. So the end result is to go with the 5 other radio route.
to have a working radio at the end of the setup.
samueldemers2
@samueldemers2
Apr 19 23:26
Could somebody help me. Im trying to install urchin watch face on my pebble on android and i cant find à file explorer that let me chose the pebble app to open the pbw file.
Dana Lewis
@danamlewis
Apr 19 23:29
What I did on my iPhone was use a web browser and click on the file, and it opened in the Pebble app. Do you have the pebble app already on your Android?
samueldemers2
@samueldemers2
Apr 19 23:38
Yes. I got it working with pebble /rebble this afternoon.
samueldemers2
@samueldemers2
Apr 19 23:53
I got urchin working. I found an answer on reddit. You can open the pbw file from Dropbox.
Dana Lewis
@danamlewis
Apr 19 23:55
:+1: