Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hardware:printers:receipt-printers [2025/12/31 03:33] – add tm-t88iv diamond | hardware:printers:receipt-printers [2025/12/31 03:38] (current) – add tm-t88v diamond | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| We currently have 1 working receipt printer at the space. | We currently have 1 working receipt printer at the space. | ||
| - | ## Epson TM-T88IV (owner: @diamond) | + | ## Epson TM-T88IV (@diamond) |
| + | |||
| + | - owner: @diamond | ||
| + | - input port: parallel | ||
| This receipt printer is an Epson TM-T88IV. It has a Centronics Parallel port at the back. We use a Parallel-to-USB cable with it. | This receipt printer is an Epson TM-T88IV. It has a Centronics Parallel port at the back. We use a Parallel-to-USB cable with it. | ||
| Line 9: | Line 12: | ||
| The printed is connected to a Raspberry Pi 4 (hostname `nixos-media-box`), | The printed is connected to a Raspberry Pi 4 (hostname `nixos-media-box`), | ||
| - | The Pi hosts [receiptprinterd](https:// | + | The Pi runs [receiptprinterd](#receiptprinterd) at HTTP path `/ |
| - | + | ||
| - | ### Printing Text | + | |
| - | + | ||
| - | To print a simple string, it should do: | + | |
| - | + | ||
| - | `curl -L http:// | + | |
| - | + | ||
| - | To print a file or print from stdin, it should do: | + | |
| - | + | ||
| - | `curl -L http:// | + | |
| - | `echo " | + | |
| - | + | ||
| - | ### Printing an Image | + | |
| - | + | ||
| - | To print an image, it should do: | + | |
| - | + | ||
| - | `curl -L http:// | + | |
| - | + | ||
| - | Any image format supported by [Pillow](https:// | + | |
| - | + | ||
| - | If the image is too wide, it will be automatically shrunk. | + | |
| - | + | ||
| - | If the image is in landscape orientation, | + | |
| - | + | ||
| - | If the image is too dark, it can try: | + | |
| - | + | ||
| - | ```bash | + | |
| - | curl -L http:// | + | |
| - | -F " | + | |
| - | -F " | + | |
| - | + | ||
| - | ``` | + | |
| - | + | ||
| - | For all parameters, see the API documentation for [POST / | + | |
| - | + | ||
| - | ### Printing a QR Code | + | |
| - | + | ||
| - | To print a QR code encoding some text, it should do: | + | |
| - | + | ||
| - | `curl -L http:// | + | |
| - | + | ||
| - | ### Printing Without Cutting (Continuous Printing) | + | |
| - | By default, after each printing request, the server will command the printer to cut the paper. To change this behavior, add: | + | ## Epson TM-T88V (@diamond) |
| - | `-F cut=false` | + | - owner: @diamond |
| + | - input port: USB-B | ||
| - | It may also manually command the printer to cut via a request: | + | This receipt |
| - | `curl -L -X POST http:// | + | ## receiptprinterd |
| - | ### API Documentation | + | Receipt printers hosted at the space are encouraged to run receiptprinterd, |
| - | See [http:// | + | Details: https://wiki.dma.space/software/receiptprinterd |