Skip to main content

QR Code generation for netbox objects

Project description

Netbox QR Code Plugin

A NetBox plugin used to generate QR codes for objects: Device, Module, Cable, Powerfeed, Powerpanel, Location

This plugin depends on qrcode and Pillow python library

Downloads Downloads Downloads

Compatibility

See the compatibility matrix for supported NetBox versions.

Installation

If Netbox was installed according to the standard installation instructions. It may be necessary to activate the virtual environment.

source /opt/netbox/venv/bin/activate

The plugin is available as a Python package in pypi and can be installed with pip

pip install netbox-qrcode

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:

PLUGINS = ['netbox_qrcode']

Restart NetBox and add netbox-qrcode to your local_requirements.txt

Configuration

Label Design

Extensive label customisation is possible, it's also possible to include different labels for each object type, for example 2 labels for the Device view.

For advice on configuration please see the two links below:

Cable QR Code

Printing

Setting the label printer

If the print does not look like the preview in the Netbox, first try to get a perfect print using Word. As many printer settings also have an influence on the print result. Borderless printing is possible if the printer (e.g. thermal transfer printer) supports this.

ShowImage

Here is an example of what needs to be considered to print borderless from a Word document. Go to: Example Zebra ZM400 300dpi label printer and a label 56x32mm. >>

Setting Browser Print Settings

When you press the “Print” button, there are some print properties that are added by the browser. However, these interfere with the print result. They should therefore be deactivated.

Firefox:
Parameter Value
Orientation Portrait
Paper size User defined
Margins none
Scale Fit to page width or 100%
Options --> Print headers and footers disable
Options --> Print backgrounds disable
Chrome:

Chrome can alter settings between printing and the print preview, therefore the below settings are recomended

Parameter Value
Layout Portrait
Paper size empty !!!
Pages per sheet 1
Margins none
Scale Default or 100%
Options --> PBackground grafics disable

Image

Contributing

Issues and pull requests are welcomed.

Screenshots

Device QR code with text label Device QR Code

Rack QR code Rack QR Code

Cable QR code Cable QR Code

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

netbox_qrcode-0.0.21.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

netbox_qrcode-0.0.21-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file netbox_qrcode-0.0.21.tar.gz.

File metadata

  • Download URL: netbox_qrcode-0.0.21.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for netbox_qrcode-0.0.21.tar.gz
Algorithm Hash digest
SHA256 6d0580f1187887e06b578191509fa78e8c68e31278438be24f2207e3b99d3379
MD5 d1a718b425f9dac94fb3444128844b0d
BLAKE2b-256 90f2cce30c71d415a4ecdf0c322a83812ba74d18d8466f09b09ae5aa700b0843

See more details on using hashes here.

File details

Details for the file netbox_qrcode-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: netbox_qrcode-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for netbox_qrcode-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a861fb912a457ea4ce4de672a434d3c3cb249e43936bb6dcd2c1298fc9d361
MD5 f71411b56916d9af540264877e470352
BLAKE2b-256 19a5560cc5f6fb798b38fca7a5c4ab86650f0ff9567a0696738811096838d3b0

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