Enables printing simple web content (news, puzzles, etc.) to any ESC/POS thermal printer.
- Install uv
- Install Chromium within playwright with
uv run playwright install chromium
uv run src/main.py --helpPrint content to your thermal printer:
uv run src/main.py sudoku weatherGenerate output files (HTML and PNG) without sending to the printer:
uv run src/main.py --dry-run sudokuThis creates temp.html and temp.png files that you can preview before printing.
Here are examples of what the thermal printer output looks like:
By default, the printer uses vendor ID 0x1fc9 and product ID 0x2016. To use a different printer, specify the IDs:
uv run src/main.py --vendor-id 0x1234 --product-id 0x5678 sudokuFollow the guide here.
uv run pytestContributions, issues and feature requests are welcome!
Feel free to check issues page.

