netbox-qrcode
netbox-qrcode copied to clipboard
Html label design: Vector font, flexible label design, preview and print result 1:1 and more
I hope that this pull request will help many people.
The following issues and pull requests are covered.
Pull
https://github.com/netbox-community/netbox-qrcode/pull/62
Issues
https://github.com/netbox-community/netbox-qrcode/issues/73 https://github.com/netbox-community/netbox-qrcode/issues/66 https://github.com/netbox-community/netbox-qrcode/issues/43 https://github.com/netbox-community/netbox-qrcode/issues/35 https://github.com/netbox-community/netbox-qrcode/issues/33 https://github.com/netbox-community/netbox-qrcode/issues/32 https://github.com/netbox-community/netbox-qrcode/issues/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)
@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:
All translations are from German to English. :) But it's the will that counts.