Skip to content

Kiosk & touchscreen ​

If you choose CocktailPi + Touchscreen UI in the installer, the Pi starts a full-screen browser on its own display at boot. This page explains how to make that screen pleasant for guests.

The simple view ​

The full UI has menus, tables and forms – too small for fingers. The simple view is a separate, touch-friendly UI with large recipe tiles, made for the screen on the machine. Open it via Me → Simple view.

  • The footer switches between Collections, Recipes and Ingredients (single ingredients on a pump). The Filter on the left searches by name or ingredient and filters by what can be made.
  • Tapping a recipe opens the order dialog; during production the screen shows the progress and asks for manual steps (see Making cocktails).
  • Options (top right): Switch User logs in another user on top of the current one, Logback returns to the previous user, Leave simple-view goes back to the full UI. While the hotspot runs, its entry is here too.

Simple view

Autologin and idle timeout ​

Nobody should need a password to order a drink at the machine. Create a user with the User role (e.g. "Kiosk"), edit it under Administration → Users and tick Autologin (local). The touchscreen is then logged in as this user automatically. Autologin (remote) does the same for all other devices, e.g. phones in your WiFi.

When an admin logs in at the machine to change something and walks away, Back to {user} after inactivity (Off, 2–30 minutes) switches the touchscreen back to the autologin user. Details and warnings: Users & roles.

User editor with autologin

On-screen keyboard ​

The touchscreen has no keyboard, so CocktailPi brings its own on-screen keyboard. It is part of the web UI and appears when a text field is tapped – only in the kiosk browser on the machine, not on phones or desktops.

Configure it under Administration → System → Appearance → On-screen kiosk-keyboard:

  • Enable turns it on or off.
  • Keyboard layout sets the layout for all kiosk screens, independently of the UI language: International, English, Deutsch, Dansk, Español, Français, Italiano, Português, Nederlands, Svenska, Norsk, Polski, Русский.

The keyboard takes its accent colour from the Button / Primary colour of the current view.

Appearance ​

Administration → System → Appearance applies to all devices:

  • System language – English, German, Danish, Spanish or French. Translations are welcome on GitHub.
  • Recipes per page in the recipe lists.
  • Interface colors for the full UI (with Light and Dark presets) and separate Simple view colors (with Reset) for the touchscreen, e.g. a dark background for a bar.

Appearance settings

Screen too small or too large? ​

Run the installer again and choose Configuration: Change size of Touchscreen UI, see Installation.

Reverse proxy ​

CocktailPi tells the touchscreen apart from other devices by the network address: requests from the Pi itself are local and get the local autologin user (and, while the hotspot runs, may change the WiFi).

If you put a reverse proxy on the Pi in front of CocktailPi (e.g. for HTTPS or a different port), every request seems to come from the Pi itself – so every phone would be treated as the touchscreen. In that case turn on Administration → System → Network → Behind a reverse proxy. CocktailPi then takes the client address from the X-Forwarded-For header.

Only turn it on if remote devices can reach CocktailPi only through the proxy. Otherwise a device could send a fake header and pretend to be the touchscreen.

Try the online demo

Log in with the credentials below. The demo is shared with other visitors and is reset from time to time, so your changes may be lost.

User
Admin
Password
123456