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

New option for printing labels #45

Open
Jardal opened this issue Oct 16, 2022 · 10 comments
Open

New option for printing labels #45

Jardal opened this issue Oct 16, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@Jardal
Copy link

Jardal commented Oct 16, 2022

Hi, would you like to add option for retract paper before another print for label printing, please?
Note, that retract step size is bigger than feed step size (about 2x more) and exact position need to be manually calibrated on up to 4 sequential prints.

File printer.py, line about 440 (in version 0.6.0.2), two functions
def _prepare(self):
self.get_device_state()
self.set_speed(48) # set speed before retract
self.retract_paper(51) # ADD OPTION + VALUE: retract amount for current label before print starts

if self.model.is_new_kind:
self.start_printing_new()

........
def _finish(self):
self.end_lattice()
self.set_speed(8)
self.feed_paper(128) # ADD OPTION VALUE TO FEED AMOUNT
self.get_device_state()
self.flush()
.......

Many thanks!

@NaitLee
Copy link
Owner

NaitLee commented Oct 16, 2022

Sorry but I have no knowledge about “label printing”, for my printer have no such concept.

Adding these options (to cmdline and/or web) should be relatively easy, but I really want to know what does “label printing” does 😁
It may help to optimize the feature addition, to be friendly enough.

Note that retracting of paper isn’t (horizontally) precious enough, though.

(As usual, I almost can’t do code in this period)

@Jardal
Copy link
Author

Jardal commented Oct 16, 2022 via email

@NaitLee
Copy link
Owner

NaitLee commented Oct 20, 2022

Got it. Labels are going to be useful to me as well.

I still need info about what’s the point to retract, and how to feed/retract to not offset labels’ position.
(It may be dependent to label size. Something to calculate units (to use in self.feed_paper) from paper specs (w*h in millimeters) should be helpful. Maybe these have something to do with printer DPI.)

Is relative behavior available in “official” app?

@NaitLee
Copy link
Owner

NaitLee commented Oct 23, 2022

I bought a very large roll of labels (unbelievably, ¥7 (≈$1) for 1050 pieces, the roll is even bigger than the printer)

I guess you are feeding labels from the outside, so that retracting is required?


That means we need some specs to be manually specified:

  • Paper width, in millimeters, to be used to calculate a ratio (to 384px). Typically 50mm.
  • Label height, mine is 35mm, but it really varies by requirements.
  • Gap height, that between two labels. Mine is 2mm.

I think someday I will work on this, to make full use of labels 🙂

@Jardal
Copy link
Author

Jardal commented Oct 23, 2022 via email

@moriel5
Copy link

moriel5 commented Oct 30, 2022

@NaitLee Hmm... might you know a source for thermal rolls that are not made from Bisphenol-based compounds (such as Bisphenol A or Bisphenol S), but rather from Urea?

I'm considering I'm the relatively near future to get myself a thermal printer as well (same as the second one my friend purchased, since I intend to start a business), however I do not want to use the standard thermal rolls due to the known health hazards associated with Bisphenol-based compounds. And as a bonus, Urea-based thermal paper is also supposed to produce higher quality prints.

The only drawback to using urea-based thermal is price, which is supposed to be higher than Bisphenol-based thermal paper.

@NaitLee NaitLee added the enhancement New feature or request label Apr 28, 2023
@h3ndrik
Copy link

h3ndrik commented Nov 20, 2023

a source for thermal rolls that are not made from Bisphenol-based compounds (such as Bisphenol A or Bisphenol S), but rather from Urea?

@moriel5 Did you ever find a source that is trustworthy?

@moriel5
Copy link

moriel5 commented Nov 21, 2023

Unfortunately, nothing that I am able to order from, though there is a European provider (B2B only) that seems to be reputable (I forget the name, I'll post when I find it again).

@h3ndrik
Copy link

h3ndrik commented Nov 21, 2023

Thx. Yeah I live in Europe. But I got one of the cat mini printers, so it takes the 57mm rolls. Might be wider if it's business supply.

@moriel5
Copy link

moriel5 commented Nov 21, 2023

I remember that they have a wide assortment of sizes, including 57mm, which makes sense, since businesses can be anything from offices to factories to transportation (and thermal paper is often used for receipts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants