• Stars
    star
    196
  • Rank 197,969 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql

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

Installation

ProTipβ„’: If you know how to use Docker, you might want to use my ready-to-use Docker image to deploy this software. It can be found on the Docker hub.
Otherwise, follow the instructions below.

Get the code:

git clone https://github.com/pklaus/brother_ql_web.git

or download the ZIP file and unpack it.

Install the requirements:

pip install -r requirements.txt

In addition, fontconfig should be installed on your system. It's used to identify and inspect fonts on your machine. This package is pre-installed on many Linux distributions. If you're using a Mac, I recommend to use Homebrew to install fontconfig using brew install fontconfig.

Configuration file

Copy config.example.json to config.json (e.g. cp config.example.json config.json) and adjust the values to match your needs.

Startup

To start the server, run ./brother_ql_web.py. The command line parameters overwrite the values configured in config.json. Here's its command line interface:

usage: brother_ql_web.py [-h] [--port PORT] [--loglevel LOGLEVEL]
                         [--font-folder FONT_FOLDER]
                         [--default-label-size DEFAULT_LABEL_SIZE]
                         [--default-orientation {standard,rotated}]
                         [--model {QL-500,QL-550,QL-560,QL-570,QL-580N,QL-650TD,QL-700,QL-710W,QL-720NW,QL-1050,QL-1060N}]
                         [printer]

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

positional arguments:
  printer               String descriptor for the printer to use (like
                        tcp://192.168.0.23:9100 or file:///dev/usb/lp0)

optional arguments:
  -h, --help            show this help message and exit
  --port PORT
  --loglevel LOGLEVEL
  --font-folder FONT_FOLDER
                        folder for additional .ttf/.otf fonts
  --default-label-size DEFAULT_LABEL_SIZE
                        Label size inserted in your printer. Defaults to 62.
  --default-orientation {standard,rotated}
                        Label orientation, defaults to "standard". To turn
                        your text by 90Β°, state "rotated".
  --model {QL-500,QL-550,QL-560,QL-570,QL-580N,QL-650TD,QL-700,QL-710W,QL-720NW,QL-1050,QL-1060N}
                        The model of your printer (default: QL-500)

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 can change the default port 8013 using the --port argument). 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:

More Repositories

1

brother_ql

Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
Python
486
star
2

ds1054z

Python package for the Rigol DS1054Z Oscilloscope
Python
170
star
3

wsgi-request-logger

A WSGI HTTP-Request Logger
Python
47
star
4

smrt

Python package to control TP-Link Easy Smart switches (version 1.0)
Python
42
star
5

timetable

A LaTeX package for creating one-week timetables as they can frequently be found in universities or schools.
TeX
37
star
6

ut61e_python

Captures and Interprets Data from the Digital Multimeter Uni-T UT61E using Python
Python
25
star
7

jpnevulator.py

An implementation of jpnevulator in Python
Python
21
star
8

label_api

A web service offering an API to print labels on Brother's QL-series. You can write your own plugin to add a new label style.
Python
18
star
9

WhatsMyIP

This is an HTTP Server that simply returns the Remote Address, your IP. In other words, it's a simple text-only "What's My IP" service implemented in a few lines of Python. Works for IPv4 and IPv6.
Python
17
star
10

netio230a

Python software to access the Koukaam NETIO-230A and NETIO-230B: power distribution units / controllable power outlets with Ethernet interface.
Python
16
star
11

docker-epics-directory

A directory of my EPICS-related Docker containers
15
star
12

python-inwx-xmlrpc

This is a python class for easy access to the InterNetworX XML-RPC API.
Python
15
star
13

Huawei-Router_Python

Python tool to fetch data from the Huawei E3372 HiLink LTE Stick or the E5332 UMTS hotspot via their XML APIs.
Python
11
star
14

geocaching-tools

Beej's GPS stuff - Geocaching (and other) tools
Python
10
star
15

python-sipgate-xmlrpc

Easy to use Python bindings for the Sipgate XML-RPC API.
Python
9
star
16

Silhouette-Cutting-Plotters

A toolkit to handle handle / analyze the format of Silhouette cutting plotters. And example data files.
Python
9
star
17

rpi-usbtmc-gateway

Using the Raspberry Pi as a USBTMC ⟷ Ethernet Gateway
C
9
star
18

pt100_python

Python package with different calculation algorithms for Pt100 temperature sensors.
Python
8
star
19

brother_ql_web_docker

Dockerfiles for brother_ql_web deployments
Shell
8
star
20

TP-Link_TL-SG3210_CLI

A collection of expect scripts to communicate with the Gigabit Switch TP-Link TL-SG3210 using its Telnet interface.
Perl
8
star
21

