Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
materiel:imprimante_thermique_brother_ql-570 [2025/03/11 15:54] emoc [Utilisation sur Debian 12] |
materiel:imprimante_thermique_brother_ql-570 [2025/03/12 14:14] (Version actuelle) emoc [brother_ql_web] |
||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
* Résolution : 300 dpi | * Résolution : 300 dpi | ||
- | Pour l'instant on a un rouleau de largeur 38mm x 90mm. Pour se rendre compte des divers types de rouleaux : https://www.brother.fr/consommables/ql-570 | + | Pour l'instant on a un rouleau de largeur 38mm x 90mm (DK-11208). Pour se rendre compte des divers types de rouleaux : https://www.brother.fr/consommables/ql-570 |
+ | ==== Consommables ==== | ||
+ | |||
+ | ^ Référence ^ Dimensions ^ Nbre d'étiquettes ^ Prix ^ Prix à l'étiquette ^ | ||
+ | | DK-11208 | 38 x 90 mm | 400 | 17,30e | 0,043e | | ||
+ | |||
+ | DK-11208 : https://store.brother.fr/catalogs/brotherfrance/consommables/imprimantes-d-etiquettes/etiquettes/dk/dk11208 | ||
===== Utilisation sur Debian 12 ===== | ===== Utilisation sur Debian 12 ===== | ||
Au premier branchement, lsusb renvoie ''Bus 002 Device 002: ID 04f9:2028 Brother Industries, Ltd QL-570 Label Printer'' | Au premier branchement, lsusb renvoie ''Bus 002 Device 002: ID 04f9:2028 Brother Industries, Ltd QL-570 Label Printer'' | ||
+ | |||
+ | J'essaie différents programmes qui permettent d'imprimer directement sur la machine, sans passer par un driver d'impression (ce qui permet d'utiliser ces imprimantes sur raspberry pi par exemple) | ||
+ | |||
+ | ==== QL570 ==== | ||
J'essaie d'installer https://github.com/sudomesh/ql570 | J'essaie d'installer https://github.com/sudomesh/ql570 | ||
+ | <code> | ||
+ | git clone https://github.com/sudomesh/ql570.git | ||
+ | cd ql570/ | ||
+ | sudo apt install build-essential libpng12-0 libpng12-dev pkg-config | ||
+ | make | ||
+ | sudo make install # n'a pas fonctionné | ||
+ | ./ql570 # ok | ||
+ | sudo ./ql570 /dev/usb/lp1 38x90 test.png # nécessaire pour accéder au port | ||
+ | </code> | ||
+ | |||
+ | Ça fonctionne mais l'image est mal cadrée... L'image fait 440 x 1083 \\ | ||
+ | Ça **fonctionne bien en 996 x 440, 1-bit, PNG** | ||
+ | |||
+ | ==== brother_ql_web ==== | ||
+ | |||
+ | https://github.com/pklaus/brother_ql_web | ||
+ | |||
+ | <code> | ||
+ | git clone https://github.com/pklaus/brother_ql_web.git | ||
+ | cd ./brother_ql_web/ | ||
+ | pip install -r requirements.txt # marche pas | ||
+ | pipx install brother_ql | ||
+ | pipx install bottle | ||
+ | pipx install jinja2 # -> erreur | ||
+ | sudo apt install python3-jinja2 | ||
+ | ./brother_ql_web.py | ||
+ | </code> | ||
+ | Mais ça ne marche pas, grrrrr, ''/usr/bin/env: « python »: Aucun fichier ou dossier de ce type'', je ne comprends pas comment fonctionne l'envirronnement python, pix et tout ça, ça vient probablement de là... | ||
+ | |||
+ | Ça fonctionne en installant un environnement virtuel python | ||
+ | <code> | ||
+ | sudo apt install virtualenv | ||
+ | cd /home/emoc/___LOGICIELS/2025/ | ||
+ | git clone https://github.com/pklaus/brother_ql_web.git | ||
+ | python3 -m venv brother_ql_web | ||
+ | source brother_ql_web | ||
+ | source brother_ql_web/bin/activate | ||
+ | cd brother_ql_web | ||
+ | pip install -r requirements.txt | ||
+ | ./brother_ql_web.py | ||
+ | deactivate | ||
+ | </code> | ||
+ | |||
+ | ==== brother-ql ==== | ||
- | 38mm x 90mm : 440 x 1083 | + | * https://pypi.org/project/brother-ql/ |
+ | * https://github.com/pklaus/brother_ql | ||