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.
Sorry it took me so long to create this pull request, @cyrilrey!
This adds a ton of fixes and features I found useful. My primary use case is automatically generating address labels and order slips for my Etsy shop orders. I also like to be able to print labels for my house :)
This PR adds:
/print
with template variables to cause a label to be printedrecent#.svg
for easy reprints*banner*.svg
-- big text printed in landscaperickroll_qr.svg
-- perfect for pranking folks ;)PRINT_WIDTH
to the pixel width of the printer and the image is scaled to that widthI had a heck of a time getting my POS-5890K working. I also couldn't find good continuous label tape for it, so I ultimately gave up on it. The Brother QL-800 has excellent support for continuous label tape. It also has a module very similar to
python-escpos
that allows for use of the printer without a kernel driver.Obviously we would need to add support for
python-escpos
back in before merging this. Maybe some way to choose which module to use. I think in theory the QL-800 supports ESC/POS, but I didn't try using it withpython-escpos
...