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

17th
Aug 2018
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:39
hi @danamlewis
Dana Lewis
@danamlewis
Aug 17 2018 00:40
@danielharrelson hi. can you post the logs again here? the things that are odd is that it's not pulling settings; and I think there was an error related to a date, but not sure what else was erroring therre
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:40
@danamlewis i saw an error related to time, it said it was less than 30s off, so was not setting date or something.
It's been operating with Loop just fine, i closed out loop and turned off rileylink. interested in the autotune (nightly)
Dana Lewis
@danamlewis
Aug 17 2018 00:45
can you cat your preferences.json?
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:45
it's empty
oh, preferences. one sec
Dana Lewis
@danamlewis
Aug 17 2018 00:45
did you run oref0 setup?
k. what is empty?
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:45
in ~/myopenaps/settings ?
Dana Lewis
@danamlewis
Aug 17 2018 00:46
cd ~/myopenaps && cat preferences.json
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:46
{ "max_iob": 5, "max_daily_safety_multiplier": 3, "current_basal_safety_multiplier": 4, "autosens_max": 1.2, "autosens_min": 0.7, "rewind_resets_autosens": true, "adv_target_adjustments": false, "exercise_mode": false, "wide_bg_target_range": false, "sensitivity_raises_target": true, "unsuspend_if_no_temp": false, "enableSMB_with_COB": false, "enableSMB_with_temptarget": false, "enableUAM": true, "curve": "rapid-acting", "offline_hotspot": false }
Dana Lewis
@danamlewis
Aug 17 2018 00:48
what did you say was empty? let's look at profile.json next
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:48
empty.
root@OpenAPS:~/myopenaps/settings# cat profile.json
root@OpenAPS:~/myopenaps/settings#
is that auto pulled from pump? or do I need to generate it? I have a copy from my loop auto-tune
Dana Lewis
@danamlewis
Aug 17 2018 00:51
ah, did you try to use that somehow? it should be generated from the pump.
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:51
i have not tried to use it

-rw-r--r-- 1 root root 0 Aug 16 20:50 profile.json

It was last touched 2 minutes ago... but, maybe from my cat.

