Giter VIP home page Giter VIP logo

butler's Introduction

Butler

Silly little flask app that tells if the coffee machine's ready to brew.

  • Raspberry Pi with camera module to extract text on coffee machine screen
  • Flask app to show information

Enable ssh and camera

With Raspbian Jessie, switch these on in Raspberry Pi Configuration.

Remote ssh into pi

Get pi's address in pi

hostname -I

Get pi's address in remote

ifconfig | grep 'inet'
nmap -sn 192.168.2.0/24

ssh into pi

Setup python

Some dependencies

# optional
sudo apt-get install -y unzip wget
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libatlas-base-dev gfortran # optimization of cv operations
# must have
sudo apt-get install python-dev python-setuptools
sudo apt-get install tesseract-ocr

virtualenv

sudo pip install virtualenv
source venv/bin/activate
pip install -r req.txt

Open CV (Optional)

cd ~/Libraries
git clone https://github.com/opencv/opencv_contrib.git
wget https://github.com/Itseez/opencv/archive/master.zip
unzip master.zip
rm master.zip
cd opencv-master
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D BUILD_EXAMPLES=ON \
  -D OPENCV_EXTRA_MODULES_PATH=~/Libraries/opencv_contrib/modules ..
make -j4
sudo make install
sudo ldconfig

Run

python cam.py
python slack.py
sudo python app.py

butler's People

Contributors

yaojiach avatar

Watchers

 avatar  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.