These are chat archives for nightscout/intend-to-bolus
node-pre-gyp ERR! Completion callback never invoked! node-pre-gyp ERR! System Linux 3.10.17-poky-edison+ node-pre-gyp ERR! command "/home/.rootfs/usr/bin/node" "/root/Lookout/node_modules/ node-pre-gyp ERR! cwd /root/Lookout/node_modules/usb node-pre-gyp ERR! node -v v6.14.3 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! This is a bug in `node-pre-gyp`. node-pre-gyp ERR! Try to update node-pre-gyp
I have a problem with my NS pump and OpenAPS pills not updating (
Couldn't generate ns-status.json in
ns-loop.log). I traced it down to the battery level not being retrieved properly.
openaps-menu/scripts/getvoltage.sh returns an empty output, or actually almost empty: one character is written to
monitor/edison-battery.json, causing the call to
ns-status to malfunction.
At the moment, I'm powering directly on the USB port, so I'm not sure what the proper behavior of
getvoltage.sh should be. It might be related to my screen breaking (problems started after that; I didn't replace it yet). What would be the best way to fix this, apart from forcing
oref0-ns-loop.sh to ignore
edison-battery.json? I'm running a Pi-0 + HAT on 0.7.0-dev.
So there's not much there; and the file is just one byte long
root@rpi0:~/myopenaps# cat monitor/edison-battery.json root@rpi0:~/myopenaps#
root@rpi0:~/myopenaps# ~/src/openaps-menu/scripts/getvoltage.sh root@rpi0:~/myopenaps#
oref0-ns-loop.sh, in the function
format_ns_statusthere is a check:
if [ -s monitor/edison-battery.json ]; thenthat doesn't catch the one-character file
if test $(wc -c < monitor/edison-battery.json) -gt 1; then. I tried with jq, but it doesn't error out on the one-character file, so I'm not sure how to check for it other than looking at the file length.