Skip to main content

Some functions for dynamically formatting text

Project description

inventree-dynamic-template-functions-plugin

A plugin for InvenTree, which provides some more helper functions for label templates.

Old below

This plugin supports printing to some Brother label printers with network (wired or WiFi) support. Refer to the brother_ql docs for a list of label printers which are directly supported.

Installation

Minimum Requirements

[!IMPORTANT] This plugin now requires the "modern" InvenTree UI - version 0.18.0 or newer. The plugin will not function correctly on an InvenTree instance below version 0.18.0

Installation Procedure

Install this plugin manually as follows:

pip install inventree-brother-plugin

Or, add to your plugins.txt file to install automatically using the invoke install command:

inventree-brother-plugin

Now open your InvenTree's "Admin Center > Plugins" page to activate the plugin. Next, read below for instructions on setting up a printer via "Admin Center > Machines".

Setup a machine instance for a Brother Label Printer

This plugin provides a driver for the machine registry in InvenTree, where multiple instances of this driver can be set up for each physical label printer you want to connect to. Each machine has its own individual configuration set.

To set up a new machine, go to "Admin Center > Machines" and hit the "+" button. Now choose a name for this specific printer, select "Label Printer" as machine type and "Brother Label Printer Driver" as a driver, then submit. The new printer will now be listed in the machines table. To configure the printer, click on its line to open the "Machine detail" panel where you can set the "Driver Settings" to match your label printer.

Configuration Options

The following list gives an overview of the available settings. Also check out the brother-ql package for more information.

  • Printer Model Currently supported models are: QL-500, QL-550, QL-560, QL-570, QL-580N, QL-600, QL-650TD, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N, QL-1100, QL-1100NWB, QL-1115NWB, PT-P750W, PT-P900W, PT-P950NW

  • Label Media Size and type of the label media. Supported options are (not all labels are available on all printers): 12, 18, 29, 38, 50, 54, 62, 62red, 102, 103, 104, 17x54, 17x87, 23x23, 29x42, 29x90, 39x90, 39x48, 52x29, 54x29, 60x86, 62x29, 62x100, 102x51, 102x152, 103x164, d12, d24, d58, pt12, pt18, pt24, pt36

  • IP Address If connected via TCP/IP, specify the IP address here.

  • USB Device If connected via USB, specify the device identifier here (VENDOR_ID:PRODUCT_ID/SERIAL_NUMBER, e.g. from lsusb).

  • Auto Cut Cut label after printing.

  • Rotation Rotation angle, either 0, 90, 180 or 270 degrees.

  • Compression Set image compression (required for some printers).

  • High Quality Print in high quality (required for some printers).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file inventree_dynamic_template_functions_plugin-0.1.0.tar.gz.

File metadata

File hashes

Hashes for inventree_dynamic_template_functions_plugin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 22d96eb6f6683763e396b50e4817587900fe47283ba0323fe980f367c459e075
MD5 143054dff26e7efd21b31c87d3b78a52
BLAKE2b-256 1025fd9b4de6ffaf7611abaa560f203857c3123a8e321105e18da05dcc924f0a

See more details on using hashes here.

File details

Details for the file inventree_dynamic_template_functions_plugin-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_dynamic_template_functions_plugin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 629d7036f27b00bf79fa22c66bf5066780928902b72177281aad85b5853c470c
MD5 ee651c069172680f8bc75934edd21c1a
BLAKE2b-256 dc90a2ce13bfaa18eb709ef0266402467eb43287c8f13e9eb0c35e7d7a4fb177

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page