mac_click2dial_sipgate

A plugin to call contacts via Sipgate directly from the Mac OS X Address Book. Tested with 10.6 Snow Leopard and 10.7 Lion.
Python
7
star
22

Netgear-AirCard

Check the status of a Netgear AirCard router with Python3
Python
7
star
23

ut61e-web

A web interface for the display of a UNI-T UT61E digital multimeter.
Python
7
star
24

Arduino-Logger

A logger for temperatures using NTCs, for the output of other RS232 devices and more.
Arduino
7
star
25

IntranetSubNetwork

IntranetSubNetwork – A plugin for Piwik that allows you to analyze what IPv4 and IPv6 networks your visitors come from. You may want to switch to the fork kwasib/IntranetSubNetwork with Support for Piwik 2.x.
PHP
7
star
26

labelweb

LabelWeb - Web interface to print labels for you.
JavaScript
7
star
27

PhotoBrowser

PhotoBrowser lets you browse images organized in folders on your computer in your web browser. I use it for a fast and easy image selection process. It is written in Python.
Python
6
star
28

sendmail_python

Send E-Mails with Python
Python
6
star
29

IP-Logger

Do you want to know which IPs your computers had during the day / the week / the year? You may use this Python Tool!
Python
6
star
30

ping_histo

A Python wrapper for ping helping you to create histograms of the ping times.
Python
6
star
31

docker-epics

Dockerfiles for my EPICS Base and contApps Docker images
Jinja
6
star
32

geant4_docker

Geant4 in a Docker Container (including Python bindings)
Dockerfile
6
star
33

docker-archiver-appliance

Docker Image of the EPICS Archiver Appliance
Python
6
star
34

CheatSheets

Cheat Sheets are simplistic help documents that can provide great support when dealing with programming or markup languages. This is a collection of Cheat Sheets written in Markdown for easy writing and embedding on websites.
Python
6
star
35

MaxiGauge

A tool written in Python to log data from a Pfeiffer MaxiGauge Vacuum Gauge controller. Includes a Web Server to display the pressure history on the web.
JavaScript
6
star
36

python-spelling-alphabet

If you're looking for support to spell words, names, e-mail addresses etc. this tool is for you: It helps you to spell words in different spelling alphabets like NATO, French, German (add your own). It's written in Python.
Python
6
star
37

bottlelog

Apache-like combined logging for Bottle Web Applications
Python
5
star
38

brother-ql710w

Arch Linux PKGBUILD for the Label Printer Brother QL-710W
Shell
5
star
39

medialysis

Media file analysis: power (dB) in audio files, movements in video files etc.
Python
5
star
40

agilent_34411a

Python Package for the table-top DMM Agilent 34411A using TCP/IP
Python
5
star
41

canoremote

Remote control your Canon EOS 200D, 800D and many more via BLE with this async python code.
Python
5
star
42

cropMultipleScannedImages

one scanned page with multiple images β†’ crop images automatically (using python and edge detection)
Python
5
star
43

rs_rtb2000

Control Rohde & Schwarz RTB2000 Series DSOs with Python (R&S RTB2002, R&S RTB2004)
Python
5
star
44

opus20

Python Interface to Lufft OPUS20 devices
Python
4
star
45

FAZ-paperboy

FAZ-paperboy delivers (downloads) your FAZ or F.A.S. newspaper freshly every day as PDF.
4
star
46

pklaus

mono-repo with collected Python efforts
Python
4
star
47

PyOscilloskop

This software can control the Rigol DS1000 / DS2000 series oscilloscopes and the Rigol function generator DG1022.
Python
4
star
48

avrnetio

A Python Library to facilitate the use of ECMD commands via TCP (or RS232) for micro controller based devices that run the ethersex firmware (such as the Pollin AVR-NET-IO ).
Python
4
star
49

jinja2-render

A Python Tool to Simplify the Automated Creation of a Dockerfile Using Jinja2 Templates
Python
4
star
50

IEEE754-Viewer

A PyGTK GUI to visualise single and double precision IEEE754 floating points
Python
4
star
51

universal_usbtmc

Universal Python Interface For Different USBTMC Backends.
Python
4
star
52

serialman

A Python package facilitating the use of PySerial.
Python
3
star
53

docker-deployments

Sources for some of my docker images on:
Shell
3
star
54

Leybold-Vacuum-Gauges

A Python Interface to Oerlikon Leybold Vacuum Gauges via RS232 (currently ITR90 and ITR200 supported).
Python
3
star
55

python-piusvplus

Pi USV+ Monitoring in Python
Python
3
star
56

MAX6955

