Giter Club home page Giter Club logo

brother_ql_web's Introduction

brother_ql_web

This is a web service to print labels on Brother QL label printers.

You need Python 3 for this software to work.

Screenshot

The web interface is responsive. There's also a screenshot showing how it looks on a smartphone

Additional Features

  • Print text as QR Code
    • Add text to QR Code
    • Change size of QR Code
  • Upload files to print
    • .pdf, .png and .jpg files
    • automatically convertion to black/white image
  • Change print color for black/white/red labels
  • Print lables multiple times
    • Cut every label
    • Cut only after the last label
  • Migrated GUI to Bootstrap 4
  • Make preview for round labels.. round

Installation

This installation manual requires only a default installation of Debian 10 (Buster). Install prerequisites:

apt install fontconfig python3-venv python3-pip git poppler-utils

Get the code:

cd /opt
git clone https://github.com/tbnobody/brother_ql_web.git

Build the venv and install the requirements:

cd /opt/brother_ql_web
python3 -m venv .venv
source /opt/brother_ql_web/.venv/bin/activate
pip install -r requirements.txt

Configuration file

Create a directory called 'instance', a file called 'application.py' and adjust the values to match your needs.

mkdir /opt/brother_ql_web/instance
touch /opt/brother_ql_web/instance/application.py

E.g. """ User specific application settings """ import logging PRINTER_MODEL = 'QL-820NWB' PRINTER_PRINTER = 'tcp://192.168.1.33:9100'

Startup

To start the server, run ./run.py.

Automatic startup using systemd service

Copy service file, reload system, enable and start the service

cp brother_ql_web/systemd/[email protected] /etc/systemd/system
systemctl daemon-reload
systemctl enable [email protected]
systemctl start [email protected]

Bind the server to port 80

Running the server on port 80 means you don't have to specifiy the port to connect; however, this requires root priveleges for the process. One solution is to use a firewall to redirect connections from port 80 to a 'registered port'

For example, using iptables:

sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8013

The web service can now be bound to port 8013, and will receive connections on both ports.

Usage

Once it's running, access the web interface by opening the page with your browser. If you run it on your local machine, go to http://localhost:8013. You will then be forwarded by default to the interactive web gui located at /labeldesigner.

All in all, the web server offers:

  • a Web GUI allowing you to print your labels at /labeldesigner,
  • an API at /api/print/text?text=Your_Text&font_size=100&font_family=Minion%20Pro%20(%20Semibold%20) to print a label containing 'Your Text' with the specified font properties.

License

This software is published under the terms of the GPLv3, see the LICENSE file in the repository.

Parts of this package are redistributed software products from 3rd parties. They are subject to different licenses:

brother_ql_web's People

Contributors

tbnobody avatar pklaus avatar mikafinja avatar tomw1605 avatar vincent-dalstra avatar christopherhackett avatar jeroen684 avatar reinierh avatar robinsloan 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.