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

Autodetect the loaded label type #2

Open
splitbrain opened this issue Jan 14, 2017 · 2 comments
Open

Autodetect the loaded label type #2

splitbrain opened this issue Jan 14, 2017 · 2 comments

Comments

@splitbrain
Copy link

There's a command to let the printer return the currently loaded label type. It would make sense to use that to only display label options that are currently possible.

@pklaus
Copy link
Owner

pklaus commented Feb 6, 2017

In principle this is correct. Unfortunately, reading the status via Ethernet is not so simple. It works via SNMP (different protocol, different port). As this software is made to be compatible with all three backends in brother_ql (Ethernet, PyUSB, Linux Kernel), a solution should work with all of them.

In addition: How do I know, when to check the inserted labe/tape? Polling continuously? Not sure...

In my opinion the clean way out is to add a command line parameter to brother_ql_web.py where the user can a specify the label size manually, e.g. --default-label-size. If left out, the software could try to query the printer once at startup (if that fails, assume 62mm).
Whenever the web interface is opened then, the dropdown menu would default to that label size.

@pklaus
Copy link
Owner

pklaus commented Feb 6, 2017

I now added a command line switch for the default label size in f950735. It still doesn't check the actual label/tape inserted into the printer but allows you to specify the one the web UI should default to.

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

No branches or pull requests

2 participants