Dana Lewis
@danamlewis
Aug 17 2018 00:53
yea it's empty.
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:53
nope, cat doesn't affect time. so :)
Dana Lewis
@danamlewis
Aug 17 2018 00:53
is the log errors different every time, or is the same repeated errors here about profile.json unexpected input?
(trying to figure out why it can tune, and read some stuff, but isn't getting your settings off successfully)
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:55
same errors
Dana Lewis
@danamlewis
Aug 17 2018 00:56
so, I think the easiest next step is to try installing again, and watching to see if it barfs mid-setup, but since you already tried a fresh install, tagging @scottleibrand for alternative ideas
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:56
fresh oref-install or reflash edison ?
Dana Lewis
@danamlewis
Aug 17 2018 00:56
oref0 install
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:57
i goofed up the first time, started diving into the errors on jubi 4, and then realized this was supposed to be easy.... then i noticed in the instructions "v2.0 only" lol
just reinstall from the .sh script ?
Scott Leibrand
@scottleibrand
Aug 17 2018 00:58
yeah, as with the jubi 4 stuff, probably easier to reinstall with oref0-setup or oref0-runagain than troubleshoot further
if you get the same thing after reinstall you can start running pump comms manually to see what's barfing
Daniel Harrelson
@danielharrelson
Aug 17 2018 00:59
let me try that first?
i could probably stand .1 unit or more at the moment as a test with comms
Scott Leibrand
@scottleibrand
Aug 17 2018 01:00
also cat your preferences.json through jq to see if it's valid json
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:00
root@OpenAPS:~/myopenaps# cat preferences.json | jq . { "max_iob": 5, "max_daily_safety_multiplier": 3, "current_basal_safety_multiplier": 4, "autosens_max": 1.2, "autosens_min": 0.7, "rewind_resets_autosens": true, "adv_target_adjustments": false, "exercise_mode": false, "wide_bg_target_range": false, "sensitivity_raises_target": true, "unsuspend_if_no_temp": false, "enableSMB_with_COB": false, "enableSMB_with_temptarget": false, "enableUAM": true, "curve": "rapid-acting", "offline_hotspot": false } root@OpenAPS:~/myopenaps#
cat'd just fine
Scott Leibrand
@scottleibrand
Aug 17 2018 01:00
killall -g oref0-pump-loop && cd ~/myopenaps && openaps invoke settings/settings.json I think
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:01
root@OpenAPS:~/myopenaps# killall -g oref0-pump-loop && cd ~/myopenaps && openaps invoke settings/settings.json
pump://JSON/read_settings/settings/settings.json
Scott Leibrand
@scottleibrand
Aug 17 2018 01:01
IIRC you said it's zero bytes when oref0-pump-loop does it?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:02
pastebin is cleaner than pasting in here
i just changed the battery today, it's good.
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:03
i tried 3, it didn't appear to format right.
Scott Leibrand
@scottleibrand
Aug 17 2018 01:03
try an openaps mmtune just before the openaps invoke
the three backticks have to be separated by a newline from the code block
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:03
&& or piped ?
Scott Leibrand
@scottleibrand
Aug 17 2018 01:03
&&
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:05
SUCCESS
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"868.390", 5, -50 pump://JSON/read_settings/settings/settings.json
reporting settings/settings.json
```
that was the tail end of it.
i have a settings.json now
Scott Leibrand
@scottleibrand
Aug 17 2018 01:06
and cat settings/settings.json ?
if it looks valid, then try the loop again
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:07
how do i restart? or will cron pick it up?
Scott Leibrand
@scottleibrand
Aug 17 2018 01:09
yeah, cron will try to start it once a minute
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:12
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight OK. Old pumphistory-24h, waiting for 30 seconds of silence: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Old pumphistory-24h refreshed
Old settings:
module.js:340
    throw err;
          ^
Error: Cannot find module '/root/myopenaps/settings/bg_targets.json'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    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-get-profile.js:102:26)
    at Module._compile (module.js:456:26)
    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 Function.Module.runMain (module.js:497:10)
Settings refreshed; Profile valid. Refreshed
module.js:485
    throw err;
          ^
SyntaxError: /root/myopenaps/settings/profile.json: Unexpected end of input
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:482:27)
    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-calculate-iob.js:44:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
 pumphistoryCould not parse input data:  [SyntaxError: Unexpected end of input]
 and meal.json
that was right after the "old settings:" line
Scott Leibrand
@scottleibrand
Aug 17 2018 01:19
do you want to dig into everything oref0-pump-loop does, or just try a reinstall?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:20
well, i've already reinstalled once. :) If i'm not bugging you, i'd like to figure out why it's not pulling my profile ;)
Scott Leibrand
@scottleibrand
Aug 17 2018 01:20
maybe first step is to run oref0-pump-loop with debugging turned on
killall -g oref0-pump-loop && cd ~/myopenaps/ && OREF0_DEBUG=1 oref0-pump-loop
dev 0.7.0 or master 0.6.2?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:23
what errors are you looking for ?
master 0.6.2
Scott Leibrand
@scottleibrand
Aug 17 2018 01:24
oh, looks like debugging kinda sucks on master
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:24
should i go to dev branch ?
if so, will do. no prob
Scott Leibrand
@scottleibrand
Aug 17 2018 01:24
I'm lazy and disinclined to troubleshoot one-off issues if they've already been fixed in new code. :)
so I'd vote yes
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:25
i'm lazy too, hence loop / openaps :)
automate the boring things.
i only see 0.6.2 in dev
where do you see 0.6.2?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:35
under the tags.
Scott Leibrand
@scottleibrand
Aug 17 2018 01:35
we only tag releases
(when we merge them to master)
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:35
i was looking at the tags in dev branch
so as long as i checkout dev, i'm good ?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:38
nevermind, i answered my question
root@OpenAPS:~# cat src/oref0/package.json
{
"name": "oref0",
"version": "0.7.0-dev",
Scott Leibrand
@scottleibrand
Aug 17 2018 01:38
make sure to install it, and re-run oref0-setup
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:38
still haven't gotten used to git :) know linux well
running the global install now,
Scott Leibrand
@scottleibrand
Aug 17 2018 01:39
yeah, takes some gitting used to
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:40
should i re login since i set the debug environment variable?
Would you like to [D]ownload precompiled Go pump communication library or install an [U]nofficial (possibly untested) version.[D]/U
?
D (i'm guessing?)
Scott Leibrand
@scottleibrand
Aug 17 2018 01:44
yeah. do we need to add something at the top about the [] options being default, and just hit enter if there's a multiple choice question you're not sure about?
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:44
I understood [D] was default... I just didn't know what you want to test
but since i want to loop overnight, i will go with the tested one ;)
Daniel Harrelson
@danielharrelson
Aug 17 2018 01:51
Continuing oref0-pump-loop at Thu Aug 16 21:45:03 EDT 2018
mmtune: radio_locale=WW
/usr/local/bin/oref0-pump-loop: line 947: Go-mmtune: command not found
Usage: grep [OPTION]... PATTERN [FILE]...
Scott Leibrand
@scottleibrand
Aug 17 2018 01:54
did the install complete successfully? that looks like it didn't install the Go stuff
Sacha M
@coolestkidsever
Aug 17 2018 01:56
Hi all, I'm trying (unsuccessfully) to build a new rig with PiHat.. I had an earlier issue with libpython2.7, but I updated the Pi Bakery, and got a bit further.. but now I've got scary looking red text ...that says" Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
""
and the install still isn't getting to the point when I can control-c
Does anyone have any ideas on this please?
Scott Leibrand
@scottleibrand
Aug 17 2018 01:57
some folks who've had problems with pibakery have had better luck with the raspbian lite image
Sacha M
@coolestkidsever
Aug 17 2018 01:59
ok will give that a whirl, thanks
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:01
@scottleibrand my whole log
hopefully I sanitized it.

Preflight OK. Old settings: Profile invalid: -rw-r--r-- 1 root root 0 Aug 16 21:38 settings/profile.json

Is what is showing up in the logs

Scott Leibrand
@scottleibrand
Aug 17 2018 02:06
you'll want to change your API secret now in case someone finds or guesses your NS site URL
and maybe edit the pastebin to redact that
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:07
it's sanitized to XXXXXXXXs
Scott Leibrand
@scottleibrand
Aug 17 2018 02:07
no you only redacted the NS URL, not the API secret
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:07
:|
Scott Leibrand
@scottleibrand
Aug 17 2018 02:07
after you deal with that, try ls -la /usr/local/bin/mmtune /usr/local/bin/Go-mmtune
oref0-setup runs mv /usr/local/bin/mmtune /usr/local/bin/Go-mmtune || die "Couldn't mv mmtune"
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:08
my API secret isn't in there.
crap, missed that.. no biggie
root@OpenAPS:~# ls -la /usr/local/bin/mmtune /usr/local/bin/Go-mmtune
ls: cannot access /usr/local/bin/mmtune: No such file or directory
-rwxr-xr-x 1 1000 1000 3587136 Aug 8 15:48 /usr/local/bin/Go-mmtune
root@OpenAPS:~#
Scott Leibrand
@scottleibrand
Aug 17 2018 02:09
which Go-mmtune
and echo $PATH
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:10

root@OpenAPS:~# which Go-mmtune
/usr/local/bin/Go-mmtune
root@OpenAPS:~# whereis Go-mmtune
Go-mmtune: /home/.rootfs/usr/local/bin/Go-mmtune
root@OpenAPS:~# echo $path

root@OpenAPS:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/bin:/bin

Scott Leibrand
@scottleibrand
Aug 17 2018 02:10
crontab -l | grep PATH
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:10
root@OpenAPS:~# crontab -l | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
edit my path ?
Scott Leibrand
@scottleibrand
Aug 17 2018 02:11
hmm, not sure what it's complaining about
/usr/local/bin/Go-mmtune exists and is in both PATHs
so not sure why you're getting Go-mmtune: command not found
reboot for kicks and see if it recurs?
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:12
okay.
Scott Leibrand
@scottleibrand
Aug 17 2018 02:12
or check logs again first
could be it was running in cron while install was ongoing
ah, yeah, that looks like what it was
mmtune: "868.350", 3, -68 waiting for 16 second silence before continuing
so it started working toward the end
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:13
ah, already reboot.
Scott Leibrand
@scottleibrand
Aug 17 2018 02:13
no worries. watch logs after reboot and see if it loops
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:14
how long should it take to generate the profile and settings ?
well, settings is present. profile.json is still blank
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:30
it's been 20 minutes now, still errors with profile.json
Preflight OK. Old settings: Profile invalid: -rw-r--r-- 1 root root 0 Aug 16 21:38 settings/profile.json
Couldn't refresh_old_profile
Scott Leibrand
@scottleibrand
Aug 17 2018 02:35
maybe now try the debug pump-loop
killall -g oref0-pump-loop && cd ~/myopenaps/ && OREF0_DEBUG=1 oref0-pump-loop
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:36
root@OpenAPS:~/myopenaps/settings# openaps use killall -g oref0-pump-loop && cd ~/myopenaps/ && OREF0_DEBUG=1 oref0-pump-loop
Not an openaps environment, run: openaps init
Scott Leibrand
@scottleibrand
Aug 17 2018 02:43
ditch the openaps use
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:44
er, i didn't notice that.
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:51
logs don't appear more verbose
looks like it watch dog'd
Rebooting to fix radio errors!
The system is going down for reboot at Thu 2018-08-16 22:55:11 EDT!



Starting oref0-pump-loop at Thu Aug 16 22:50:13 EDT 2018 with 24 second wait_for_silence:
Waiting up to 4 minutes for new BG: First loop: not waiting

Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Thu Aug 16 22:50:41 EDT 2018
Preflight OK. Old settings:
Broadcast message from root@OpenAPS (Thu 2018-08-16 22:51:11 EDT):

Rebooting to fix radio errors!
The system is going down for reboot at Thu 2018-08-16 22:55:11 EDT!

Profile invalid: -rw-r--r-- 1 root root 0 Aug 16 21:38 settings/profile.json
Scott Leibrand
@scottleibrand
Aug 17 2018 02:55
are you watching stdout or pump-loop.log?
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:56
the "l" alias
Scott Leibrand
@scottleibrand
Aug 17 2018 02:56
when you run the OREF0_DEBUG=1 oref0-pump-loop it prints to stdout
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:56
okay.
i'll ^C the tail
Scott Leibrand
@scottleibrand
Aug 17 2018 02:56
the radio errors could be due to running things manually and fighting over the radio
Daniel Harrelson
@danielharrelson
Aug 17 2018 02:57
got some errors on STD out now
TypeError: 'NoneType' object has no attribute '__getitem__'
settings/insulin_sensitivities.json  raised  'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/units.py", line 46, in main
    results = self.convert(program)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/units.py", line 73, in convert
    assert insulin_sensitivities['units'] in ['mg/dL', 'mmol/L']
TypeError: 'NoneType' object has no attribute '__getitem__'
settings/insulin_sensitivities.json  raised  'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/units.py", line 46, in main
    results = self.convert(program)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/units.py", line 73, in convert
    assert insulin_sensitivities['units'] in ['mg/dL', 'mmol/L']
TypeError: 'NoneType' object has no attribute '__getitem__'
```
Scott Leibrand
@scottleibrand
Aug 17 2018 02:58
what's your ISF schedule on the pump? any zeros?
(or do you even have one configured?)
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:00
that's under bolus wizard?
it's off
Scott Leibrand
@scottleibrand
Aug 17 2018 03:01
there's your problem
Loop doesn't use the pump settings, but OpenAPS does
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:04
okay, just configured the wizard.
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:10
Success! You're the man @scottleibrand :D
Dana Lewis
@danamlewis
Aug 17 2018 03:12
If you're running the rig for Autotune purposes - remember that if you change in Loop, to push that back to the pump, so Autotune tunes from the profile you are using
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:13
gotcha
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:13
i was just reading through that :)
Dana Lewis
@danamlewis
Aug 17 2018 03:16
^ that's super old, so likely you'll find some other places to update/improve too
Daniel Harrelson
@danielharrelson
Aug 17 2018 03:16
I will look into it in the morning, and see what I can help improve upon
Dana Lewis
@danamlewis
Aug 17 2018 03:23
:+1:
Sacha M
@coolestkidsever
Aug 17 2018 03:30
Hi all, I was able to get the install to work - on the new Pi hat.. but when it came to "reboot" - the command did nothing and it seems the only way I could get it to turn off was to unplug everything - has anyone had this happen? and now, I can't actually get it back onto the network to log back in :-(
Scott Leibrand
@scottleibrand
Aug 17 2018 03:31
yes, pibakery does something weird with the reboot command
perhaps we should change the docs back to using the raspbian lite image by default and relegate the pibakery workflow to an expand-a-box
Ebgineer
@Ebgineer
Aug 17 2018 03:33
It would be cool if we could figure out how to unbreak reboot. Pibakery workflow is otherwise really slick.
Jon Cluck
@cluckj
Aug 17 2018 03:33
reboot -f works
Sacha M
@coolestkidsever
Aug 17 2018 03:34
I can't actually log into Pi at all now to try and reboot :-)
Ebgineer
@Ebgineer
Aug 17 2018 03:35
@coolestkidsever did you try to SSH login to the IP address instead of the host name?
lyntonr
@lyntonr
Aug 17 2018 03:36
I had that issue and solved it by NOT adding the onthego module during pibakery install, (which is in the docs as an extra option example) if you cant reboot then other issues will also occur (cant remeber what offhand but it definitely indicates you need to reinstall.
Sacha M
@coolestkidsever
Aug 17 2018 03:42
@Ebgineer I usually only log in with IP addresses as my pc never recognizes host names.. I’m back in now (pc was being a punk)..
@lyntonr I’ve only just got everything installled, but you think I’ll need to start from scratch again due to reboot error/issue?
Ebgineer
@Ebgineer
Aug 17 2018 03:42
nice :)
lyntonr
@lyntonr
Aug 17 2018 03:47
@danamlewis is this the "register carbs" line in pumploop that you meant if so it has count both the 80g wizard entries as 160g
Aug 16 19:59:10 openaps pump-loop.log:  Pump history updated through 2018-08-16T19:41:30+10:00; meal.json refreshed: {"carbs":160,"nsCarbs":160,"bwCarbs":0,"journalCarbs":0,"mealCOB":120,"currentDeviation":1.74,"maxDeviation":2.12,"minDeviation":2.12,"slopeFromMaxDeviation":-0.067,"slopeFromMinDeviation":0,"allDeviations":[2,2],"lastCarbTime":1534412490000,"bwFound":false}
Sacha M
@coolestkidsever
Aug 17 2018 03:59
Might be a dump question, but second rig should just show up on papertail log aye? or do i need to do something special in papertrail to connect second rig (I can see loop at the moment from rig, but not from papertrail)
lyntonr
@lyntonr
Aug 17 2018 04:00
@coolestkidsever Yes I know its painful but it will work eventually :) Did you add the onthego module, I did this many times and for me that was the fix to remove it. I logged all this in this forum some weeks ago if you search for me you should find it somewhere. I dont remember the other issues but they were serious and the reboot issue could not be solved. Besides anything else it means you have to manually power off to reboot.
Arnoud82
@Arnoud82
Aug 17 2018 04:37
Is no fix yet for getting BG uploaded to NS?
Or is there someone who has it running?
tepidjuice
@tepidjuice
Aug 17 2018 04:55
Could someone link the instructions for setting up the raspberry pi 0? I can only find the old raspberry pi instructions.
Scott Leibrand
@scottleibrand
Aug 17 2018 04:57
Start from the top: they’re in the main flow.
Sacha M
@coolestkidsever
Aug 17 2018 04:59
I've just re-setup again without using PiBakery - and it took me a bit of googling to get wifi and ssh setup - i got there in the end!
@scottleibrand you mentioned wanting to write it up without pibakery.. I've got some notes.. want to do a separate page on it?
or you've already got this written somewhere?
Scott Leibrand
@scottleibrand
Aug 17 2018 05:19
We just need to resurrect the old version of the docs before we put in the Pi bakery stuff.
git has all the history, if you want to go spelunking.
Sacha M
@coolestkidsever
Aug 17 2018 05:42
Is there a todo list of things that you need to do (or do differently) when setting up multiple rigs? I don't want to miss anything...
lyntonr
@lyntonr
Aug 17 2018 09:36
@scottleibrand @danamlewis bad news. Bolus wizard for 90g at 19:04. Appeared as 90 gram carb correction and missed a whopping 16.2 units of insulin temp nasals got set to max allowable of 4 units per hour. I manually canceled temp bolus about 10 min later. Its 19:34 now and still the real entry with the insulin in it has not appeared. This would definitely brought about a major hypo.
lyntonr
@lyntonr
Aug 17 2018 10:30
20:25 now and the insulin has still not showed up, I have manually added the insulin entry myself in nightscout now. I'm not going to use bolus wizard anymore its screwing up my data too much not to mention the danger of hypos.
alimhassam
@alimhassam
Aug 17 2018 10:35
@lyntonr can you save your ~myopenaps/monitor/pumphistory*.json file? And see if the bolus and boluswizard entries are present?
And also maybe try to run pumphistory command manually?
lyntonr
@lyntonr
Aug 17 2018 12:18
},
  {
    "timestamp": "2018-08-17T19:04:10+10:00",
    "_type": "Bolus",
    "amount": 16.2,
    "programmed": 16.2,
    "unabsorbed": 0.8,
    "duration": 0
  },
  {
    "timestamp": "2018-08-17T19:04:10+10:00",
    "_type": "BolusWizard",
    "bg": 0,
    "carb_input": 90,
    "bg_target_low": 5000,
    "bg_target_high": 6000,
    "sensitivity": 2800,
    "carb_ratio": 6.5,
    "correction_estimate": 3.2,
    "food_estimate": 13.8,
    "unabsorbed_insulin_total": 0.8,
    "bolus_estimate": 16.2
  },
