Percy's Puzzle Bar
Printer setup
Staff only. Ask whoever runs the bar for the passcode.
Percy's Puzzle Bar
Staff only. Ask whoever runs the bar for the passcode.
Percy's Puzzle Bar
Receipts are approved on the dashboard, which runs in a browser — and a browser can't talk to a Bluetooth printer on its own. This little helper does that part. It's one file, it needs no installer, and it only ever prints what staff approve.
If the printer is a newer Bluetooth (BLE) model, Chrome can talk to it directly. On the computer with the printer: open the dashboard, click Print over Bluetooth in the top bar, and pick the printer from the list. Approved receipts then print from that tab.
Chrome or Edge only — no Safari, no iPhone — and that tab has to stay open and visible, because browsers slow down background tabs. If the printer doesn't appear in the chooser it's an older classic-Bluetooth model, so use the steps below instead.
Switch the printer on and hold it near this computer.
Open System Settings → Bluetooth, find the printer in the list (something like
Y813BT or TM-P2) and click Connect.
Open Settings → Bluetooth & devices → Add device → Bluetooth, pick the printer, then note its COM port under Device Manager → Ports (COM & LPT).
Pair it with your desktop's Bluetooth panel, then bind it:
sudo rfcomm bind 0 <printer-mac>
A USB cable works too — plug it in instead and skip to step 2.
Node is what runs the helper. Get the LTS build from nodejs.org and click through the installer. Already have it? Skip ahead.
To check, run node --version in a terminal.
Pick your paper width so receipts aren't cut off:
Save it anywhere — Downloads is fine. It has this bar's address and staff token baked in, so don't post it anywhere public.
Open Terminal (⌘-Space, type "terminal") and paste this:
Open PowerShell (Start menu, type "powershell") and paste this:
Open a terminal and paste this:
node ~/Downloads/percy-printer.js
The first run asks which device is the printer — type the number next to it. It remembers your answer after that.
Leave that window open for the night; receipts print while it runs. Control-C stops
it. On a Mac, caffeinate -i node ~/Downloads/percy-printer.js also keeps
the machine awake.
This turns green on its own the moment the helper connects — no need to reload. Then send yourself a receipt to be sure paper comes out:
Enabled once a computer has checked in.
npm install usb in the same folder
first.