Generate label and print them via brother_ql to
Go to file
Hendrik Schutter 63ba1e8d1d Merge branch 'wait_for_printer' 2023-01-19 19:56:20 +01:00
.gitignore Initial commit 2022-11-08 20:35:40 +01:00
LICENSE Initial commit 2022-11-08 20:35:40 +01:00
README.md give hint to disable standby 2022-12-11 11:11:47 +01:00
dummy_receiver.py add dummy receiver for testing without hardware 2022-11-24 20:57:17 +01:00
layouter.py cut SN at start 2023-01-19 19:54:34 +01:00
output.png cut SN at start 2023-01-19 19:54:34 +01:00
reHDDPrinter.py wait for printer 2022-12-07 21:25:09 +01:00
reHDDPrinter.service trigger brother_ql 2022-11-23 22:28:01 +01:00

README.md

reHDDPrinter

  • Generate label and print them via brother QL-570.
  • Receive data from reHDD via IPC message queue.

Example Label

Screenshot of label

Install

pip install qrcode sysv-ipc pycstruct brother-ql

cd /root/
git clone https://git.mosad.xyz/localhorst/reHDDPrinter.git
cd reHDDPrinter
chmod +x reHDDPrinter.py
cp reHDDPrinter.service /lib/systemd/system/reHDDPrinter.service
systemctl daemon-reload
systemctl enable --now /lib/systemd/system/reHDDPrinter.service

Test printer manually

  export BROTHER_QL_PRINTER=file:///dev/usb/lp0
  export BROTHER_QL_MODEL=QL-570

brother_ql print -l 62 Untitled.png

Printer/Paper Info

  • Brother QL-570
  • Paper With: 62mm or 696px

Hint: Some Brother printers have enabled standby mode. This will disconnect the printer. See Issue #12 to disable standby.

see https://github.com/pklaus/brother_ql for details for printer access