/sys/class/gpio/export
now. Unfortuately there something about pin 23 and pin 24. When I try port [9,10.11] i can do echo 9 > /sys/class/gpio/export
and it creates the symlinks. But for pin 23 that fails. See details below. Any clue?# mraa-gpio list
00 J17-1: GPIO PWM
01 J17-2:
02 J17-3:
03 J17-4:
04 J17-5: GPIO
05 J17-6:
06 J17-7: GPIO I2C
07 J17-8: GPIO I2C
08 J17-9: GPIO I2C
09 J17-10: GPIO SPI
10 J17-11: GPIO SPI
11 J17-12: GPIO SPI
12 J17-13:
13 J17-14: GPIO
14 J18-1: GPIO PWM
15 J18-2: GPIO
16 J18-3:
17 J18-4:
18 J18-5:
19 J18-6: GPIO I2C
20 J18-7: GPIO PWM
21 J18-8: GPIO PWM
22 J18-9:
23 J18-10: GPIO SPI
24 J18-11: GPIO SPI
25 J18-12: GPIO
26 J18-13: GPIO UART
27 J18-14:
28 J19-1:
29 J19-2:
30 J19-3:
31 J19-4: GPIO
32 J19-5: GPIO
33 J19-6: GPIO
34 J19-7:
35 J19-8: GPIO UART
36 J19-9: GPIO
37 J19-10: GPIO
38 J19-11: GPIO
39 J19-12: GPIO
40 J19-13: GPIO
41 J19-14: GPIO
42 J20-1:
43 J20-2:
44 J20-3:
45 J20-4: GPIO
46 J20-5: GPIO
47 J20-6: GPIO
48 J20-7: GPIO
49 J20-8: GPIO
50 J20-9: GPIO
51 J20-10: GPIO
52 J20-11: GPIO
53 J20-12: GPIO
54 J20-13: GPIO
55 J20-14: GPIO
# ls -al /sys/class/gpio/export
--w------- 1 root root 4096 Jan 1 2000 /sys/class/gpio/export
# echo 23 > /sys/class/gpio/export
[ 451.755406] pinctrl-merrifield pinctrl-merrifield: request() failed for pin 107
[ 451.762811] pinctrl-merrifield pinctrl-merrifield: pin-107 (0000:00:0c.0:23) status -16
-bash: echo: write error: Device or resource busy
# 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
la -la
ls -la
ls -la
and then the file name it's complaining about.
cp ~/myopenaps/settings/profile.json ~/myopenaps/settings/pumpprofile.json
if it complains about that
hciconfig hci0 name $HOSTNAME
This will have bluetooth use the name you called Edison.bluetoothctl
help
just to make sure its working.power on
scan on
devices
Your iphone is listed.agent on
trust
AA:BB:CC:DD:EE:FFpair
AA:BB:CC:DD:EE:FFls
to show files in your current directory, so we know if you're in right place)
if your rig hasn't pulled pump settings yet, and you're impatient, you can also cp ~/myopenaps/settings/profile.json ~/myopenaps/settings/pumpprofile.json
if it complains about that
cp
them over
sudo apt-get install jq
--end-date
setting is particularly helpful. Unfortunately we have large chunks of missing data on occasion in NS, so using both the start and end date settings helps select good data. If I get a second tomorrow, I'll submit a PR to update docs to mention end date as well.
Traceback (most recent call last):
File "/usr/local/bin/bt-pan", line 228, in <module>
if __name__ == '__main__': sys.exit(main())
File "/usr/local/bin/bt-pan", line 196, in main
try: iface = net.Connect(opts.uuid)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
root@edison-eb ~ # cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
traceroute google.com
and see what network it goes out over
If @RussGG also had no other devices active for initial pairing. Then let me try to convince you @danamlewis , @scottleibrand that "forget" may help.
Connection Interval – The smaller the interval the better because data is exchanged faster.
The connection interval depends on both devices in the connection. For example, Android allows up to 7.5ms, while iOS allows 30ms.
Android or iOS device that has to communicate with multiple devices may need to use a longer connection interval to be able to service all devices. This can cause all kind of issues from low throughput to disconnect.
$ sudo curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:3 http://linux.dropbox.com/ubuntu wily InRelease
Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Hit:5 http://archive.canonical.com xenial InRelease
Get:6 http://linux.dropbox.com/ubuntu wily Release [6.596 B]
Hit:7 http://at.archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23,9 kB]
Hit:9 http://at.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:10 https://repo.skype.com/deb stable InRelease
Hit:11 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:12 http://at.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:13 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial InRelease
Hit:14 https://deb.nodesource.com/node_7.x xenial InRelease
Get:15 http://at.archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]
Fetched 386 kB in 0s (497 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
python-numpy is already the newest version (1:1.11.0-1ubuntu1).
python-numpy set to manually installed.
python-pip is already the newest version (8.1.1-2ubuntu0.4).
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
E: Unable to correct problems, you have held broken packages.
p50deviation: -0.655 p50BGI -3.165 p50ratios: 1.257 Old ISF: 65.914 fullNewISF: 82.854 newISF: 67.608
totalMealCarbs: 50 totalDeviations: 107.80000000000003 fullNewCSF: 2.16 newCSF: 2.12
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-10.json > autotune.1.2017-01-10.json
/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94
var BGDate = new Date(glucoseDatum.date);
^
TypeError: Cannot read property 'date' of undefined
at categorizeBGDatums (/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94:47)
at generate (/home/parallels/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/parallels/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-10.json profile.json profile.pump.json > newprofile.1.2017-01-10.json
Could not parse input data: [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-11.json > autotune.1.2017-01-11.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-11.json profile.json profile.pump.json > newprofile.1.2017-01-11.json
/home/parallels/src/oref0/lib/autotune/index.js:14
var ISF = isfProfile.sensitivities[0].sensitivity;
^
--
and some more of those, then this:
--
Autotune pump profile recommendations:
---------------------------------------------------------
Recommendations Log File: /home/parallels/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/parallels/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/parallels/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter | Current | Autotune
-------------------------------------
ISF | 58.500 | 0.000
CSF | n/a | 0.000
Carb Ratio | 20.000 | 0.000
Basal Profile | |
00:00 | 0.85 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
Can anybody point me in the right direction for this error when I run Autotune Running oref0-autotune --dir=/home/pi/myopenaps --ns-host=https://nslarnold.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://nslarnold.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+0000&find\[created_at\]\[$lte\]=2017-01-23T00:00+0000
-rw-r--r-- 1 pi pi 1206 Jan 23 10:29 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://nslarnold.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-r--r-- 1 pi pi 122240 Jan 23 10:29 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
/home/pi/src/oref0/nodemodules/timezone/index.js:153
} else if (/^\w{2,3}\w{2}$/.test(argument.name)) {
^
TypeError: Cannot read property 'name' of undefined
at Object.convert (/home/pi/src/oref0/node_modules/timezone/index.js:153:51)
at /home/pi/src/oref0/node_modules/timezone/index.js:347:39
at calcTempTreatments (/home/pi/src/oref0/lib/iob/history.js:110:44)
at generate (/home/pi/src/oref0/lib/iob/index.js:9:22)
at categorizeBGDatums (/home/pi/src/oref0/lib/autotune-prep/categorize.js:167:19)
at generate (/home/pi/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/pi/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected end of input]
Recommendations Log File: /home/pi/myopenaps/autotune/autotune_recommendations.log
jq: error: Cannot iterate over null
jq: error: Cannot iterate over null
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 85.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 5.000 | 0.000
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": 0.05
},
{
"i": 1,
"start": "03:00:00",
"minutes": 180,
"rate": 0.05
},
{
"i": 2,
"start": "04:00:00",
"minutes": 240,
"rate": 0.1
},
{
"i": 3,
"start": "05:00:00",
"minutes": 300,
"rate": 0.1
},
{
"i": 4,
"start": "09:00:00",
"minutes": 540,
"rate": 0.1
},
{
"i": 5,
"start": "17:00:00",
"minutes": 1020,
"rate": 0.175
},
{
"i": 6,
"start": "19:00:00",
"minutes": 1140,
"rate": 0.25
},
{
"i": 7,
"start": "20:00:00",
"minutes": 1200,
"rate": 0.750
},
{
"i": 8,
"start": "21:00:00",
"minutes": 1260,
"rate": 0.55
},
{
"i": 9,
"start": "22:00:00",
"minutes": 1320,
"rate": 0.225
},
{
"i": 10,
"start": "23:00:00",
"minutes": 1380,
"rate": 0.15
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 225,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 30
}
Running oref0-autotune --dir=/home/scarral/myopenaps --ns-host=https://scarralnew.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
cp: cannot stat 'settings/pumpprofile.json': No such file or directory
cp: cannot stat 'settings/autotune.json': No such file or directory
cp: cannot stat 'autotune/profile.pump.json': No such file or directory
Grabbing NIGHTSCOUT treatments.json for date range...
https://scarralnew.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+01:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+01:00
-rw-rw-r-- 1 scarral scarral 2 Jän 23 12:10 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://scarralnew.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485039600000&find\[date\]\[$lte\]=1485126000000&count=1000
-rw-rw-r-- 1 scarral scarral 29850 Jän 23 12:10 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
cp: cannot stat 'profile.json': No such file or directory
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: { Error: ENOENT: no such file or directory, open 'profile.json'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.<anonymous> (/home/scarral/src/oref0/bin/oref0-autotune-prep.js:48:42)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'profile.json' }
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: { Error: ENOENT: no such file or directory, open 'profile.json'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.<anonymous> (/home/scarral/src/oref0/bin/oref0-autotune-core.js:46:52)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'profile.json' }
Recommendations Log File: /home/scarral/myopenaps/autotune/autotune_recommendations.log
jq: error: Could not open file /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
jq: error: Could not open file /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
jq: error (at /home/scarral/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/scarral/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/bin/oref0-autotune-recommends-report: line 62: [: !=: unary operator expected
/usr/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 0,000 | 0,000
CSF | n/a | 0,000
Carb Ratio | 0,000 | 0,000
Basal Profile | |
00:00 | |
00:30 | |
01:00 | |
01:30 | |
jq . profile.json
changing directory is accomplished by running cd ~/myopenaps/settings
which will get you to the settings folder
goldenowner@instance-1:~$ cd ~/myopenaps/settings
goldenowner@instance-1:~/myopenaps/settings$ profile.json
profile.json: command not found
jq . profile.json
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": 0.1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~/myopenaps/settings$
```goldenowner@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:20 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:20 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | | ```
```goldenowner@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:20 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:20 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
Autotune pump profile recommendations:
---------------------------------------------------------
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter | Current | Autotune
-------------------------------------
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
grep -r "rate: .1" myopenaps
goldenowner@instance-1:~/myopenaps/settings$ grep -r "rate: .1" myopenaps
grep: myopenaps: No such file or directory
goldenowner@instance-1:~/myopenaps/settings$
cd ~
then run it
```goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:35 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:35 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30
```goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:35 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:35 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30
goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$
cd ~
and then grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$
grep -r "rate: .1" .
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ grep -r "rate: .1" .
goldenowner@instance-1:~$
: .1
bnep0
and wlan0
. I will need to fix that before I can test out the update I'm trying to make to xDripAPS. I'll go ahead and document it as it is now, based on the Edison and the phone being connected via BT or WiFi hotspot 24/7.
Recommendations Log File: /home/scarral/myopenaps/autotune/autotune_recommendations.log
/usr/bin/oref0-autotune-recommends-report: line 65: printf: 7.5: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.25: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.25: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.75: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.75: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.55: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.55: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.225: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.225: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.15: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.15: invalid number
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ grep -r "rate:.1" .
./src/oref0/tests/profile.test.js: {minutes: 0, rate: 1}
./src/oref0/tests/iob.test.js: , {_type: 'TempBasal', rate: 1, date: timestampEarly, timestamp: timestampEarly}
./src/oref0/tests/iob.test.js: , {_type: 'TempBasal', rate: 1, date: timestamp, timestamp: timestamp}
goldenowner@instance-1:~$
grep -r "rate:\s*\.1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ grep -r "rate:\s*\.1" myopenaps
goldenowner@instance-1:~$
cat myopenaps/settings/autotune.json
goldenowner@instance-1:~$ cat myopenaps/settings/autotune.json
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": .1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~$
"rate": .1
to "rate": 0.1
p50deviation: -1.6800000000000002 p50BGI -2.6 p50ratios: 1.735 Old ISF: 57.495 fullNewISF: 99.754 newISF: 61.721
totalMealCarbs: 50 totalDeviations: 108.99000000000001 fullNewCSF: 2.18 newCSF: 2.783
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-10.json > autotune.1.2017-01-10.json
/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94
var BGDate = new Date(glucoseDatum.date);
^
TypeError: Cannot read property 'date' of undefined
at categorizeBGDatums (/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94:47)
at generate (/home/parallels/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/parallels/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-10.json profile.json profile.pump.json > newprofile.1.2017-01-10.json
Could not parse input data: [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-11.json > autotune.1.2017-01-11.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-11.json profile.json profile.pump.json > newprofile.1.2017-01-11.json
/home/parallels/src/oref0/lib/autotune/index.js:14
var ISF = isfProfile.sensitivities[0].sensitivity;
manage to track it down to a single day that has a problem in some of the data. This single day crashes the autotune, others before and after works fine. Not sure what the problem is - but if anyone could point me in the right direction, ill try and look for whatever could be the problem in the dataset
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 13:14 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 13:14 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
start carb absorption
1 mealCOB: 89.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:21:19 GMT+0000 (UTC) dev: 8.50 avgDelta: 8.50 csf
1 mealCOB: 87.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:26:18 GMT+0000 (UTC) dev: 10.75 avgDelta: 10.75 csf
1 mealCOB: 86.5 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:31:18 GMT+0000 (UTC) dev: 11.50 avgDelta: 11.50 csf
1 mealCOB: 85.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:36:19 GMT+0000 (UTC) dev: 8.00 avgDelta: 8.00 csf
1 mealCOB: 85.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:41:19 GMT+0000 (UTC) dev: 5.25 avgDelta: 5.25 csf
1 mealCOB: 84.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:46:19 GMT+0000 (UTC) dev: 1.25 avgDelta: 1.25 csf
0 mealCOB: 84.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:51:19 GMT+0000 (UTC) dev: -3.25 avgDelta: -3.25 csf
0 mealCOB: 83.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:56:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 83.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:01:19 GMT+0000 (UTC) dev: -9.25 avgDelta: -9.25 csf
0 mealCOB: 83.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:06:18 GMT+0000 (UTC) dev: -8.75 avgDelta: -8.75 csf
0 mealCOB: 82.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:11:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 82.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:16:18 GMT+0000 (UTC) dev: -3.50 avgDelta: -3.50 csf
0 mealCOB: 82.2 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:21:19 GMT+0000 (UTC) dev: -1.25 avgDelta: -1.25 csf
1 mealCOB: 79.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:31:23 GMT+0000 (UTC) dev: 20.25 avgDelta: 20.25 csf
1 mealCOB: 77.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:36:18 GMT+0000 (UTC) dev: 24.75 avgDelta: 24.75 csf
1 mealCOB: 73.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:41:19 GMT+0000 (UTC) dev: 28.50 avgDelta: 28.50 csf
1 mealCOB: 70.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:46:19 GMT+0000 (UTC) dev: 30.75 avgDelta: 30.75 csf
1 mealCOB: 69.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:51:18 GMT+0000 (UTC) dev: 11.00 avgDelta: 11.00 csf
1 mealCOB: 68.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:56:18 GMT+0000 (UTC) dev: 6.50 avgDelta: 6.50 csf
1 mealCOB: 68.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:01:19 GMT+0000 (UTC) dev: 2.00 avgDelta: 2.00 csf
0 mealCOB: 67.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:06:19 GMT+0000 (UTC) dev: -0.50 avgDelta: -0.50 csf
0 mealCOB: 67.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:11:19 GMT+0000 (UTC) dev: -2.75 avgDelta: -2.75 csf
0 mealCOB: 66.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:16:19 GMT+0000 (UTC) dev: -4.25 avgDelta: -4.25 csf
0 mealCOB: 66.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:21:18 GMT+0000 (UTC) dev: -4.75 avgDelta: -4.75 c
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | | ```
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
cat /home/goldenowner/myopenaps/autotune/profile.json | json
cat /home/goldenowner/myopenaps/autotune/profile.json | json
wc -l /home/goldenowner/myopenaps/autotune/profile.json
autotune/profile.json
file it needs to make the recommendations
ls ~/myopenaps | grep autotune
ls ~/myopenaps | grep autotune
_
mkdir ~/myopenaps/autotune
mkdir ~/myopenaps/autotune
oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
cp settings/profile.json autotune/profile.json
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-13.json > autotune.1.2017-01-13.json
Error: carb_ratio 2.742 out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-13.json profile.json profile.pump.json > newprofile.1.2017-01-13.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
cp settings/profile.json autotune/profile.json
oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
cp settings/profile.json autotune/profile.json
then autotune again
```Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | | ```
goldenowner@instance-1:~$
ls ~/myopenaps | grep autotune
?
goldenowner@instance-1:~$ ls ~/myopenaps | grep autotune
goldenowner@instance-1:~$
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter | Current | Autotune
-------------------------------------
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
goldenowner@instance-1:~$
// disallow impossibly low carbRatios due to bad decoding
if ( typeof(profile_data.carb_ratio) == 'undefined' || profile_data.carb_ratio < 3 ) {
cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
ls ~/myopenaps/settings
ls ~/myopenaps
ls ~/myopenaps
cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
goldenowner@instance-1:~$ ls ~/myopenaps
autotune settings```goldenowner@instance-1:~$
cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate"= 0.1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": .1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~$
cat ~/myopeanps/settings/profile.json
goldenowner@instance-1:~$ cat ~/myopeanps/settings/profile.json
cat: /home/goldenowner/myopeanps/settings/profile.json: No such file or directory
goldenowner@instance-1:~$
cat ~/myopenaps/settings/profile.json
goldenowner@instance-1:~$ cat ~/myopenaps/settings/profile.json
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": .1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~$
nano ~/myopenaps/settings/profile.json
, change "rate": .1
to "rate": 0.1
, ctrl+o, enter, ctrl+x
cat ~/myopenaps/settings/profile.json
goldenowner@instance-1:~$ cat ~/myopenaps/settings/profile.json
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": 0.1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~$
cp myopenaps/settings/profile.json myopenaps/settings/autotune.json
cp myopenaps/settings/profile.json myopenaps/settings/pumpprofile.json
goldenowner@instance-1:~$ cp myopenaps/settings/profile.json myopenaps/settings/autotune.json
goldenowner@instance-1:~$
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-22T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
```-rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json
is that right?
it still says the same thing
-rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json
and it hasn't printed anything else at all?
^[[6~^[[6~^[[6~^[[6~^[[6~^[
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
Parameter | Current | Autotune
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
goldenowner@instance-1:~$
Parameter | Current | Autotune
-------------------------------------
ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
goldenowner@instance-1:~$
``
```
running in a vm, and getting this error:
'''
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
/home/taylor/src/oref0/nodemodules/timezone/index.js:153
} else if (/^\w{2,3}\w{2}$/.test(argument.name)) {
^
TypeError: Cannot read property 'name' of undefined
at Object.convert (/home/taylor/src/oref0/node_modules/timezone/index.js:153:51)
at /home/taylor/src/oref0/node_modules/timezone/index.js:347:39
at calcTempTreatments (/home/taylor/src/oref0/lib/iob/history.js:110:44)
at generate (/home/taylor/src/oref0/lib/iob/index.js:9:22)
at categorizeBGDatums (/home/taylor/src/oref0/lib/autotune-prep/categorize.js:167:19)
at generate (/home/taylor/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/taylor/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected end of input]
'''
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-20.json profile.json profile.pump.json > newprofile.1.2017-01-20.json
/root/src/oref0/lib/autotune/index.js:49
hourlyBasalProfile[i].i=i;
^
TypeError: Cannot set property 'i' of undefined
at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:49:32)
at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-21.json > autotune.1.2017-01-21.json
Could not parse input data: [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-21.json profile.json profile.pump.json > newprofile.1.2017-01-21.json
Could not parse input data: [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
/root/src/oref0/lib/autotune/index.js:14
var ISF = isfProfile.sensitivities[0].sensitivity;
^
TypeError: Cannot read property 'sensitivities' of undefined
at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:14:25)
at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
{
"min_5m_carbimpact": 3,
"dia": 3,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 1440,
"rate": 1.7
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 28,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 12,
"autosens_max": 1.2,
"autosens_min": 0.7
}
ifconfig
on it to confirm its IP
oref0-online
on the rig: it'll check if it can ping Google, and if not, will reset the wifi
* * * * * ps aux | grep -v grep | grep -q "oref0-online" || oref0-online >> /var/log/openaps/network.log