Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 684 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 684 Bytes

Thermal printer controlled with JavaScript using ESC/POS and TCP sockets.

Important Bits:

  1. The printed connection is done in ./lib/printer.ts
  2. The Photobooth printing is done in ./actions/print.ts and the UI is in ./components/PhotoBooth.tsx
  3. The Chat printing is done in ./lib/chat.ts, the AI "Toxic message" detection in ./lib/sfw.ts and the UI in ./components/ChatForm.tsx.
  4. THe Sentry issue + screenshotting is done in ./lib/sentry.ts

I'm using a Rongta 80mm Receipt printer, but almost any one will do as they all operate on ESC/POS. I am hard wired ethernet, but many of them connect over USB, Serial, Wifi and bluetooth.