thermatext/README.md
2023-06-14 13:35:51 +03:00

1.7 KiB

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