An Arduino Library for the LED Display Driver IC MAX6955
C
3
star
57

local-blog

Serves blog posts written in Markdown with bottle.py and Twitter/Bootstrap.
Python
3
star
58

python-colorscale

A toolkit to convert false color images to their original gray scale image.
Python
3
star
59

openwrt-vdsl-router

My Personal OpenWrt VDSL Router Configuration and Deployment Repository
Vim Snippet
3
star
60

bsch

Software related to Bosch Professional tools.
Python
3
star
61

obs-multi-hotkey-image

Python
2
star
62

pygments-markdown-highlighter

Pygments code highlighter for Markdown formatted posts in Wordpress
PHP
2
star
63

pytrbnet

A Python package wrapping libtrbnet.so
Python
2
star
64

Tagesspiegel-paperboy

Tagesspiegel-paperboy delivers your Tagesspiegel newspaper freshly every day.
2
star
65

mdpython

A web interface for the status output of /proc/mdstat.
Python
2
star
66

Marantz-SR5009

Controlling the 7.1 channel 4k-Receiver Marantz SR5009 (via EIA-232 or TCP)
Python
2
star
67

Gossen-U180C

Software to acquire and analyze data from the Gossen Metrawatt U180C LAN Interface for the U189A energy counter.
Python
2
star
68

Luftdruck-Hessen

Scrape official air pressure values in Hesse published by the Hessian Agency for the Environment and Geology, called HLUG.
Python
2
star
69

Widgets

Online Widgets for you! Currently it contains a widget to create QR Codes faster than ever.
2
star
70

usleep-binary

A simple usleep binary (to use in bash scripts for example)
C
2
star
71

docker-beauty

Docker Distribution of BEAUTY, the EPICS CS-Studio RDB Archive Engine
PLpgSQL
2
star
72

Kochen-und-Backen

2
star
73

beautyacc

Python package to access the EPICS RDB Archiver
Python
2
star
74

bottle-shortener

A tiny URL shortener written using Bottle and running on Python 3.3+
Python
2
star
75

Locus_Live-Tracking_BottlePy

This is a slim bottle based web app to collect position information from the Android app Locus Map Pro.
JavaScript
2
star
76

MightyWatt_Python

A Python package with a web interface for the MightyWatt, a great programmable electronic load for the Arduino Uno/Due.
Python
2
star
77

archiver-appliance-with-example-ioc

A deployment of my Docker image of the EPICS Archiver Appliance with an example IOC and a Redis DB for persistence
2
star
78

docker-phoebus-alarm

alarm-server and alarm-logger for CS-Studio Phoebus
Dockerfile
2
star
79

docker-cassandra-pv-archiver

Docker image of the Cassandra PV Archiver
Dockerfile
2
star
80

docker-phoebus-archiver

Dockerfiles for the Phoebus archive-engine Service (formerly the CSS RDB Archiver / BEAUTY)
Dockerfile
2
star
81

docker-phoebus

Docker image for CS-Studio Phoebus
Dockerfile
2
star
82

cbmroot_docker

Dockerfiles for CbmRoot (& FairRoot & FairSoft)
Dockerfile
2
star
83

HMC-8043

Python Interface for the R&S HMC 8043 power supply
Python
2
star
84

assert_epics_value_updates

Python
1
star
85

homeassistant_components

My custom homeassistant components
Python
1
star
86

FOCUS-paperboy

FOCUS-paperboy delivers your FOCUS e-magazine freshly every week.
1
star
87

network-scanner

Scans your network and stores the scan result in a structured way.
Python
1
star
88

esp8266_software

ESP8266 Software
Lua
1
star
89

trbnettools_docker

Dockerfiles to embed the TrbNetTools (including the RPC daemon trbnetd) in a Docker container
Shell
1
star
90

nautilus

Dockerfile
1
star
91

pklaus.github.com

Just a proxy website for my other projects.
JavaScript
1
star
92

epics_dash

Web Dashboard for Process Variables of an EPICS-based Control System
HTML
1
star
93

backup-wordpress-blog

A Tool to easily backup Wordpress posts to your local filesystem.
Python
1
star
94

vacuum_reference_curves

Python
1
star
95

happybuf

Happy APpendable PYthon BUFfers
Python
1
star
96

js-Unicode-Selector

A javascript based helper to access frequent unicode symbols.
1
star
97

caproto_ioc_examples

Python
1
star
98

boxplot

Tools to create boxplots of time series data.
Python
1
star
99

fboxaha

Fritz!BOX HTTP AHA SmartHome Access from Python
Python
1
star
100

2d-materialbudget

Tools to evaluate the material budget of particle detectors in 2D
Python
1
star