fancy name, QL-570 text formater
Go to file
2023-06-14 13:36:23 +03:00
inkscape this 2023-06-14 13:36:23 +03:00
.gitignore inkscape 2023-06-11 12:20:57 +03:00
README.md this 2023-06-14 13:35:51 +03:00
text_to_image.sh init 2023-06-09 13:47:37 +03:00
thermatext.py init 2023-06-09 13:47:37 +03:00

thermatext

fancy name, QL-570 text formater

using the Brother QL family with support for linux.
label printer controled by brother-ql project

TODO

  • use as printer
    • works, but cant detect the length of text, will output a set (page?) length
  • fix missing font defentions
    • fail to take into account letter width
  • set output image size as spec
Name      Printable px   Description
62        696            (62mm endless)
  • telegram bot (!)

Permissions

echo 'SUBSYSTEMS=="usb", ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="2028", MODE="0777"' | sudo tee /etc/udev/rules.d/52-QL-BROTHER.rules

#reload udev rules
sudo udevadm control --reload-rules && sudo udevadm trigger

CLI

sudo brother_ql -b pyusb --model QL-570 -p usb://0x04f9:0x2028/000M12345678 print -l 62 logo.png

python

python tries to detect letter width and maximise it to fit the label printer constraints (62mm width)
python thermatext.py "label to print"

inkscape

gptgist

inskcape user extension path
/home/${USER}/.config/inkscape/extensions

symbolic link the dir fro here to the inkscape extension ln -s /home/${USER}/yair/thermatext/inkscape /home/${USER}/.config/inkscape/extensions/thermatext
then check

find ~/.config/inkscape/ -type l

using ql_brother web UI

(brother_ql_web](https://github.com/pklaus/brother_ql_web.git) has a web GUI and an restAPI(!)

git clone https://github.com/pklaus/brother_ql_web.git
cd brother_ql_web
python -m venv venv
source venv/bin/activate; 
pip install -r requirements.txt
./brother_ql_web.py