Skip to content

Logs and displays how much beer is left remaining in your kegerator's keg

License

Notifications You must be signed in to change notification settings

bustinjailey/keg-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keg Pi

About

Keg Pi is a collection of packages that show how much beer is left in a keg. There are 3 packages that work together to do this: volumetracker, beerstats, and beerweb. They all share a PostgreSQL instance that is used to keep track of the keg over time.

Demo:

Video of Keg Pi in action

A few photos:

DisplayFlow meter

Modules

volumetracker

Keeps track of how much beer is poured based on data from the flow meter.

beerstats

Gives a readout of approximately how much beer is left in the keg.

beerweb (coming soon)

Manages the kegs. This is where the keg chaperone can create new kegs and choose the beer name to be displayed.

Hardware

Raspberry Pi

Keg Pi was tested on a Raspberry Pi 2 model B running Raspbian Jessie. It should theoretically run on any Raspberry Pi.

Flow Meter

Keg Pi subtracts from the total keg quantity based on the output from a flow meter attached to the Raspberry Pi's GPIO pins.

Screen

Keg Pi was written to display stats on a 128x64 pixel SSD1306 OLED display like this; however, anything that can use the SSD1306 driver and be connected to the Raspberry Pi via I2C should work.

Installation

  1. Format an SD card and flash the stock Raspbian (or Raspbian Lite) image by following these instructions.
  2. Attach the flow meter and OLED display. By default the application expects:
    1. An SSD1306 128x64 pixel display connected via I2C
    2. A flow meter connected via GPIO pin number 23
  3. Enable the I2C kernel module
    1. Run sudo raspi-config
    2. Choose Advanced Options, go to I2C and choose Yes at the two prompts
    3. Reboot
  4. Make sure you are in the pi user's home directory
    • cd ~
  5. Clone keg-pi repo
    • git clone https://github.com/bustinjailey/keg-pi.git
  6. Run cd keg-pi && sudo install.sh and enter a password to be used for the database user when prompted. The default is raspberry if you don't care to set your own password.

The install script is designed to be run on a fresh Raspbian installation and does a few things:

  1. Installs PostgreSQL
  2. Creates the keg-pi database schema
  3. Installs various package dependencies
  4. Installs the modules as daemons using supervisor

About

Logs and displays how much beer is left remaining in your kegerator's keg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published