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

31st
Aug 2018
Dromore1911
@Dromore1911
Aug 31 2018 03:32

Profile less than 60m old; Profile valid. Refreshedjq: error: Could not open file monitor/pumphistory-zoned.json: No such file or directory
jq: error: Could not open file settings/pumphistory-24h-zoned.json: No such file or directory
jq: error (at settings/pumphistory-24h-zoned.json:0): Cannot iterate over null (null)
module.js:674
throw err;
^

SyntaxError: /root/myopenaps/monitor/pumphistory-merged.json: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.Module._extensions..json (module.js:671:27)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js:43:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
pumphistoryCould not parse input data: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:47:37)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
and meal.json
Checking pump clock: "2018-08-30T19:39:30-07:00" is within 90s of current time: Thu Aug 30 20:30:23 PDT 2018
Pump clock is more than 55s off: attempting to reset it
Waiting for ntpd to synchronize... OK!
Setting pump time to Thu Aug 30 20:30:24 PDT 2018
serial.serialutil.SerialException: Attempting to use a port that is not open
Error: pump clock refresh error / mismatch
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!)
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
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.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Thu Aug 30 20:31:57 PDT 2018

Hey everyone, sorry I did that out of order, didn't mean to hit enter. But this is the error that i'm getting on my Edison rig. I just reinstalled openAPS to dev to see if that would fix anything. Also it seems as if logger is not running even though its in the crontab. I have a Pi zero rig installing right now but it is also running into errors. It was able to pick up the dexcom via Logger for about an hour last night then after that it failed again. Also during that hour my official receiver didn't get any BG's. Can anyone provide some insight on this? I've been playing manual diabetes for the past month and it really sucks.
Dromore1911
@Dromore1911
Aug 31 2018 04:50
Okay, i've reverted the edison to master because dev was all sorts of broken for me (No logger running, same errors as above) Im pulling BG's off logger now, its posting to NS, but now im getting mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
i know i've seen a fix for this before in here, going digging now.
Dromore1911
@Dromore1911
Aug 31 2018 05:13
Okay my chip appears to be broken, i got the 0x00 for fixing the subg rf spy. So the edison explorer is toast. Now its on to the pi zero board.
But i am still pulling BG's from the edison.
RaRalalala
@RaRalalala
Aug 31 2018 10:14

Hi there, looking for some help in the script setup, have ran it, completed the questions but I keep getting

Value error: No JSON object could be coded
Could not run nightscout autoconfiguration-device-crud

I'm not technical at all and I've no idea how to get past this. Any help welcome!

alimhassam
@alimhassam
Aug 31 2018 10:59
@Dromore1911 FYI, the dev branch has significant radio changes, and the switch from dev back to master hasn't been well tested. It's possible that it doesn't work, and that you might need a full fresh clean
Adi Barilan
@Adidushi
Aug 31 2018 15:04
henlo guys i installed openaps and used interactive setup (dev branch) and now i have a monitor folder in root with an empty glucose.json file and this error in l:
Continuing oref0-pump-loop at Fri 31 Aug 17:52:09 IDT 2018
Retry 3 of preflight
Preflight fail. Couldn't preflight
oref0-pump-loop failed. find: ‘enact’: No such file or directory
pump_loop_completed more than 15m old; waiting for 10 s silence before mmtuning
fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/dev/i2c-1'
    at Object.fs.openSync (fs.js:646:18)
    at peripheralSync (/root/src/openaps-menu/node_modules/i2c-bus/i2c-bus.js:95:21)
    at Bus.i2cWriteSync (/root/src/openaps-menu/node_modules/i2c-bus/i2c-bus.js:348:23)
    at Oled._transfer (/root/src/openaps-menu/node_modules/oled-i2c-bus/oled.js:136:25)
    at Oled._initialise (/root/src/openaps-menu/node_modules/oled-i2c-bus/oled.js:110:10)
    at new Oled (/root/src/openaps-menu/node_modules/oled-i2c-bus/oled.js:81:8)
    at Object.init (/root/src/openaps-menu/lib/display/ssd1306.js:36:24)
    at module.exports (/root/src/openaps-menu/lib/display/ssd1306.js:68:13)
    at Object.<anonymous> (/root/src/openaps-menu/scripts/status.js:41:68)
    at Module._compile (module.js:652:30)
grep: pump.ini: No such file or directory
Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Fri 31 Aug 17:52:45 IDT 2018
grep: pump.ini: No such file or directory
Listening for 10 s silence before mmtuning: grep: pump.ini: No such file or directory
Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Fri 31 Aug 17:52:45 IDT 2018
oref0-mmtune: This script should be run from the myopenaps directory, but was run from /root which does not contain openaps.ini.
cat: monitor/medtronic_frequency.ini: No such file or directory
Dromore1911
@Dromore1911
Aug 31 2018 15:11
@alimhassam I just reflashed the edison now, letting it reboot then ill let it install while im at work.
alimhassam
@alimhassam
Aug 31 2018 15:11
:+1:
fingers crossed, hopefully it'll all work smoothly.
tynbendad
@tynbendad
Aug 31 2018 21:12
i got this error on installing dev branch over an older dev branch (~may2018):
npm ERR! EXDEV: cross-device link not permitted, rename '/home/.rootfs/usr/lib/node_modules/.staging/psl-1fdc5599' -> '/home/.rootfs/usr/lib/node_modules/oref0/node_modules/psl'
i rm -rf'd the directory /home/.rootfs/usr/lib/node_modules/oref0
and it worked
global-install succeeded that is
then, on oref0-setup, it apparently re-runs global-install, and that failed (the same error)... i think it didn't matter (oref0-setup finished fine), but its disconcerting.
tynbendad
@tynbendad
Aug 31 2018 21:48
another old install/rig issue: i wasn't getting the right version of oref0-setup until i rm'd the /usr/bin/*oref* and /usr/local/bin/*oref* cruft (and then re-did global-install, w/fix above)