https://github.com/pretix/escpos-server
Local server to expose and monitor a USB ESC/POS printer via network
https://github.com/pretix/escpos-server
Last synced: 16 days ago
JSON representation
Local server to expose and monitor a USB ESC/POS printer via network
- Host: GitHub
- URL: https://github.com/pretix/escpos-server
- Owner: pretix
- License: apache-2.0
- Created: 2026-06-28T21:20:19.000Z (26 days ago)
- Default Branch: main
- Last Pushed: 2026-06-28T21:23:52.000Z (26 days ago)
- Last Synced: 2026-06-28T23:11:58.401Z (26 days ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# escpos-server
Local server to expose and monitor a USB ESC/POS printer via network.
The server will open two ports, one raw TCP port that behaves like the printer itself, and one HTTP port with a web API.
## Usage
```
usage: escpos-server [-h] --usb-product USB_PRODUCT
[--listen-host LISTEN_HOST] [--listen-port LISTEN_PORT]
[--web-host WEB_HOST] [--web-port WEB_PORT]
[--verbose]
ESC/POS server
options:
-h, --help show this help message and exit
--usb-product USB_PRODUCT
--listen-host LISTEN_HOST
--listen-port LISTEN_PORT
--web-host WEB_HOST
--web-port WEB_PORT
--verbose
```
Example:
```
$ escpos-server --usb-product 04b8:0202
```
## Web API
```
$ curl http://127.0.0.1:8101/
{"status": {"type": "online", "paper_end": false, "paper_near_end": false}}
```