lyntonr
@lyntonr
Aug 17 2018 12:29
Aug 17 19:04:13 openaps network.log:  Finished oref0-online at Fri 17 Aug 19:04:13 AEST 2018.
Aug 17 19:04:26 openaps ns-loop.log:  { "carbs": 0, "mealCOB": 0, "reason": "Could not parse input data" }
Aug 17 19:04:26 openaps ns-loop.log:  ns_meal_carbs failed
Aug 17 19:04:28 openaps ns-loop.log:  {"batteryVoltage":4019.9999999999995,"battery":89}
Aug 17 19:04:32 openaps autosens-loop.log:  u(x!!x!xxxx22h=xxxxxxxxxxxx23hxxxxxxxxxxxx0h=xxx)+++++++++1h+++---++++++2h=-+++++----+-3h---++--+--+-4h=----+-++-+++5h---+------++6h=++---++-+-++7h+------+----8h=+-+------+--9h+--------+--10h=+++++--!!u(x!42g(x11hxxxxxxxxxxx12h=xxxxxxxxxxxx13hxxxxxxxxxxxx14h=xxxxxxxx!!x!50gxxxxxxxxxxxx16h=xxxx0gx)u(xxxxxxx17hxxxxxxxxxxxx18h=xxxxxxxxxxx 
Aug 17 19:04:32 openaps autosens-loop.log:  Using most recent 96 deviations since Thu Aug 16 2018 20:12:51 GMT+1000 (AEST)
Aug 17 19:04:32 openaps autosens-loop.log:  35% of non-meal deviations positive (>50% = resistance)
Aug 17 19:04:32 openaps autosens-loop.log:  58% of non-meal deviations negative (>50% = sensitivity)
Aug 17 19:04:32 openaps autosens-loop.log:  RMS deviation: 4.81
Aug 17 19:04:32 openaps autosens-loop.log:  Insulin sensitivity detected: ISF adjusted from 49.701 to 52
Aug 17 19:04:32 openaps autosens-loop.log:  Calculating sensitivity using all non-exluded data (up to 24h)
Aug 17 19:04:32 openaps autosens-loop.log:  Setting lastSiteChange to Thu Aug 16 2018 20:12:51 GMT+1000 (AEST) using timestamp 2018-08-16T20:12:51+10:00
Aug 17 19:04:49 openaps ns-loop.log:  {"BG":272,"IOB":3.365,"rate":null,"duration":null,"units":null}
Aug 17 19:04:53 openaps pump-loop.log:  Preflight OK. Profile less than 60m old; Profile valid. Pump history updated through 2018-08-17T19:04:10+10:00; meal.json Skipping bolus wizard entry 0 in the pump history with 90 g carbs and no insulin.
Aug 17 19:04:53 openaps pump-loop.log:  Timestamp of bolus wizard: 2018-08-17T19:04:10+10:00
Aug 17 19:05:06 openaps network.log:  Starting oref0-online at Fri 17 Aug 19:05:06 AEST 2018.
Aug 17 19:05:08 openaps network.log:  At Fri 17 Aug 19:05:07 AEST 2018 my wifi network name is Tomato_2G
Aug 17 19:05:08 openaps network.log:  At Fri 17 Aug 19:05:08 AEST 2018 my local wifi IP is: 192.168.1.19
Aug 17 19:05:08 openaps network.log:  At Fri 17 Aug 19:05:08 AEST 2018 my Bluetooth PAN is not connected
Aug 17 19:05:11 openaps network.log:  At Fri 17 Aug 19:05:08 AEST 2018 my public IP is: 45.248.79.251
Aug 17 19:05:12 openaps network.log:  At Fri 17 Aug 19:05:11 AEST 2018 my local hotspot is not running (and not enabled in preferences.json)
Aug 17 19:05:13 openaps network.log:  Finished oref0-online at Fri 17 Aug 19:05:13 AEST 2018.
Aug 17 19:05:26 openaps autosens-loop.log:  u(x!!x!xxxx22h=xxxxxxxxxxxx23hxxxxxxxxxxxx0h=xxx)+++++++++1h+++---++++++2h=-+++++----+-3h---++--+--+-4h=----+-++-+++5h---+------++6h=++---++-+-++7h+------+----8h=+-+------+--9h+--------+--10h=+++++--!!u(x!42g(x11hxxxxxxxxxxx12h=xxxxxxxxxxxx13hxxxxxxxxxxxx14h=xxxxxxxx!!x!50gxxxxxxxxxxxx16h=xxxx0gx)u(xxxxxxx17hxxxxxxxxxxxx18h=xxxxxxxxxxx 
Aug 17 19:05:26 openaps autosens-loop.log:  Using most recent 135 deviations since Thu Aug 16 2018 20:12:51 GMT+1000 (AEST)
Aug 17 19:05:26 openaps autosens-loop.log:  43% of non-meal deviations positive (>50% = resistance)
Aug 17 19:05:26 openaps autosens-loop.log:  50% of non-meal deviations negative (>50% = sensitivity)
Aug 17 19:05:26 openaps autosens-loop.log:  RMS deviation: 4.65
Aug 17 19:05:26 openaps autosens-loop.log:  Insulin sensitivity detected: ISF adjusted from 49.701 to 50
Aug 17 19:05:26 openaps autosens-loop.log:  Using 8h autosens ratio of 0.95 (ISF 52)
Aug 17 19:05:27 openaps autosens-loop.log:  Autosens refreshed: {"ratio":0.95}
Aug 17 19:05:27 openaps autosens-loop.log:  Completed oref0-autons-loop at Fri 17 Aug 19:05:27 AEST 2018
Aug 17 19:05:32 openaps pump-loop.log:  refreshed: {"carbs":50,"nsCarbs":50,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":2.81,"maxDeviation":0,"minDeviation":-1.84,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0.915,"allDeviations":[3,0,0,0,-2],"lastCarbTime":1534481201000,"bwFound":false}
Aug 17 19:05:35 openaps ns-loop.log:  [{"carbs":90,"ratio":"6.5","wizard":{"timestamp":"2018-08-17T19:04:10+10:00","_type":"BolusWizard","bg":0,"carb_input":90,"bg_target_low":5000,"bg_target_high":6000,"sensitivity":2800,"carb_ratio":6.5,"correction_estimate":3.2,"food_estimate":13.8,"unabsorbed_insulin_total":0.8,"bolus_estimate":16.2},"timestamp":"2018-08-17T19:04:10+10:00","created_at":"2018-08-17T19:04:10+10:00","eventType":"Carb Correction","notes":"Food estimate 13.8\nCorrection estimate 3.2\nBolus estimate 16.2\nTarget low 5000\nTarget high 6000\nHypothetical glucose delta 0","medtronic":"mm://openaps/mm-format-ns-treatments/Carb Correction","enteredBy":"openaps://medtronic/754","_id":"5b768fded774304a9df6b0a4"}]
Aug 17 19:05:35 openaps ns-loop.log:  Completed oref0-ns-loop at Fri 17 Aug 19:05:35 AEST 2018
Aug 17 19:05:43 openaps pump-loop.log:  Listening for 10 s silence: Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Aug 17 19:05:43 openaps pump-loop.log:  Continuing oref0-pump-loop at Fri 17 Aug 19:05:43 AEST 2018
Aug 17 19:05:45 openaps pump-loop.log:  Checking that pump clock: "2018-08-17T19:05:44+10:00" is within 90s of current time: 2018-08-17T19:05:45+1000
Aug 17 19:06:05 openaps pump-loop.log:  Temp refreshed: monitor/temp_basal.json: {"duration":26,"temp":"absolute","rate":3.45}
Aug 17 19:06:05 openaps pump-loop.log: {"carbs":50,"nsCarbs":50,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":2.81,"maxDeviation":0,"minDeviation":-1.84,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0.915,"allDeviations":[3,0,0,0,-2],"lastCarbTime":1534481201000,"bwFound":false}
Aug 17 19:06:06 openaps network.log:  Starting oref0-online at Fri 17 Aug 19:06:06 AEST 2018.
Pumphistory and logs from that time.
alimhassam
@alimhassam
Aug 17 2018 12:48
So the bolus entry is there. Is it still not showing up? Can you check in pump loop if it was accounted in the job at any time?
lyntonr
@lyntonr
Aug 17 2018 12:59
Can you elaborate?
lyntonr
@lyntonr
Aug 17 2018 13:28
I searched pump loop for 16.2 ,the amount of insulin missing, and got this : Aug 17 19:50:43 openaps pump-loop.log: {"iob":16.855,"activity":0.1195,"basaliob":3.168,"bolusiob":13.687,"netbasalinsulin":7.15,"bolusinsulin":16.2,"time":"2018-08-17T09:49:59.000Z","iobWithZeroTemp":{"iob":16.855,"activity":0.1195,"basaliob":3.168,"bolusiob":13.687,"netbasalinsulin":7.15,"bolusinsulin":16.2,"time":"2018-08-17T09:49:59.000Z"},"lastBolusTime":1534496650000,"lastTemp":{"rate":0,"timestamp":"2018-08-17T19:44:40+10:00","started_at":"2018-08-17T09:44:40.000Z","date":1534499080000,"duration":6.32}} Aug 17 19:55:21 openaps pump-loop.log: {"iob":16.158,"activity":0.1228,"basaliob":2.926,"bolusiob":13.232,"netbasalinsulin":7.05,"bolusinsulin":16.2,"time":"2018-08-17T09:54:48.000Z","iobWithZeroTemp":{"iob":16.158,"activity":0.1228,"basaliob":2.926,"bolusiob":13.232,"netbasalinsulin":7.05,"bolusinsulin":16.2,"time":"2018-08-17T09:54:48.000Z"},"lastBolusTime":1534496650000,"lastTemp":{"rate":0,"timestamp":"2018-08-17T19:44:40+10:00","started_at":"2018-08-17T09:44:40.000Z","date":1534499080000,"duration":11.13}}
alimhassam
@alimhassam
Aug 17 2018 13:29
So openAps did see the bolus
But are you saying that there was a delay and that the loop didn't consider the bolus initially? Can you confirm at what time it started considering this insulin?
lyntonr
@lyntonr
Aug 17 2018 13:35
The first time above is 19:50, bolus was at 19:04 NS showed the 90g as a carb correction with no insulin, then immediately after high temp basals were started.
alimhassam
@alimhassam
Aug 17 2018 13:38
Can you see if iob was lower in previous loops between 19:04 and 19:50?
And just to confirm which branch are you on?
lyntonr
@lyntonr
Aug 17 2018 13:39
0.7.0 dev.
alimhassam
@alimhassam
Aug 17 2018 13:50
Does that include the change in openaps/oref0#1082
lyntonr
@lyntonr
Aug 17 2018 13:53
What does the time field in those records mean ? Is that UTC time for the bolus ?
Yes , that what this is all about, ive been testing it
alimhassam
@alimhassam
Aug 17 2018 14:12
No it's your local time
In the timezone configured on your rig
Notice the +10:00 after the time
I'm currently working on a more robust fix but I'd love to fully confirm your issue and, if it's a true problem, find the minimal steps to reproduce it and see if the fix I have actually fixes it.
Arnoud82
@Arnoud82
Aug 17 2018 14:40
Is there someone who can help me with my problem?
Im using a Medtronic 754 with the enlite cgm. When on master it works and on 0.7.0 dev it works very good but i don't get bg in Nightscout.
lyntonr
@lyntonr
Aug 17 2018 14:49
I meant the ones with Z on the end but more important is what does that time field represent ? Is it the time of the bolus insulin ?

,```"bolusinsulin":16.2,"time":"2018-08-17T09:49:59.000Z",
```
lyntonr
@lyntonr
Aug 17 2018 14:57
To reproduce just use the bolus wizard ,and probably if you take your time in there will help. Gotta sleep now g/nite
alimhassam
@alimhassam
Aug 17 2018 15:03
Ok good night @lyntonr if you can get the loops log for 1 or 2 loops right after the bolus it might be helpful to investigate
lyntonr
@lyntonr
Aug 17 2018 15:19
@alimhassam here is about 2 mins after 19:04 bolus.
Aug 17 19:02:50 openaps pump-loop.log: IOB: 3.365
Aug 17 19:02:50 openaps pump-loop.log: Completed oref0-pump-loop at Fri 17 Aug 19:02:50 AEST 2018
Aug 17 19:03:10 openaps pump-loop.log: Starting oref0-pump-loop at Fri 17 Aug 19:03:09 AEST 2018 with 26 second wait_for_silence:
Aug 17 19:03:12 openaps pump-loop.log: Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
Aug 17 19:03:40 openaps pump-loop.log: Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Aug 17 19:03:40 openaps pump-loop.log: Continuing oref0-pump-loop at Fri 17 Aug 19:03:40 AEST 2018
Aug 17 19:04:53 openaps pump-loop.log: Preflight OK. Profile less than 60m old; Profile valid. Pump history updated through 2018-08-17T19:04:10+10:00; meal.json Skipping bolus wizard entry 0 in the pump history with 90 g carbs and no insulin.
Aug 17 19:04:53 openaps pump-loop.log: Timestamp of bolus wizard: 2018-08-17T19:04:10+10:00
Aug 17 19:05:32 openaps pump-loop.log: refreshed: {"carbs":50,"nsCarbs":50,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":2.81,"maxDeviation":0,"minDeviation":-1.84,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0.915,"allDeviations":[3,0,0,0,-2],"lastCarbTime":1534481201000,"bwFound":false}
Aug 17 19:05:43 openaps pump-loop.log: Listening for 10 s silence: Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Aug 17 19:05:43 openaps pump-loop.log: Continuing oref0-pump-loop at Fri 17 Aug 19:05:43 AEST 2018
Aug 17 19:05:45 openaps pump-loop.log:  Checking that pump clock: "2018-08-17T19:05:44+10:00" is within 90s of current time: 2018-08-17T19:05:45+1000
Aug 17 19:06:05 openaps pump-loop.log:  Temp refreshed: monitor/temp_basal.json: {"duration":26,"temp":"absolute","rate":3.45}
Aug 17 19:06:05 openaps pump-loop.log: {"carbs":50,"nsCarbs":50,"bwCarbs":0,"journalCarbs":0,"mealCOB":0,"currentDeviation":2.81,"maxDeviation":0,"minDeviation":-1.84,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0.915,"allDeviations":[3,0,0,0,-2],"lastCarbTime":1534481201000,"bwFound":false}
Aug 17 19:06:17 openaps pump-loop.log:  Autotune exists! Hoorah! You can use microbolus-related features.
Aug 17 19:06:17 openaps pump-loop.log: {"iob":3.426,"activity":0.0335,"basaliob":3.315,"bolusiob":0.111,"netbasalinsulin":6.55,"bolusinsulin":7.7,"time":"2018-08-17T09:05:46.000Z","iobWithZeroTemp":{"iob":3.426,"activity":0.0335,"basaliob":3.315,"bolusiob":0.111,"netbasalinsulin":6.55,"bolusinsulin":7.7,"time":"2018-08-17T09:05:46.000Z"},"lastBolusTime":1534481201000,"lastTemp":{"rate":3.45,"timestamp":"2018-08-17T19:00:06+10:00","started_at":"2018-08-17T09:00:06.000Z","date":1534496406000,"duration":6.67}}
Aug 17 19:06:17 openaps pump-loop.log: {"delta":9,"glucose":272,"noise":1,"short_avgdelta":4.5,"long_avgdelta":-0.96,"date":1534496337625,"last_cal":52}
Aug 17 19:06:17 openaps pump-loop.log:  Autosens ratio: 0.95; Adjusting basal from 1 to 0.95; target_bg from 90 to 92; ISF from 49.7 to 52.3; CR: 6.495
Aug 17 19:06:17 openaps pump-loop.log:  currenttemp: { duration: 26, temp: 'absolute', rate: 3.45 } lastTempAge: 6 m tempModulus: 2 m
Aug 17 19:06:17 openaps pump-loop.log:  SMB disabled (no enableSMB preferences active)
Aug 17 19:06:17 openaps pump-loop.log:  Last carbs 260 minutes ago; remainingCATime: 9.7 hours; 100% carbs absorbed
Aug 17 19:06:17 openaps pump-loop.log:  Carb Impact: 13.3 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 0 mg/dL per 5m
Aug 17 19:06:18 openaps pump-loop.log:  UAM Impact: 13.3 mg/dL per 5m; UAM Duration: 3 hours
Aug 17 19:06:18 openaps pump-loop.log:  minPredBG: 242 minIOBPredBG: 163 minZTGuardBG: 147 minUAMPredBG: 313 avgPredBG: 242 COB: 0 / 50
Aug 17 19:06:18 openaps pump-loop.log:  BG projected to remain above 5.1 for 240 minutes
Aug 17 19:06:18 openaps pump-loop.log:  naive_eventualBG: 93 bgUndershoot: -27 zeroTempDuration: 240 zeroTempEffect: 209 carbsReq: -29
Aug 17 19:06:18 openaps pump-loop.log:  2018-08-17T09:06:17.463Z
Aug 17 19:06:18 openaps
Cant paste more than that here. Can email it somewhere perhaps ?
alimhassam
@alimhassam
Aug 17 2018 15:32
Sure maybe on pastebin or a gist
(we could do it tomorrow since you need to go sleep :) )
iValkou
@iValkou
Aug 17 2018 15:36
dev 0.7.0 on RPi Zero W + Explorer HAT, battery 5000 mAh, now 24%! charged at 10:00, now is 18:35
Pi CPU was underclocked to 500 MHz
this is a very sad result
Jon Cluck
@cluckj
Aug 17 2018 15:46
the percentage gauge was set up for a 2200mAh battery
the discharge curve for a 5000mAh battery is a lot different
iValkou
@iValkou
Aug 17 2018 15:55
2200mAh hardcoded?
those percentages map onto the discharge curve for one of those blue adafruit 2200mAh batteries
iValkou
@iValkou
Aug 17 2018 15:58
I see percentage in Nightscout
Jon Cluck
@cluckj
Aug 17 2018 15:59
with a huge battery, you'll probably notice it stays between 41 and 12 percent for a really really long time
iValkou
@iValkou
Aug 17 2018 15:59
Снимок экрана 2018-08-17 в 18.58.54.png
Jon Cluck
@cluckj
Aug 17 2018 15:59
that json is what the percentage in nightscout is based on
iValkou
@iValkou
Aug 17 2018 15:59
ok, thank you
Jon Cluck
@cluckj
Aug 17 2018 16:00
the low battery light is also not super helpful with a large battery :)
I have a 3400mAh battery, and the light comes on when I have about 4 hours of runtime left :laughing:
Jon Cluck
@cluckj
Aug 17 2018 16:06
and I get almost exactly 9 hours from 100% (4.2V) to shutdown (3.5V), with stock power-saving
I was able to get around 12 with underclocking to 700MHz
Sacha M
@coolestkidsever
Aug 17 2018 20:04
Hi all, I've run the install about 5 times on new Pi now, and at the cd && ~/src/oref0/bin/oref0-setup.sh end, I get could not run orefo-get-profile, and it stops there, with a few errors and warnings coming up.. does anyone have any ideas please?
Last error is
Error: Cannot find module 'spdx-license-ids/deprecated'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/src/oref0/node_modules/yargs/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse/scan.js:5:11)
    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)
Could not run oref0-get-profile
Sacha M
@coolestkidsever
Aug 17 2018 20:32
When I rebooted and reviewed the log, I get a lot of these
Could not parse profile.json:  { Error: ENOENT: no such file or directory, open '/root/myopenaps/settings/profile.json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.<anonymous> (/root/src/openaps-menu/scripts/status.js:45:33)
    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:188:16)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/root/myopenaps/settings/profile.json' }