A Go application that connects to StreamElements and prints tips to a thermal printer.
- Connects to StreamElements Astro WebSocket API
- Prints tips to a thermal printer
- Graceful shutdown handling
- Configurable via environment variables
- Web interface to view server status (default: http://localhost:8082)
- Go 1.21 or later
- A compatible thermal printer (tested with Epson TM-T20II)
- StreamElements JWT token
The following environment variables are available:
SE_JWT_TOKEN
: StreamElements JWT token (required)DEVICE_PATH
: Printer device path (default:/dev/usb/lp0
)SERVER_PORT
: Server port (default::8082
)
make
./bin/server
./install-service.sh