Skip to content

danirukun/tipfax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TipFax

A Go application that connects to StreamElements and prints tips to a thermal printer.

Features

  • 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)

Requirements

  • Go 1.21 or later
  • A compatible thermal printer (tested with Epson TM-T20II)
  • StreamElements JWT token

Configuration

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)

Building

make

Running

./bin/server

Installing as a service

./install-service.sh

About

Print your StreamElements tips on a thermal printer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published