thprint: Thermal print server for esc pos printers

thprint is an extremely simple printing server for thermal printers connected to raspberry pis.
This printing server exposes a print endpoint that prints the received content and then cuts the paper.

How to print

To print, send a POST request to the /print endpoint and specify the text in the request body.

Here is a simple test curl command:

curl --request POST \
  --url http://server-ip:5000/print \
  --header 'Content-Type: text/plain' \
  --data 'test text'

Running the image on a Raspberry Pi

docker run \
  --restart=always \
  --name thprint -d \
  --device=/dev/usb/lp0 \
  -p 5000:5000 \
  chidoba/thprint:latest

GitHub:

Source: https://github.com/chidoba/thprint?ref=golangexample.com

Default image
Lingaraj Senapati
Hey There! I am Lingaraj Senapati, the Co-founder of lingarajtechhub.com My skills are Freelance, Web Developer & Designer, Corporate Trainer, Digital Marketer & Youtuber.
Articles: 253

Newsletter Updates

Enter your email address below to subscribe to our newsletter