Git Product home page Git Product logo

bql-label-printer's Introduction

Brother Label Printer UI

This is a very simple web interface to create text labels on a Brother QL series label printers supported by pklaus/brother_ql.

Installation

Create a virtual environment and install the requirements

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

Running

Start the server by providing the model and connection string as in the following example:

$ ./app.py --model QL-500 tcp://192.168.1.1:9100

Run app.py -h for more info.

Using

Open your browser on the shown URL (defaults to http://127.0.0.1:8013/). The application uses modern JavaScript (promises, blobs, etc) and requires a modern browser. It was tested with Chrome only, but probably works in Firefox, too.

Label Templates

Labels are based on HTML templates located in the static/labels/ directory. Templates need to start with a supported label size followed by an underscore. See pklaus/brother_ql for a list of supported sizes.

The templates need to contain exactly one root element, specifying the exact size of the label in pixels (again, check the above site for proper values).

Elements containing an input class can be edited through the form.

Divs with the qrcode class will be converted to a QR Code. They also need the input class and a data-value attribute instead of an inner text.

Feedback

Please feel free to submit feedback in the form of pull requests.

Credits

Many thanks to the following projects:

bql-label-printer's People

Contributors

splitbrain avatar expl0r3rgu1 avatar

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.