Skip to content
/ kriek Public
forked from jsproull/kriek

Kriek is the easiest to use brewing control software for the raspberry pi.

License

Notifications You must be signed in to change notification settings

deba82de/kriek

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kriek

Kriek is the easiest to use brewing control software for the raspberry pi.

Requirements

A Raspberry Pi or BeagleBone Black. DS18B20 temperature probes. Solid State Relays.

Screen Shot

main screen

Installation

These instructions assume a debian-based install (raspbian, ubuntu, etc) on the pi or BBB.

Debian Setup

  • sudo apt-get update
  • sudo apt-get upgrade -y
  • sudo apt-get install libpq-dev python-dev postgresql-server-dev-9.1 postgresql postgresql-contrib nginx supervisor python-virtualenv -y

For BBB

  • sudo apt-get install build-essential python-setuptools python-pip python-smbus -y

Create a virutalenv for kriek

  • sudo mkdir /opt/kriek
  • sudo chown pi /opt/kriek
  • virtualenv /opt/kriek/env-kriek

pip requirements

  • /opt/kriek/env-kriek/bin/pip install django gunicorn psycopg2 django-suit djangorestframework South

We use either wiringpi or Adafruit_BBIO depending on the platform

for Pi

  • /opt/kriek/env-kriek/bin/pip install wiringpi

for BBB

  • /opt/kriek/env-kriek/bin/pip install Adafruit_BBIO

Configure postgres

  • sudo su - postgres
  • createdb kriek
  • psql -d kriek -c "CREATE user pi with password 'pi';"
  • psql -d kriek -c "GRANT ALL PRIVILEGES ON DATABASE kriek to pi;";
  • exit

clone the source code

Configure the django kriek installation

  • cd /opt/kriek/kriek
  • ./manage.py syncdb
  • create a user named 'pi' with password 'pi'
  • ./manage.py migrate common
  • ./manage.py migrate brew
  • ./manage.py migrate ferm
  • ./manage.py migrate globalsettings
  • ./manage.py migrate status
  • sudo ./manage.py collectstatic

then set up gunicorn, supervisord and nginx

  • sudo cp -R /opt/kriek/kriek/conf/ngnix/* /etc/nginx/
  • sudo cp -R /opt/kriek/kriek/conf/supervisor/conf.d/* /etc/supervisor/conf.d/

And set up the required modules

For Pi

  • sudo sh -c "echo 'w1_gpio\nw1_therm\n' >> /etc/modules"

For BBB

TODO

Reboot

sudo reboot

Once rebooted, you should be able to go to http://yourip and sign in using username: pi with password: pi

Configuration

Coming soon

About

Kriek is the easiest to use brewing control software for the raspberry pi.

Resources

License

Stars

Watchers

Forks

Packages

No packages published