Yay, Debrew!

Debrew is an open source hand brew machine using the Delta platform for
controlling the water and ground coffee. Is uses the Hario V60:
https://www.espressosupply.com/catalog/hario-v60-dripper-glass-black-handle and a Breville
coffee grinder: http://www.target.com.au/p/breville-bar-aroma-coffee-grinder-bcg45/40994680

To get the software up and running:
Assuming you have a Replicape, a BeagleBone Black and a Manga Screen:

Start with the latest Thing-image: http://wiki.thing-printer.com/index.php?title=Thing
Once logged in (ssh root@thing.local), rename it:
echo "debrew" > /etc/hostname
Point your browser to http://debrew.local
Configure Redeem by choosing "debrew.cfg" from the list of profiles in the settings tab.
Then ssh root@debrew.local again.
uninstall the thing-frontend:
opkg remove thing-frontend
Install the Debrew frontend:
opkg install debrew-frontend
systemctl restart lighttpd
This will install the web interface.

Disable toggle:
systemctl mask toggle
Install the debrew app:
opkg install debrew

Building the parts needed.
Ok, this one is a little more tricky.
You need download the debrew skp file and export each of the parts from
Sketchup as STL files. Then you need to print them. The debrew.skp should be in this repo.


Installation on Debian:

cd /usr/src
git clone https://intelligentagent@bitbucket.org/intelligentagent/debrew.git
cd debrew/web
cp -r debrew /var/www/html/
mkdir -p /etc/debrew
cp debrew /etc/debrew/
chmod +x /var/www/html/debrew/debrew.py

Edit the fastcgi config

nano /etc/lighttpd/conf-enabled/10-fastcgi.conf

It should look like this:

server.modules  += (

fastcgi.server = (
        ".py" => ((
                "socket" => "/tmp/fastcgi.socket",
                "bin-path" => "/var/www/html/debrew/debrew.py",
                "max-procs" => 1,
                "bin-environment" => (
                        "REAL_SCRIPT_NAME" => ""
                "check-local" => "disable"

url.rewrite-once = (
        "^/favicon.ico$" => "/static/favicon.ico",
        "^/static/(.*)$" => "/static/$1",
        "^/(.*)$" => "/debrew/debrew.py/$1",
systemctl restart lighttpd.service

If you encounter errors:

tail /var/log/lighttpd/error.log -n 100