Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html label design: Vector font, flexible label design, preview and print result 1:1 and more #84

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

LHBL2003
Copy link
Contributor

@LHBL2003 LHBL2003 commented Aug 15, 2024

I hope that this pull request will help many people.

The following issues and pull requests are covered.

Pull

#62

Issues

#73
#66
#43
#35
#33
#32
#82 (At least plugin netbox-inventory)

Pull Request overview

Here are some improvements (if I haven't forgotten anything :D )

  • The label can be specified in mm/inch.
  • Whether printed on an A4 sheet or on a label, the content always has the defined size.
  • The text is razor sharp, no matter how small it is. (Printing the HTML DIV element and its vector text. There is no need to margin the text as an image).
  • All fonts supported by the browser can be used.
  • The barcode can be printed right up to the edge of the label.
  • The size of the QR code can be specified in mm/inch and is exactly the same size on the screen as on the printout.
  • The font height can be specified in mm/inch.
  • The distance between the QR code and the text can be specified in mm/inch.
  • Horizontal and vertical representations are still supported.
  • No scaling or similar must be bent in the print preview for the printout. Only one basic setting needs to be observed, then it will fit every label. See documentation.
  • A logo variable can be stored in the Netbox Config, which can be used with the existing text_template function (Jinja2) without losing the overview.
  • One or more label designs can be stored for a model (e.g. device or rack). This allows different label sizes or formats to be used.
  • Only text labels are supported
  • Only QR code labels are supported
  • Text and QR code labels are supported
  • The QR code can be specified higher than wide. (Sometimes looks nice, if you don't overdo it)
  • You can design your own label from scratch.
  • Unterstützt das ausrichten von Text im Textbereich (Hoizontal und Vertikal).
  • Supports the Pugin netbox-inventory (https://github.com/ArnesSI/netbox-inventory)

image

@ALL and @cruse1977: I look forward to your feedback.


How to install the plugin for testing:

sudo su
source /opt/netbox/venv/bin/activate
pip uninstall netbox-qrcode
pip install git+https://github.com/LHBL2003/netbox-qrcode@HTML-Label-Design
systemctl restart netbox netbox-rq

!!! Do not forget to back up the configuration ;) and then customize it as desired !!!
nano /opt/netbox/netbox/netbox/configuration.py

More info about "How to install in forked plugin" Klick HERE

To reinstall the current release plugin:

sudo su
source /opt/netbox/venv/bin/activate
pip uninstall netbox-qrcode
pip install netbox-qrcode
systemctl restart netbox netbox-rq

Documentation of my branch version:

Klick HERE

All translations are from German to English. :)
But it's the will that counts.

@cruse1977
Copy link
Member

cruse1977 commented Aug 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants