gilbertfl / escpos-netprinter

Emulator of a networked ESC/POS printer
GNU Affero General Public License v3.0
1 stars 1 forks source link

ESC/POS virtual network printer

This is a container-based ESC/POS network printer, that replaces paper rolls with HTML pages and a web interface.

The printer emulates a 80mm roll of paper.

sample print

Limits

This docker image is not to be exposed on a public network (see known issues)

A print cannot last longer than 10 seconds. This timeout could be changed at some point, or made configurable.

Quick start

This project requires:

To install from source:

wget --show-progress https://github.com/gilbertfl/escpos-netprinter/archive/refs/heads/master.zip
unzip master.zip 
cd escpos-netprinter-master
docker build -t escpos-netprinter:2.0 .

To run the resulting container:

docker run -d --rm --name escpos_netprinter -p 515:515/tcp -p 80:80/tcp -p 9100:9100/tcp escpos-netprinter:2.0

It should now accept prints by JetDirect on the default port(9100) and by lpd on the default port(515), and you can visualize it with the web application at port 80.
For debugging, you can add port 631 to access the CUPS interface. The CUPS administrative username is cupsadmin and the password is 123456.

As of version 2.0, this has been tested to work with a regular POS program without adapting it.

Known issues

While version 2.0 is no longer a beta version, it has known defects: