Residents Platform: House Pub

Everything that runs the pub, built as five modules on one backend.

A pub that runs on a few shifts a week cannot have software that needs babysitting, so everything that keeps it running (the screens, the sound and lights, the schedule, the sales numbers) has to look after itself and explain itself. This project is the whole system behind it, built as a set of modules that share one backend. I built it as part of Affective Technologies, which serves the residents.

Affiliation. Affective Technologies provides the website and technical infrastructure for resident-led I-House projects. Not affiliated with International House NYC or AVI Foodsystems.

At a glance

  • Status: in production, except the hardware-maintenance module, which is still in progress.
  • Modules: five, each with its own write-up below.
  • Built on: Cloudflare (backend, databases, and storage), a Q-SYS audio system, two K-array amplifiers, and a Raspberry Pi.
  • Used by: tenders, residents, and technology stewards.

See it

The public House Pub web page on a dark background, showing the pub is closed and opens Wednesday at 9 PM, this week's serving hours, and links to the menu, specials, announcements, and tutorials
The public House Pub page: whether the pub is open, this week's serving hours, and links to the menu, specials, and announcements. The same backend drives the bar TVs.

You can try the live page at pub.ihnyc.affectivetech.com.

The modules

Each module is a project of its own. Open one for the full story.

How the modules fit

flowchart TD
  H[Room hardware] <--> Pi[Raspberry Pi]
  Pi <--> B[Pub backend]
  S[Sales reports] --> B
  C[House Desk events] --> B
  B --> T[TVs and website]
  B --> A[Admin console]

The Raspberry Pi is the bridge between the audio network, which has no internet access, and the backend. The backend serves the public website and the TVs, and gives the people who run the pub one admin console. Events come from Residents Platform: House Desk, so a correction made once appears everywhere.

What is live and what is not

For how this fits with the rest of the platform, including shared principles, see The Platform Map.

Read more

Resident-facing guides are public: how the setlist works, how pub scheduling works, and Photo Flash and DJ Mode. The engineering documentation sits behind a login for the people who run the system.