sam159 / brotherql_grocylabels

Brother QL Grocy Label Printer Service
MIT License
8 stars 0 forks source link

Error when setting LABEL_SIZE #1

Closed lordhelmet77 closed 3 months ago

lordhelmet77 commented 4 months ago

I only have 62mm endless and 29x90 to go with. So I'm setting the label-size as environment variable. My compose for grocylabels:

  grocylabels:
    image: sam159/brotherql_grocylabels:latest
    restart: unless-stopped
    environment:
      - PRINTER_MODEL=QL-720NW
      - PRINTER_PATH=tcp://10.16.0.20
      - LABEL_SIZE=29x90
    networks:
      - lab01
    ports:
      - 8000:8000

If I set any LABEL_SIZE, I get a CODE 400 due to timeout:

  "error_message": "cURL error 28: Operation timed out after 2001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://10.16.0.12:8000/print"

If I don't set LABEL_SIZE, the print is sent but the printer gives an error for wrong paper size.

Am I missing something?

The printer works fine, for example printing from the brother_ql_web-dashboard works flawless.

sam159 commented 4 months ago

Hmm, not sure whats going on there. Is there anything in the container logs that might indicate why its failing? Endless labels are on my to-do list, need to get some to test with.

Can you try getting to http://10.16.0.12:8000/image?product=test&grocycode=1234 ? that should give you an image of the label.