Plugin for Zebra Label Printer #3202
-
Hi, https://github.com/SergeoLacruz/inventree-zebra-plugin Two questions from my side remain:
The printer error shows up in the admin interface but only sometimes in the users notification inbox. I created a label html with 50mmx30mm. From the plugin API i get a png of 615x378 which relates to 312dpi. Where is this defined and can it be changed? Thanks in advance, Michael |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 12 replies
-
Hi there @SergeoLacruz ! |
Beta Was this translation helpful? Give feedback.
-
There is a rate limit on user notifications to prevent flooding the notification system. This is probably what you are encountering here. |
Beta Was this translation helpful? Give feedback.
-
Currently the DPI is hard-coded, but I'm not entirely happy with the approach I used here. There are some options here:
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
I did some update on the plugin: https://github.com/SergeoLacruz/inventree-zebra-plugin Added parameters for label width and height. I also found the parameter validators and added them:-) Now adding a non numerical value shows a form error. Michael |
Beta Was this translation helpful? Give feedback.
-
No, |
Beta Was this translation helpful? Give feedback.
-
I did some update on the driver. Added features that where needed for different label sizes and printers. A also added a section on scaling, darkness and quality of QR-codes to the docs. Comments invited. |
Beta Was this translation helpful? Give feedback.
-
I did some update on the plugin: https://github.com/SergeoLacruz/inventree-zebra-plugin I turned out that the ZPL librara does not send important commands for the label size. So the labels where odd if another print job changeed these parameters. I added some lines to the zpl lib to fix this. Zebra printers can remember these settings. If a job rotates the label, all following labels come out rotated unless there are commands to change this in the current job. For this reason I added a parameter that allows to add raw ZPL commands to the printout. These an be used to bring the printer to the correct state. I am still struggling with errors. After pushing print InvenTree shows a green bar telling "Label sent to printer" even if the print fails. I found no way yet to change this to a red bar telling "Printing failed" Is this possible? Michael |
Beta Was this translation helpful? Give feedback.
Currently the DPI is hard-coded, but I'm not entirely happy with the approach I used here.
InvenTree/InvenTree/plugin/base/label/label.py
Line 41 in e83995b
There are some options here: