npm install -g oref0
. Is that right?
npm run global-install
run from within the oref0 src dir?
ccprog
halt
, and powering back up?
openaps use pump model
after I stopped cron and same "in use" error. Something's up...
@scottleibrand @danamlewis short q to the >6.3 decocare issue, I remember this was fixed by @ecc1 but it has not been merged, that's right?
Any chance that this fix will be merged soon?
Yesterday I did re-flash an edison and fully new install all rtd descripted steps, but realized the same error, thanks for your reply!
root@EdisonAPS:~# Cannot find device "bnep0"
scp user@host:/path/to/file .
copies a remote file to the local machine
nano
with sudo?sudo nano /etc/network/interfaces
/etc/network/interfaces
must be always accessed with root rights!
sudo nano /etc/network/interfaces
not sudo /etc/network/interfaces
!
mongodb upload
in xdrip+
sudo
is missing, log in as root
and install it with apt-get install sudo
logoff
in your serial console window
sudo
with root login credentials
root@eddie:/home/edison# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
sudo is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@danamlewis @scottleibrand As you saw in Twitter I started to loop with my new Explorer Board. Everything went fine so far today but now the loop isn´t going on. It throws me a byte error and it doesn´t create an enacted.json. Unplugging and replugging didn´t help.
reporting enact/suggested.json
{"temp":"absolute","bg":137,"tick":"+7","eventualBG":176,"snoozeBG":148,"predBGs":{"IOB":[137,139,140,141,141,142,141,141,140,139,137,135,133,131,128,126,124,122,119,117,115,113,111,109,108,106,104,103,102,100,99,98,97,96,95,94,94,93,93,93,92],"aCOB":[137,145,153,160,167,173,179,184,188,192,195,198,200,202,203,204,204,204,203,202,201,199,198,196,194,192,191,189,188,187,185,184,183,182,181,181,180,180,179,179,179,178],"COB":[137,139,141,142,144,145,146,147,148,148,149,149,150,150,150,150,150,150,150,151,151,151,151,151,152,152,152,153,153,154,154,155,156,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176]},"COB":25,"IOB":2.924,"reason":"COB: 25, Dev: 19, BGI: -1.22, ISF: 21, Target: 80; Eventual BG 176 >= 80, max_iob 6, adj. req. rate: 8.65 to maxSafeBasal: 6.6000000000000005, no temp, setting 6.6U/hr","duration":30,"rate":6.6}
enact/enacted.json raised byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json
Traceback (most recent call last):
ValueError: byte must be in range(0, 256)
grep: enact/enacted.json: No such file or directory
enact/enacted.json raised byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json
Traceback (most recent call last):
ValueError: byte must be in range(0, 256)
cat: enact/enacted.json: No such file or directory
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Thu Feb 2 17:50:54 CET 2017
I read about this 6.3 max basal problem so I changed my max basal in the pump from a moderate 7 down to that. But that won´t solve the problem. I definitely need some help please!
cd ~/src
https://github.com/openaps/decocare.git
cd decocare
git checkout dev
sudo python setup.py develop
cd ~/src
git clone https://github.com/openaps/decocare.git
cd decocare
git checkout dev
sudo python setup.py develop
edison@eddie:~$ cd ~/src
edison@eddie:~/src$ git clone https://github.com/openaps/decocare.git
Cloning into 'decocare'...
remote: Counting objects: 11480, done.
remote: Total 11480 (delta 0), reused 0 (delta 0), pack-reused 11480
Receiving objects: 100% (11480/11480), 17.25 MiB | 816.00 KiB/s, done.
Resolving deltas: 100% (8835/8835), done.
Checking connectivity... done.
Checking out files: 100% (2655/2655), done.
edison@eddie:~/src$ cd decocare
edison@eddie:~/src/decocare$ git checkout dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'
edison@eddie:~/src/decocare$ sudo python setup.py develop
running develop
running egg_info
creating decocare.egg-info
writing requirements to decocare.egg-info/requires.txt
writing decocare.egg-info/PKG-INFO
writing top-level names to decocare.egg-info/top_level.txt
writing dependency_links to decocare.egg-info/dependency_links.txt
writing manifest file 'decocare.egg-info/SOURCES.txt'
reading manifest file 'decocare.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'CHANGES.*'
writing manifest file 'decocare.egg-info/SOURCES.txt'
running build_ext
Creating /home/.rootfs/usr/local/lib/python2.7/dist-packages/decocare.egg-link (link to .)
Adding decocare 0.0.32-dev to easy-install.pth file
Installing mm-press-key.py script to /usr/local/bin
Installing mm-send-comm.py script to /usr/local/bin
Installing mm-set-suspend.py script to /usr/local/bin
Installing mm-temp-basals.py script to /usr/local/bin
Installing mm-decode-history-page.py script to /usr/local/bin
Installing mm-latest.py script to /usr/local/bin
Installing mm-bolus.py script to /usr/local/bin
Installing mm-set-rtc.py script to /usr/local/bin
Installing mm-pretty-csv script to /usr/local/bin
Installed /home/edison/src/decocare
Processing dependencies for decocare==0.0.32-dev
Searching for argcomplete==1.8.2
Best match: argcomplete 1.8.2
Adding argcomplete 1.8.2 to easy-install.pth file
Using /home/.rootfs/usr/local/lib/python2.7/dist-packages
Searching for python-dateutil==2.6.0
Best match: python-dateutil 2.6.0
Adding python-dateutil 2.6.0 to easy-install.pth file
Using /home/.rootfs/usr/local/lib/python2.7/dist-packages
Searching for pyserial==3.2.1
Best match: pyserial 3.2.1
Adding pyserial 3.2.1 to easy-install.pth file
Using /home/.rootfs/usr/local/lib/python2.7/dist-packages
Searching for six==1.10.0
Best match: six 1.10.0
Adding six 1.10.0 to easy-install.pth file
Using /home/.rootfs/usr/local/lib/python2.7/dist-packages
Finished processing dependencies for decocare==0.0.32-dev
root@EdisonAPS:~# tail -F /var/log/openaps/pump-loop.log
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 28, in open
self.check_setup()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 72, in check_setup
self.serial_rf_spy.sync()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_rf_spy.py", line 121, in sync
raise CommsException("Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Listening: ..................................^C
root@EdisonAPS:~# tail -F /var/log/openaps/pump-loop.log
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 28, in open
self.check_setup()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 72, in check_setup
self.serial_rf_spy.sync()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_rf_spy.py", line 121, in sync
raise CommsException("Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Resetting spi_serial
Attempting to communicate with pump:
mmtune: pump://JSON/mmtune/monitor/mmtune.json
monitor/mmtune.json raised Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
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 44, in __call__
self.before_main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 62, in before_main
self.setup_medtronic( )
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/mmeowlink.py", line 92, in setup_medtronic
setup_medtronic_link(self)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/mmeowlink.py", line 75, in setup_medtronic_link
link = builder.build(radio_type, port)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/link_builder.py", line 16, in build
return SubgRfspyLink(port)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 55, in __init__
self.open()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 28, in open
self.check_setup()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 72, in check_setup
self.serial_rf_spy.sync()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_rf_spy.py", line 121, in sync
raise CommsException("Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
/dev/spidev5.1
npm list -g oref0
/usr/local/lib
└── oref0@0.4.0
pip show mmeowlink
?
reset_spi_serial.py
or mmtune?
---
Name: mmeowlink
Version: 0.11.0
Location: /home/.rootfs/usr/local/lib/python2.7/dist-packages
Requires: argcomplete, decocare, python-dateutil, pyserial
ccprog
make
is a command you can run inside the newly cloned directory.
git clone https://github.com/ps2/ccprog
will pull the files in
make
wget https://github.com/EnhancedRadioDevices/subg_rfspy/releases/download/v0.8-explorer/spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
root@EdisonAPS:~/ccprog# ccprog -p 19,7,36 erase
-bash: ccprog: command not found
./ccprog
that does it....
KeyError: 'pump'
? can you paste that full command/context?
screen
?
openaps pump-loop
, so from within your ~/myopenaps directory (cd ~/myopenaps
) we can do openaps alias show pump-loop
to see what that does
openaps wait-for-silence && openaps refresh-old-pumphistory && openaps refresh-old-pumphistory-24h
- the first one gets you the "No pump comms detected from other rigs", and the second one is the one that seems to be erroring out. we can look at what that one does by running openaps alias show refresh-old-pumphistory
killall -g openaps; openaps refresh-old-pumphistory
will do that
openaps alias show refresh-old-pumphistory
output, the next two things after echo -n \"Old pumphistory: \"
(which you do see) are openaps gather && openaps enact
. so we can run each of those manually and see which one gives us that error
killall -g openaps; openaps gather
and then killall -g openaps; openaps enact
if the gather
one doesn't error out
gather
is the one with the problem, we can drill down to see what it is doing by running openaps alias show gather
Flashing rootfs, (it can take up to 10 minutes... Please be patient)
you should see 10 minutes worth of slowly marching ####
characters on console
./flashall.sh
should catch it on one of them
ifconfig
@ptinson you're speaking to a worse-than-new OpenAPS user. I am still learning. 😉
I'd like to learn how to login to her rig while we are not in same area and not on same network, and then I could do a command line. But I haven't figured that out yet. So a nightscout pill would be best anyways