Add Brother QL-810W label printer automation with AprilTags #536
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds automation for printing AprilTag labels on Brother QL-810W for equipment identification. Uses
brother_qllibrary to bypass CUPS/drivers, enabling direct printing on Raspberry Pi (ARM).New files in
src/ac_training_lab/label_printer/mwe_print.py- Minimal working example usingbrother_qlto send a test labelapp.py- Gradio web app with AprilTag generation and MQTT integration for remote printing via HiveMQREADME.md- Setup instructions, env var configuration, troubleshooting, links to related issuesUsage
Closes #70
Original prompt
This section details on the original issue you should resolve
<issue_title>Set up QL810WC label printer automation with AprilTags</issue_title>
<issue_description>AccelerationConsortium/echem-cell#4
https://github.com/pklaus/brother_ql
https://stackoverflow.com/questions/55521301/printing-label-from-brother-ql-800-label-printer
i.e., with new pieces of equipment, autoprint an AprilTag to be affixed to it.</issue_description>
<agent_instructions>Three (and only three) new files within a nested dir in src. One readme with setup instructions and links back to (and links from) this issue. One that's the gradio script, which we'll be refining and one script that's a basic mwe to send a simple print. Pay attention to your custom instructions.
Random notes: read the brother issue</agent_instructions>
Comments on the Issue (you are @copilot in this section)
@sgbaird https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/use-a-raspberry-pi-zero-w-as-a-wireless-print-serverhttps://www.reddit.com/r/IOT/comments/1cdj77v/which_label_printer_offers_the_best_api/</comment_new>
<comment_new>@sgbaird
Parts arrived

@SissiFeng Everything inside of the box  @SissiFeng The printer failed to connect to the IoT WiFi (an email has been sent to support).The next step is to set up a Raspberry Pi connected to the label printer, configured for MQTT, and use MongoDB to store paired information (tag–device) and handle logging.</comment_new>

@sgbaird Ok, thanks for checking into that. That's unfortunate the driver doesn't work out of the box. Maybe we don't actually need the desktop driver and can instead use the Python package directly? I'm seeing a few threads related to this:<comment_new>@SissiFeng
The Pi is all set up, the printer driver is 32 bit and this model can't be installed via ppd file (maybe downgraded or otherwise universal driven). The app.py deployed to hugging face tests fine locally, just missing the printer connection part.
<comment_new>@sgbaird
@SissiFeng it sounds like these instructions (of course, switching the printer type that was mentioned) didn't work. https://www.rs-online.com/designspark/building-a-pi-powered-wireless-label-printer
Could you confirm?</comment_new>
<comment_new>@sgbaird
What do you think about this? https://stackoverflow.com/a/70015794/13697228</comment_new>
<comment_new>@SissiFeng
Brother QL-810W Printer Troubleshooting on Raspberry Pi Zero W
This summary outlines the key issues encountered and resolved so far, providing a reference for further troubleshooting.
en_GB.UTF-8locale, causing warnings during Perl execution.TLS fatal alerterrors indicate potential encrypted communication issues between CUPS and the printer.lsusb, but communication problems persist, possibly due to configuration issues.Unsolved Issues till now:
Filter Execution Error
The system reports the filter as missing, even though it is correctly installed.
Printer Not P...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.