Git Product home page Git Product logo

autokurig's Introduction

autokurig

automate my kurig this project assumes the following

  1. you have raspian installed on your raspberry pi nano

installing requirements

python -m pip3 install -r requirements.txt

linux install pip

sudo apt install python3-pip

Install requirements

sudo pip3 install -r requirements.txt

Install Apache

sudo apt update
sudo apt install apache2

Allow user "pi" to run GPIO input/output

sudo rpi-update sudo adduser pi gpio

Install mod_wsgi

for python 3

sudo apt-get install libapache2-mod-wsgi-py3 python-dev

Permissions

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

download to your PI

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

OR you can run the following commands

move .conf file to the active sites directory

sudo mv /home/pi/autokurig/autokurig.conf /etc/apache2/sites-available/autokurig.conf

restart the apache service

sudo service apache2 restart

activate site (do once)

sudo a2ensite /etc/apache2/sites-available/autokurig.conf

Restart your Apache service

apache2 -f /etc/apache2/apache2.conf -k stop
apache2 -f /etc/apache2/apache2.conf -k start

Referenced pages

https://www.codementor.io/abhishake/minimal-apache-configuration-for-deploying-a-flask-app-ubuntu-18-04-phu50a7ft

https://raspberrypi.stackexchange.com/questions/40105/access-gpio-pins-without-root-no-access-to-dev-mem-try-running-as-root

sudo rpi-update sudo adduser pi gpio

autokurig's People

Contributors

wifidoneright avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.