Skip to content

Commit

Permalink
Standalone MRAA installer for OpenAPS v0.7.0 (#1302)
Browse files Browse the repository at this point in the history
* Standalone MRAA installer for OpenAPS v0.7.0

Addresses #1270

* Add oref0-mraa-install to package.json
  • Loading branch information
cluckj authored and scottleibrand committed Oct 15, 2019
1 parent 75d08e1 commit 9b50667
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/oref0-mraa-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "Starting MRAA build...Installing dependencies..."
sudo apt-get -y install git build-essential swig3.0 cmake libjson-c-dev
echo "Downloading MRAA..."
mkdir -p ~/src && cd ~/src && wget https://github.com/intel-iot-devkit/mraa/archive/v1.7.0.tar.gz
echo "Extracting and building MRAA..."
tar -xvf v1.7.0.tar.gz && mv mraa-1.7.0/ mraa/
mkdir -p mraa/build && cd mraa/build && cmake .. -DBUILDSWIGNODE=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr && make && sudo make install
echo "Running ldconfig..."
bash -c "grep -q i386-linux-gnu /etc/ld.so.conf || echo /usr/local/lib/i386-linux-gnu/ >> /etc/ld.so.conf && ldconfig"
echo "MRAA installed. Please reboot before using."
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"oref0-mdt-update": "./bin/oref0-mdt-update.sh",
"oref0-meal": "./bin/oref0-meal.js",
"oref0-monitor-cgm": "./bin/oref0-monitor-cgm.sh",
"oref0-mraa-install": "./bin/oref0-mraa-install.sh",
"oref0-ns-loop": "./bin/oref0-ns-loop.sh",
"oref0-normalize-temps": "./bin/oref0-normalize-temps.js",
"oref0_nightscout_check": "./bin/oref0_nightscout_check.py",
Expand Down

0 comments on commit 9b50667

Please sign in to comment.