Skip to content

collectiveidea/bender

Folders and files

NameName
Last commit message
Last commit date
Jan 22, 2024
Jan 16, 2024
Jan 17, 2024
Jan 17, 2024
Jan 16, 2024
Apr 21, 2022
Jan 16, 2024
Feb 3, 2013
Feb 12, 2013
Jan 17, 2024
Feb 17, 2022
Apr 22, 2022
Apr 18, 2022
May 6, 2014
Feb 15, 2022
Jan 16, 2024
May 22, 2024
May 22, 2024
Jun 4, 2024
Nov 18, 2014
Apr 18, 2022
May 22, 2024
May 22, 2024
Mar 31, 2022
Apr 20, 2022
Apr 22, 2022
Apr 18, 2022
Apr 13, 2022
Apr 18, 2022
May 22, 2024
Mar 13, 2023

Repository files navigation

Bender

CI Code Climate Ruby Style Guide

A kegerator monitoring application built to run on a RaspberryPi or BeagleBone Black.

Currently runs at Collective Idea on a Raspberry Pi 4. Previously it ran on a Pi 3 (see ruby2 tag). It is both simplistic and overkill at the same time. Why not?

Home page

Keg details page

Running

Requirements

  • Ruby 3.3.1
  • PostgreSQL
  • Foreman (gem install foreman) or another Procfile runner (Overmind)

Setup

  1. Clone the repo
  2. bundle
  3. bin/setup
  4. foreman start -f Procfile.dev

Production

See doc/pi_setup.md for current instructions.

Basic concepts

The Rails app is pretty typical. There's a Faye process (running via Rack) to facilitate some realtime data updates.

Many settings are controlled by environment variables. See the .env.example and copy to .env as needed.

Pours and taps are controlled via the Pi's GPIO. Two rake tasks manage them. The pour monitoring runs a separate mruby process.