Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:printers:receipt-printers [2025/12/31 03:33] – add tm-t88iv diamondhardware: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`), both located inside the member project rack. The Pi can be found behind or next to the receipt printer. The printed is connected to a Raspberry Pi 4 (hostname `nixos-media-box`), both located inside the member project rack. The Pi can be found behind or next to the receipt printer.
  
-The Pi hosts [receiptprinterd](https://codeberg.org/dma/receiptprinterd) at HTTP path `/receipt`. This server is capable of automating printing of many content types on the receipt printer. See instructions below on how to use it. +The Pi runs [receiptprinterd](#receiptprinterd) at HTTP path `/receipt`. 
- +
-### Printing Text +
- +
-To print a simple string, it should do: +
- +
-`curl -L http://nixos-media-box.local/receipt -F "text=Hello, world!"+
- +
-To print a file or print from stdin, it should do: +
- +
-`curl -L http://nixos-media-box.local/receipt -F "text=@/path/to/file"+
-`echo "Hello, world!" | curl -L http://nixos-media-box.local/receipt -F "text=@-"+
- +
-### Printing an Image +
- +
-To print an image, it should do: +
- +
-`curl -L http://nixos-media-box.local/receipt/image -F "image=@/path/to/image.jpg"+
- +
-Any image format supported by [Pillow](https://pypi.org/project/pillow/) will be supported. This includes JPEG and PNG. +
- +
-If the image is too wide, it will be automatically shrunk. +
- +
-If the image is in landscape orientation, it will automatically be rotated to fit the receipt. There is currently no way to turn this off. +
- +
-If the image is too dark, it can try: +
- +
-```bash +
-curl -L http://nixos-media-box.local/receipt/image \ +
-   -F "image=@/path/to/image.jpg"+
-   -F "brightness=0.85" +
- +
-``` +
- +
-For all parameters, see the API documentation for [POST /image](https://www.google.com/search?q=http://nixos-media-box.local/receipt/docs%23/default/print_image_image_post). +
- +
-### Printing a QR Code +
- +
-To print a QR code encoding some text, it should do: +
- +
-`curl -L http://nixos-media-box.local/receipt/qr -F "text=youtu.be/xuzKafChH7k"+
- +
-### 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 printer is currently not in use but has future plans. If you want to use it for your project, please reach out to its owner.
  
-`curl -L -X POST http://nixos-media-box.local/receipt/cut`+## receiptprinterd
  
-### API Documentation+Receipt printers hosted at the space are encouraged to run receiptprinterd, which provides automatic service discovery and a uniform API for printing receipts of all sorts.
  
-See [http://nixos-media-box.local/receipt/docs](https://www.google.com/search?q=http://nixos-media-box.local/receipt/docs).+Details: https://wiki.dma.space/software/receiptprinterd