automate my kurig this project assumes the following
- you have raspian installed on your raspberry pi nano
python -m pip3 install -r requirements.txt
sudo apt install python3-pip
sudo pip3 install -r requirements.txt
sudo apt update
sudo apt install apache2
sudo rpi-update
sudo adduser pi gpio
for python 3
sudo apt-get install libapache2-mod-wsgi-py3 python-dev
Your new web server doesn't have rights to the
GOIP user group. run the following command to add your web server user to the GPIO group
usermod -a -G gpio www-data
everything is set up to run from the user pi home directory
cd /home/pi/
git clone https://github.com/eventuallyiwin/autokurig.git
now run deploy.bash
/my/path/deploy.bash
sudo mv /home/pi/autokurig/autokurig.conf /etc/apache2/sites-available/autokurig.conf
sudo service apache2 restart
sudo a2ensite /etc/apache2/sites-available/autokurig.conf
apache2 -f /etc/apache2/apache2.conf -k stop
apache2 -f /etc/apache2/apache2.conf -k start
sudo rpi-update
sudo adduser pi gpio