Skip to content

Commit

Permalink
Support for pi-buttons (#1201)
Browse files Browse the repository at this point in the history
Will install pi-buttons repository (standalone button interface service), depends on a commit to openaps-menu to support this new interface.
  • Loading branch information
cluckj authored and scottleibrand committed Feb 13, 2019
1 parent 27f862f commit 7112431
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/oref0-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1233,9 +1233,15 @@ if prompt_yn "" N; then
echo "i2c-dev" > /etc/modules-load.d/i2c.conf
echo "Installing socat and ntp..."
apt-get install -y socat ntp
echo "Installing pi-buttons..."
systemctl stop pi-buttons
cd $HOME/src && git clone git://github.com/bnielsen1965/pi-buttons.git || (cd $HOME/src/pi-buttons && git checkout master && git pull)
echo "Make and install pi-buttons..."
( cd $HOME/src/pi-buttons/src && make && sudo make install && sudo make install_service ) || die "Couldn't install pi-buttons"
systemctl enable pi-buttons && systemctl restart pi-buttons
echo "Installing openaps-menu..."
cd $HOME/src && git clone git://github.com/openaps/openaps-menu.git || (cd openaps-menu && git checkout master && git pull)
cd $HOME/src/openaps-menu && sudo npm install
cd $HOME/src/openaps-menu && sudo npm install || die "Couldn't install openaps-menu"
cp $HOME/src/openaps-menu/openaps-menu.service /etc/systemd/system/ && systemctl enable openaps-menu
fi

Expand Down

0 comments on commit 7112431

Please sign in to comment.