Giter Site home page Giter Site logo

brotherql_grocylabels's People

Contributors

sam159 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brotherql_grocylabels's Issues

Support for endless labels

Is it possible to add support for endless label rolls?

brother_ql returns label size as [x,0] for them
https://github.com/pklaus/brother_ql/blob/56cf4394ad750346c6b664821ccd7489ec140dae/brother_ql/labels.py#L89

So function

def createLabelImage(labelSize : tuple, text : str, textFont : ImageFont, textMaxLines : int, barcode : Image, dueDate : str, dueDateFont : ImageFont):

cannot create proper image.

I think of a workaround like set height of the label to NAME_FONT_SIZE multiplied by NAME_MAX_LINES plus feed_margin that can be received from ALL_LABELS.

Error when setting LABEL_SIZE

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.