inventree-niimbot-plugin
A label printing plugin for InvenTree, which provides support for the Niimbot Label Printers. This plugin is based on the amazing work from labbots/NiimPrintX and modifications from LorisPolenz/NiimPrintX.
Installation
Install this plugin manually as follows:
pip install inventree-niimbot-plugin
Or, add to your plugins.txt file to install automatically using the invoke install command:
inventree-niimbot-plugin
Configuration Options
The following list gives an overview of the available settings. You find them under the InvenTree plugin specific settings.
-
Printer Model Currently supported models are: b1, b18, b21, d11, d110 (but i was only able to test b1 because i don't have other printer models. Please report back if you can test other models!!).
-
Density The print density. Different models seem to accept only certain values (b1 accepts 1-3).
-
Rotation Rotation angle, either 0, 90, 180 or 270 degrees.
-
Scaling Scaling factor, from 10% to 200%.
-
Vertical Offset Vertical offset, from 0 to 200px.
-
Horizontal Offset Horizontal offset, from 0 to 200px.
Usage
Once installed, the plugin should show up under Settings -> Plugin Settings -> Plugins and be activated.
You can then adjust the printer settings under Settings -> Plugin Settings -> Niimbot Label Printer.
As a starting point, you can use my settings for the B1 printer with 50x30mm standard labels and the "InvenTree Part Label" template:
Printer Model: Niimbot B1, Density: 3, Rotation: 270°, Scaling: 60%, Vertical Offset: 50px, Horizontal Offset: 0px
You can either connect the printer via USB or bluetooth. When using bluetooth, you need to pair the printer with the machine running InvenTree (e.g using bluez-tools on terminal). The printer is then detected automatically.
Known Issues
The plugin system seemed to be broken in recent InvenTree docker images. I was not able to install the plugin without errors. Furthermore, i am not sure if it's even possible to access bluetooth or USB devices from within a docker image.
I therefore was only able to use the plugin with bare metal installation of InvenTree. The bare metal installation also fixed many other issues the docker image had and worked like a charm, although it takes a little extra effort.
Metadata
Release files for inventree-niimbot-plugin 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inventree_niimbot_plugin-1.0.0.tar.gz | 12.9 kB | Without provenance | Details for inventree_niimbot_plugin-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inventree_niimbot_plugin-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for inventree_niimbot_plugin-1.0.0-py3-none-any.whl |
Total release size: 26.1 kB
Release files / inventree_niimbot_plugin-1.0.0.tar.gz
| Download URL | inventree_niimbot_plugin-1.0.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f91666068fdaf42388764fbe062e08fac1bbd324ac97bc93dc8a254ed558d61
|
|
BLAKE2b-256 checksum How to use checksums |
999e418bf159760040aacf76f2326d21e2e2322bca89ac4b61d55670042960af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / inventree_niimbot_plugin-1.0.0-py3-none-any.whl
| Download URL | inventree_niimbot_plugin-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68cde80a84089aecd85f8d6cc2c1007d1a82841e170ef62cbaf26009d18143cc
|
|
BLAKE2b-256 checksum How to use checksums |
becc32d4811baad244969cb45de35b3058c84f01a549aaa8c61125f4cf0bfac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for inventree-niimbot-plugin 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.