pklaus / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
254 stars 124 forks source link

QL-820NWB @62mm endless does not work #35

Closed tobit6795 closed 3 years ago

tobit6795 commented 3 years ago

tested the following container

docker run \
  --name brother_ql_web \
  --detach \
  --publish 8013:8013 \
  --restart=always \
  pklaus/brother_ql_web:latest \
  ./brother_ql_web.py --model QL-820NWB tcp://192.168.0.57

endless does not appear to work, printer led flashes orange, but 62mm red is working lol

pklaus commented 3 years ago

I suppose you're using the default label roll that comes with the device when you purchase it? That's a one which can print black and red on white, so you have to choose "62mm red" if you want to print on that one.

tobit6795 commented 3 years ago

yes i use the default label roll. okay but how can i switch colour in this case ?

grafik

i expected sth to be under font settings ...

pklaus commented 3 years ago

Printing black text on the "62mm red" label is currently not implemented in the web interface of brother_ql_web. Feel free to add a pull request, for example with an additional option black/red font color in the "Font Settings" section.

pklaus commented 3 years ago

BTW: A quick fix to simply print black whatever label size is selected: edit line 79 of brother_ql_web.py:

    context['fill_color']  = (255, 0, 0) if 'red' in context['label_size'] else (0, 0, 0)

and change it to:

    context['fill_color']  = (0, 0, 0)