banderole.sh/README

39 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-01-26 11:52:07 +01:00
2024-02-12 19:08:14 +01:00
A tool for writing banners on cash receipts.
Works on mac, linux* and *bsd
CC4r license
2024-01-29 02:24:59 +01:00
___________________________________________________
2024-02-12 19:08:14 +01:00
/ |) _, _| _ _. _ |\ _ , |) * \
2024-01-29 02:24:59 +01:00
\ |/\_/ | /|/| / | |/ / | / \_|/ |/ / \_|/\ /
/ /\/ \/|_/ | |_/\/|_/|_/ |/\_/ |_/|_/o \/ | |/ \
2024-02-12 19:08:14 +01:00
\____________________________* banner, streamer ____/
2024-01-26 11:52:07 +01:00
2024-02-12 19:08:14 +01:00
We use the -label flag of the image magick convert command to
generate the text contained in the MESSAGE variable on a white background.
The image is saved as a png and is named according to the number of
seconds passed since January 1, 1970. (see: Posix time)
Then, we calculate a cross product of the image obtained to have the
length of the ticket in millimeters to print.
We send this image to the printer via the lp command of the utility
cups, specifying the dimensions calculated in millimeters.
2024-01-26 11:52:07 +01:00
2024-02-12 19:08:14 +01:00
Dependencies
2024-01-26 11:52:07 +01:00
* image magick (Licence ImageMagick →
2024-02-12 19:08:14 +01:00
https://imagemagick.org/script/license.php): software to generate
and process one or more images → https://imagemagick.org/
* cups (Apache 2.0): an interface to communicate with
printers → https://openprinting.github.io/cups
2024-01-26 11:52:07 +01:00
_______________________________________________________________________
/!\ important /!\
2024-02-12 19:08:14 +01:00
banderole.sh is supplied WITHOUT a thermal printer. It is necessary
to have access to such a tool to print a banner. I use a
Epson TM-T20II which prints up to 80mm wide and connects via USB,
there are plenty of others, you have to hunt around...
2024-01-26 11:52:07 +01:00
_______________________________________________________________________
2024-02-12 19:08:14 +01:00
Written at erg during the winterschool of 2024
2024-01-26 11:52:07 +01:00
contact@martinlemaire.fr