-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding "DYMO LabelMANAGER PC II" support (help requested) #51
Comments
That's amazing @FaBjE, thanks so much!!! How are you with Git? Would you like to open a pull request with your proposed changes? That would help with the discussion. For a very extensive discussion on vertical alignment, see computerlyrik/dymoprint#80. |
Thanks for the link! I will do a read... GIT and PR's are no problem. I though I should ask for some directions before starting. |
Great, let me know if you have any questions. |
@tomek-szczesny Continuing here. (Maybe its better to close the old issue) I've got a "working" setup, working on the alignment now. I've printed the test-pattern a couple of times on the largest 24mm tape: The to-do for me is to print this test pattern on smaller tape sizes. I don't mind buying a couple of smaller tape rolls. I already have 9mm and 12mm. Maybe if I buy a 6mm it will come in handy to have all "edge cases". (They are not that expensive and I'm sure it will come in handy one day) Sidenote: I already did some "alignment" on the original windows software. The original old software was pretty crappy at aligning smaller smaller labels for this printer. They keep insanely huge safety margins to compensate for misalignment. So I defined a couple of 24mm label templates with margins set to match the smaller tape sizes. Unfortunately the settings make no sense to me regarding the input we need now. |
For smaller tape size test prints, use the 24mm setting - after all this is the most raw output we can get. That is 128 dots in your case. There was some debate about the print cartridge alignment in Dymo printers that go >12mm and since I don't have one I can't tell really. If you're sure you install cartridges correctly then I see no point in debating that any further. |
If I remember correctly, offsets as defined in LUT were the distance from the lower side. I remember that I added +2 to the offset and subtracted -4 from the printable area width to compensate for minor misalignments. I also remembered that print area on those tapes is limited by the coloring ribbon size, which also may vary across manufacturers. Yay, that test pattern actually works in the field. My humble contribution :) |
@maresb Thanks for your analysis! Speaking about contributions, can somebody point me to the lookuptable in the sourcecode? I can find it in this old PR of the obsolete repo: computerlyrik/dymoprint@c9ff02d#diff-a5f5b75891a528e1eec31586669a127c0ee4ea76e8d5ffbcb5263e95f6f8e1e2 |
@FaBjE, you're correct that the PR was never merged. While the idea was correct, the old code was tied up in knots, and the lookup table couldn't be properly implemented. Thanks to @tomers's epic effort, the code is in much better shape, but it still remains an open task to reimplement @tomek-szczesny's lookup table on the new codebase. Want to learn some Python? 😁 |
Damn, I didn't even remember it wasn't merged in the end, I thought it was! |
I am hesitant to ask, but is @tomek-szczesny willing to give this another shot? (Implementing the LUT on the current codebase) I feel like the best I can do if I find any time is quickly hack something into it if I manage at all... |
There's no harm in asking. I've got two jobs at the moment so I am unable to spend much time on Labelle. Moreover I'm not fluent in Python so everything I do is just as hacky and amateur as it gets. I may be able to answer questions about my old implementation, I guess I will know what I had in mind :) |
I'm not promising anything, But I'm giving it a shot. Edit: I'm in conflict with your formatter/pre-commit checks. |
Sorry about that @FaBjE. You can use Also, if you include the specific lines you're working on I should be able to advise you on how to appease the linter. |
I think I found a pretty nice way to handle things. (long story short) I have added a DeviceConfig object that contains a configuration for each type of printer/labeler. For every printer we now need a "print head size in pixels" and "print head active size in mm" the rest is calculated. Based on my scans we determined a label-position inaccuracy of 0.7mm. I rounded it up to 1mm to use as safety margin for now. My current code state is at: main...FaBjE:labelle:feature/deviceDependentMargins I´d like to hear your thoughts. I have identified a couple of issues so far:
|
Thanks @FaBjE! Could you please open a pull request with your branch? |
Made a draft PR as I don´t feel it is ready to merge yet |
Hm. The point of LUT that I developed was to be prepared for any future Dymo printer. That is why I proposed to measure print area in dots, as well as a single necessary offset, and then only name this settings in mm for user's convenience. I'm afraid that although your solution is convenient for supporting a subset of Dymo products known to us at the moment, I'm not sure how well this will scale with printers of other brands or series. |
I agree we should use px instead of mm wherever possible. @tomek-szczesny, would you please move your comment to the PR so that we have all reviews in one place? |
I was trying to see if I can get my DYMO LabelMANAGER PC II to work with Labelle.
I saw that the "DYMO LabelMANAGER PC" is supported, so I gave it a shot.
It is not supported out of the box, but when adding the following line to constants.py:
0x001C: "DYMO LabelMANAGER PC II",
and setting up the udev rules, the printer is detected and I can print a label!
But...
The text is not aligned correctly. It is printed too much downwards. (the bottom part falls of the label) I think this is because it is a 24mm tape printer.
I did some digging around and found these lines in dymo_labeler.py
I added
SUPPORTED_TAPE_SIZES_MM = (24, 19, 12, 9, 6)
and can print a correctly aligned 24mm label!But the 12mm sizes are still not aligned correctly.
Changing LABELER_PRINT_HEAD_HEIGHT_MM to 24 did not fix it.
My questions:
My python knowledge is next to nothing, so patient please :)
The text was updated successfully, but these errors were encountered: