/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: 28.773: invalid number
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-03.json profile.json profile.pump.json > newprofile.1.2017-01-03.json
/root/src/oref0/lib/autotune/index.js:77
for (var i=0; i < basalGlucose.length; ++i) {
^
TypeError: Cannot read property 'length' of undefined
at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:77:39)
at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-04.json > autotune.1.2017-01-04.json
Could not parse input data: [SyntaxError: Unexpected end of input]
2017-01-14
ISF | 43.000 | 49.669
CSF | n/a | 3.018
Carb Ratio | 14.000 | 16.458
Basal Profile | |
00:00 | 0.500 | 0.489
00:30 | |
2017-01-15
ISF | 43.000 | 51.923
CSF | n/a | 3.030
Carb Ratio | 14.000 | 17.136
Basal Profile | |
00:00 | 0.500 | 0.479
00:30 | |
2017-01-14 thru 2017-01-15
ISF | 43.000 | 57.929
CSF | n/a | 2.979
Carb Ratio | 14.000 | 19.446
Basal Profile | |
00:00 | 0.500 | 0.469
00:30 |
sudo halt
from the VM command line to shut it down
df -h
to see how much disk free space you have
df -h
showsroot@juba2:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 754M 563M 58% /
devtmpfs 482M 0 482M 0% /dev
tmpfs 482M 0 482M 0% /dev/shm
tmpfs 482M 55M 428M 12% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 482M 0 482M 0% /sys/fs/cgroup
tmpfs 482M 482M 0 100% /tmp
/dev/mmcblk0p7 32M 3.8M 29M 12% /boot
/dev/mmcblk0p10 1.3G 782M 510M 61% /home
tmpfs 97M 0 97M 0% /run/user/0
df -hi
to check inodes?
root@juba2:~# df -hi
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 384K 19K 366K 5% /
devtmpfs 121K 409 121K 1% /dev
tmpfs 121K 1 121K 1% /dev/shm
tmpfs 121K 547 120K 1% /run
tmpfs 121K 3 121K 1% /run/lock
tmpfs 121K 10 121K 1% /sys/fs/cgroup
tmpfs 121K 86K 35K 72% /tmp
/dev/mmcblk0p7 0 0 0 - /boot
/dev/mmcblk0p10 86K 40K 46K 47% /home
tmpfs 121K 4 121K 1% /run/user/0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
Failed to start Hostname Service.
when I do this, each network should have its own entry of network={
ssid="ssid"
psk="pw"
}
correct?
network={
key_mgmt=NONE
priority=-999
}
network={
ssid="ARIN MEETING"
key_mgmt=NONE
}
ahanuban’s iPhone
?
’
?
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="FBI_Surveillance_HQ"
psk="PWHERE"
}
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="FBI_Surveillance_HQ"
psk="PWHERE"
}
network={
ssid="FBI Surveillance Van"
psk="PWHERE"
}
Autotune pump profile recommendations:
---------------------------------------------------------
Recommendations Log File: /root/myaps/autotune/autotune_recommendations.log
/usr/local/bin/oref0-autotune-recommends-report: line 43: jq: command not found
/usr/local/bin/oref0-autotune-recommends-report: line 44: jq: command not found
Command python setup.py egg_info failed with error code 1 in /tmp/pip-tVsjGA-build
Storing debug log for failure in /root/.pip/pip.log
Couldn't install spi_serial
Storing debug log for failure in /root/.pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Sat Jan 21 22:21:52 2017
Downloading/unpacking git+https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW.git@master
Cloning https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW.git (to master) to /tmp/pip-NwISGL-build
Found command 'git' at '/usr/bin/git'
Running command /usr/bin/git clone -q https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW.git /tmp/pip-NwISGL-build
Running command /usr/bin/git show-ref
de609d222ef77607874d06ec605fa53f745ac8d2 refs/heads/master
de609d222ef77607874d06ec605fa53f745ac8d2 refs/remotes/origin/HEAD
52707359257c097ef46b438d74cf210ce74d4f01 refs/remotes/origin/ResetLED
de609d222ef77607874d06ec605fa53f745ac8d2 refs/remotes/origin/master
Running command /usr/bin/git rev-parse HEAD
de609d222ef77607874d06ec605fa53f745ac8d2
Running setup.py (path:/tmp/pip-NwISGL-build/setup.py) egg_info for package from git+https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW.git@master
Traceback (most recent call last):
File "<string>", line 17, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-NwISGL-build/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-NwISGL-build/setup.py'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-NwISGL-build
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-NwISGL-build
pip install -e 'git+https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer_SW.git#egg=spi_serial&subdirectory=spi_serial'
Resetting spi_serial
Traceback (most recent call last):
File "/usr/local/bin/reset_spi_serial.py", line 3, in <module>
s = spi_serial.SpiSerial()
File "/usr/local/lib/python2.7/dist-packages/spi_serial/spi_serial.py", line 11, in __init__
self.dev = m.spiFromDesc("spi-raw-5-1")
AttributeError: 'module' object has no attribute 'spiFromDesc'
Attempting to communicate with pump:
mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
sudo pip install git+https://github.com/scottleibrand/915MHzEdisonExplorer_SW.git@master
Downloading/unpacking git+https://github.com/scottleibrand/915MHzEdisonExplorer_SW.git@master
Cloning https://github.com/scottleibrand/915MHzEdisonExplorer_SW.git (to master) to /tmp/pip-s9SnPe-build
Running setup.py (path:/tmp/pip-s9SnPe-build/setup.py) egg_info for package from git+https://github.com/scottleibrand/915MHzEdisonExplorer_SW.git@master
package init file 'spi_serial/__init__.py' not found (or not a regular file)
Requirement already satisfied (use --upgrade to upgrade): spi-serial==0.0 from git+https://github.com/scottleibrand/915MHzEdisonExplorer_SW.git@master in /home/.rootfs/usr/local/lib/python2.7/dist-packages
Cleaning up...
sudo pip install git+https://github.com/scottleibrand/spi_serial.git
works...
sudo pip install git+https://github.com/openaps/openaps.git@dev
command please?
@scottleibrand
-bash: oref0-autotune: command not found
g17thomptes@instance-1:~$ sudo pip install git+https://github.com/openaps/openaps.git@dev
Downloading/unpacking git+https://github.com/openaps/openaps.git@dev
Cloning https://github.com/openaps/openaps.git (to dev) to /tmp/pip-zEgMDU-build
Running setup.py (path:/tmp/pip-zEgMDU-build/setup.py) egg_info for package from git+https://github.com/openaps/o
penaps.git@dev
Requirement already satisfied (use --upgrade to upgrade): openaps==0.2.0-dev from git+https://github.com/openaps/
openaps.git@dev in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/local/lib/python2.7/dist-packages (from
openaps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages
(from openaps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): argcomplete in /usr/local/lib/python2.7/dist-packages (fr
om openaps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): gitpython in /usr/local/lib/python2.7/dist-packages (from
openaps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): mock in /usr/local/lib/python2.7/dist-packages (from open
aps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): nose in /usr/local/lib/python2.7/dist-packages (from open
aps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): decocare>0.0.26 in /usr/local/lib/python2.7/dist-packages
(from openaps==0.2.0-dev)
Requirement already satisfied (use --upgrade to upgrade): dexcom-reader>=0.1.8 in /usr/local/lib/python2.7/dist-pac
kages (from openaps==0.2.0-dev)
Cleaning up...
g17thomptes@instance-1:~$
@scottleibrand We are at the place to set up the Type/edit the following:
myedisonhostname=<thehostname-you-want>
And then paste the following to rename your Edison accordingly:
echo $myedisonhostname > /etc/hostname
sed -i"" "s/localhost$/localhost $myedisonhostname/" /etc/hosts
Run these commands to set secure passwords:
passwd root
passwd edison
having trouble setting up the initial Edison set up. We are at Type/edit the following:
myedisonhostname=<thehostname-you-want>
And then paste the following to rename your Edison accordingly:
echo $myedisonhostname > /etc/hostname
sed -i"" "s/localhost$/localhost $myedisonhostname/" /etc/hosts
Run these commands to set secure passwords:
passwd root
Resetting spi_serial
Traceback (most recent call last):
File "/usr/local/bin/reset_spi_serial.py", line 3, in <module>
s = spi_serial.SpiSerial()
File "/usr/local/lib/python2.7/dist-packages/spi_serial/spi_serial.py", line 11, in __init__
self.dev = m.spiFromDesc("spi-raw-5-1")
AttributeError: 'module' object has no attribute 'spiFromDesc'
Attempting to communicate with pump:
mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Resetting spi_serial
Traceback (most recent call last):
File "/usr/local/bin/reset_spi_serial.py", line 3, in <module>
s = spi_serial.SpiSerial()
File "/usr/local/lib/python2.7/dist-packages/spi_serial/spi_serial.py", line 11, in __init__
self.dev = m.spiFromDesc("spi-raw-5-1")
AttributeError: 'module' object has no attribute 'spiFromDesc'
Attempting to communicate with pump:
mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
cat ~/myopenaps/autotune/autotune_recommendations.log | egrep "\."
to make it easier to read
xDrip
directly to the Explorer board (offline--without using Nightscout)?
xDrip
to the Explorer board, too! 😊
xdrip
xdrip
with anything else except the embedded lipo that is typically used with the vast majority of xdrip
setups. It is not smart to mess around with that, although the Pi MAY be able to power it. The Edison/Exporer can't be used as a power source for the xDrip
, no matter what!
xdrip
with a raspberry Pi. I seriously don't think it will work anyway. And if you troubleshoot your failure, you will torture yourself with an infinite loop of insanity. You will not succeed.
xdrip
and your CGM data is lost so when you power back up, affecting your OpenAPS loop adversely, guaranteed.
xDrip
directly though SSHing into the Explorer board and entering in some sort of "calibration command" (with Calibration BG value) in the SSH terminal? Or do you somehow have to connect and configure the Explorer board to pull the calibration BG values from Nightscout?
xDrip
code/program on the Explorer board.
So trying to run autotune on a linux VM - it runs beautifully until creating the recommendations and falls over when it reaches 04:30 this text:
ubuntu@ip-172-31-6-162:~$ ./src/oref0/bin/oref0-autotune-recommends-report.sh ~/myopenaps
./src/oref0/bin/oref0-autotune-recommends-report.sh: line 95: 2
3 - 1: syntax error in expression (error token is "3 - 1")
suggestions?
JSON object could not be decoded
errors...
* * * * * cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps monitor-xdrip' || ( date; cp -rf xdrip/glucose.json xdrip/last-glucose.json; openaps monitor-xdrip) | tee -a /var/log/openaps/xdrip-loop.log; cmp --silent xdrip/glucose.json xdrip/last-glucose.json || cp -up xdrip/glucose.json monitor/glucose.json
monitor/glucose.json
when it has changed. So, when your Edison is connected to the internet viaget-ns-glucose
that fails. If I turn on BT tethering on my phone, when the rig reconnects, get-ns-glucose
and by extension get-ns-bg
works! Weird.
monitor/glucose.json
is up to date :+1:xdrip/glucose.json
is now 7 min old, think it's okay?!
mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)
mkdir -p ~/src; cd ~/src && git clone git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)
@scottleibrand so the original in the docs says
Step 1: Pull/clone oref0
in phase 2
Pull/clone the latest oref0 master by running:mkdir -p ~/src; cd ~/src && git clone git://github.com/openaps/oref0.git || (cd oref0 && git checkout master && git pull)
sudo apt-get install nodejs
nodejs-legacy
to just nodejs
npm install -g json
and now i'm waiting
oref0-autotune --dir=~/myopenaps --ns-host=http://localhost:1337 --start-date=2017-01-22
Linux VM built on AWS free servers: ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20161214 (ami-57eae033)
Took 94 minutes to run 22 days worth of data - I'll live with that. Interestingly it has moved my Basal by more than 20% so I guess I missed that in the settings - when I had run it previously (during the holidays) on my RPi it had limited change - this seemed unconstrained.
.
,
, but I'm not sure
curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
edison@AP-Server:~$ nodejs -v
v4.7.2
edison@AP-Server:~$ node -v
v4.7.2
.
after the bash -
bash - .
my other rig has
edison@miniaps:~$ node -v
v0.10.29
edison@miniaps:~$ nodejs -v
v0.10.29
edison@miniaps:~$
there the docs could be followed easily
line 340
if ! python -c "import openxshareble" 2>/dev/null; then
echo Installing openxshareble && sudo pip install git+https://github.com/openaps/openxshareble.git@dev || die "Couldn't install openxshareble"
fi
doesn't install repository, just installs package. But then a few lines down it is assumed repository is installed. Will work on it ...
sudo cp $HOME/src/openxshareble/bluetoothd.conf /etc/dbus-1/system.d/bluetooth.conf
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-03.json > autotune.1.2017-01-03.json
Error: carb_ratio 2.727 out of bounds
The good news is... I am running kernel 4.10.0-rc4 on an Explorer board. The bad news is... I get a problem with mraa.
# uname -a
Linux openaps 4.10.0-rc4+ #2 SMP Sun Jan 22 10:33:38 CET 2017 x86_64 x86_64 x86_64 GNU/Linux
# reset_spi_serial.py
Traceback (most recent call last):
File "/usr/local/bin/reset_spi_serial.py", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/root/src/915MHzEdisonExplorer_SW/spi_serial/scripts/reset_spi_serial.py", line 3, in <module>
s = spi_serial.SpiSerial()
File "/root/src/915MHzEdisonExplorer_SW/spi_serial/spi_serial/spi_serial.py", line 7, in __init__
self.cs0 = m.Gpio(23)
File "/usr/local/lib/python2.7/dist-packages/mraa.py", line 995, in __init__
this = _mraa.new_Gpio(pin, owner, raw)
ValueError: Invalid GPIO pin specified
Any clue how to fix/debug this?
/var/log/syslog
:
Jan 22 22:14:45 foobar libmraa[3233]: libmraa version v1.5.1-18-ge386300 initialised by user 'root' with EUID 0
Jan 22 22:14:45 foobar libmraa[3233]: gpio214: init: Failed to open 'export' for writing: No such file or directory
Jan 22 22:14:45 foobar libmraa[3233]: edison: Arduino board not detected, assuming Intel Edison Miniboard
Jan 22 22:14:45 foobar libmraa[3233]: libmraa initialised for platform 'Intel Edison' of type 2
Jan 22 22:14:45 foobar libmraa[3233]: gpio110: init: Failed to open 'export' for writing: No such file or directory
Jan 22 22:14:48 foobar SubgRfspyLink opening serial port
Jan 22 22:15:40 foobar SubgRfspyLink message repeated 2 times: [ opening serial port]
/dev/spidev5.1
file, so I was happy, but i think it also needs the config_gpio_sysfs=y
$ grep -i GPI x86_64_defconfig
CONFIG_KEYBOARD_GPIO=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_MERRIFIELD=y
CONFIG_GPIO_INTEL_MID=y
CONFIG_SPI_BITBANG=y
to the list
lsusb -99
errors). Don't have a Sparkfun board
xDrip
directly connected via BLE to the Edison/Explorer for an offline OpenAPS in lieu of a configuration with Nightscout is not going to happen today for me. I am sorry I cannot keep my word. I had an extremely physically demanding day and I can't push myself any further. I have a demyelinating disease and exhausted--which I feel--literally becomes an understatement to describe how I actually feel with such a medical problem. Sorry.
cd ~/src/oref0/ && npm run global-install
i get -bash: npm: command not found
. Should I keep going or try to resolve this?
lsusb -99
errors