There are different fixes for the master (0.6.2) or dev (0.7.0) branches - make sure to use the solution specific for the branch you want to use.
If you're getting spi-related errors, e.g.
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
grepImportError: No module named spi_serial
Radio check failed. ImportError: No module named spi_serial
-
Run this:
curl https://gist.githubusercontent.com/cluckj/1f93b89388dfeec686be73f85e852a00/raw/a80388dc07eb43655b11be019ee2334d0a773a24/install_mraa.sh | bash
-
Then
reboot
-
Check your logs (
l
) and see if the error cleared.
Still getting errors? Or an error that says "Radio check failed. ValueError: Invalid SPI context"
?
a. Run sed -i.bak -e "s/#dtparam=spi=on/dtparam=spi=on/" /boot/config.txt
b. then reboot -f
c. Check your logs (l
) and see if the spi error cleared. If it has, give it ~20 minutes and you should be looping again.
If you're getting spi-related errors, e.g.
Radio check failed. ImportError: No module named spi_serial
Do this:
-
npm remove oref0 -g
-
reboot
openaps/oref0#1245 may fix this: to test, do
cd ~/src/oref0 && git fetch && git checkout setup-improvements && npm run global-install