-
Notifications
You must be signed in to change notification settings - Fork 14
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
Stop hardcoding parts of the printer identifier #39
Comments
I've done the exact opposite of what I've asked for and completely hardcoded a brother plugin to work on /dev/usb/lp0. It is currently set up to use 62mm endless tape and is only compatible with QL-600s and QL-570s. Please use this in conjunction with my debian image of inventree-server, and remember to go into the inventree virtual environment in that image and downgrade PIL to 9.5.0 as well as install brother_ql via PIP. I really really really hope somebody else takes this the rest of the way and makes the main plugin backend agnostic for USB printing. brother_usb.py
|
@MechanicalMink thanks for the comments. It may be that this does not receive much attention if no one else is in your situation.. I'd make a friendly suggestion that you make a PR for this with your changes: https://opensource.com/article/19/7/create-pull-request-github |
@SchrodingersGat Happy to, that will take me another couple of days to get around to figuring out. Yay work! Again, more than happy to step out of the way for anybody else to take this into a pull request in the mean time. |
@MechanicalMink happy to help you get up and running with this - the process can be daunting but is really not that bad. :) |
I think am inches away from being able to run this out of a docker container. I can now print from brother_ql cli from the container running inventree. Unfortunately, since this plugin hardcodes either
ip://
orusb://
into the printer identifier, I have no way of getting it to work with the way I've routed the printer into docker. I need to be able to providefile:///dev/usb/lp0
as the printer identifier. I know for a fact that brother_ql can function with printer identifiers in that format, so we just have to not mangle the identifier provided by the user and then we're good.I would make this change on my own, and I have tried for several hours, but I don't understand the inventree plugin architecture well enough to get my version to load properly.
The text was updated successfully, but these errors were encountered: