- Connect and turn on the receipt printer.
- Set up receipt printer as generic printer using CUPS. Name it
THERMAL
. - Install
sudo /usr/bin/python -m pip install python-escpos --pre
. - Place all files in
~/dev/friends-indeed-receipt/
.
- Download the receipt image and move it to
~/dev/friends-indeed-receipt/
. Remove all spaces in the name. It should be 384 pixels wide at 300dpi if making your own. - Double click
receipt.app
. Give it the image you downloaded.
To run just the script, replace the name of the image with the one you want to print.
python print.py test.png