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

[Question] Recommended Asset label printer? #3526

Closed
Jason-Weber-UC opened this issue May 2, 2017 · 90 comments
Closed

[Question] Recommended Asset label printer? #3526

Jason-Weber-UC opened this issue May 2, 2017 · 90 comments
Labels
❤️ feature request stale 👩‍💻 ready for dev These issues are ready for someone to work on them - take your pick!

Comments

@Jason-Weber-UC
Copy link

Jason-Weber-UC commented May 2, 2017

I'm after suggestions/recommendations for an appropriate desktop-sizes label printer that will a) work with the 'Generate Labels' function and produces labels that will last?
I'm currently looking at the Brother PT-9700PC which uses their TZ range of labels


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@MiBaDK
Copy link

MiBaDK commented May 4, 2017

I have just started testing a PT-D600 which I guess works about the same way. I have not been able to figure out how to spec the labels in snipeit to make it fit yet. Have you had any luck with that?

Only way I am able to create labels right now is to screen shot a QR code and paste in P-touch editor. Not exactly optimal :)

@dexit
Copy link

dexit commented May 4, 2017

Use Zebra label printers, 10x15 = GK420d simple as that
Or if you need a bigger monstrosity you can check their range of "Ethernet" enabled printers.

@Jason-Weber-UC
Copy link
Author

I've ordered a Brother PT-something. Fingers crossed.
I'll post up again to let you know how I go.

@Jason-Weber-UC
Copy link
Author

@MiBaDK - Got my Brother printer today.
I'm very, very close to throwing it at a wall.

@MiBaDK
Copy link

MiBaDK commented May 11, 2017

@Jason-Weber-UC I ended up returning it to the store. I did not bother spending too much time with it as it pissed me off it insisted throwing away 1" of label for every print. (Feed, cut, print, cut).

@therealjoshuad
Copy link

@MiBaDK oh that "feature" kills me on my label maker

@cipnt
Copy link

cipnt commented Aug 3, 2017

Would make sense to have a wiki page with recommended/tested printers

@ckinsler
Copy link

ckinsler commented Jan 9, 2018

A bit late to the party, but it is possible to get Snipe to integrate with a Brother PT-P700. In my case we're using the TZe-S241 3/4" (0.7) Extra Strength Adhesive Labels.

I added code to have Snipe pass along the assets.id and assets.asset_tag via a variable to a PHP page I wrote (i.e /AssetPrint.php?ID=45&TAG=TR16390), which then invokes the Brother SDK on the machine via javascript. Once you click the link it prints the label in less than 2 seconds and looks similar to the attached

QR code is the standard format of https://[url]/hardware/[ID] and the 1D barcode is simply the [TAG]

2018-01-08 19_05_48-clipboard

@agreenbhm
Copy link

@ckinsler Would you mind sharing that code you added?

@ellisgeek
Copy link

I have a Zebra LP2824 Plus with 2.25 x 1.25 labels that works great with the standard web-based label generator.

My settings for labels are as follows:

  • Labels per Page: 1
  • Label Font Size: 9
  • Label Dimensions: 2.25 x 1.25
  • Label Spacing 0.0 x 0.0
  • Page Margins 0.0, 0.0, 0.0, 0.0
  • Page Dimensions: 2.25 x 1.25
  • Visible Fields:
    • Serial
    • Asset Tag
    • Company Name

I have also modified the label printout template so that it looks a little nicer but it's definitely a hack so modify at your own risk.

Here are some examples of how the changes look:
2018-02-05t16 07 52 - firefox

img_20180205_160820

@snipe
Copy link
Owner

snipe commented Feb 5, 2018

@ellisgeek We've been discussing making Zebra support a little more native. Would you be willing/able to help us test if we could make his happen?

@snipe snipe added ❤️ feature request 👩‍💻 ready for dev These issues are ready for someone to work on them - take your pick! labels Feb 5, 2018
@ellisgeek
Copy link

Absolutely! Like I said on Reddit I'm more than happy to help however I can!

@katiCore
Copy link

How can i print labels on a Brother P-Touch P700?

@cipnt
Copy link

cipnt commented Feb 13, 2018

The settings for every printer and label size would be different, but through trial and error I found the best settings for our Dymo Labelwriter 400 with Large Address Labels (89mm x 36 mm).
Chrome's print preview is really useful in determining the correct options.
The settings are:

  • Labels per page: 1
  • Label font size: 10pt
  • Label dimensions (inches): 3.2 x 1.0
  • Label spacing (inches): 0 x 0
  • Page margins (inches): 0 x 0 x 0 x 0.2
  • Page dimensions (inches): 3.4 x 1.0
  • Label visible fields: Asset Name Serial Asset Tag Company Name

I now bought some smaller and more durable labels which I'll need to test

@katiCore
Copy link

But when I say - Create Label - a browser window opened, and when I try to print on my label printer - the printer status says "canceled"

@Puddl36lum
Copy link

has anyone been able to find thermal roll labels < 1"x1"?

@seattlespicybite
Copy link

I just finished setting up Brother QL-800 and 2.4" tape. Works Great! I do not use P-Touh software. Here are my steps:

  1. Go to printer Properties and select proper paper size (Properties->Advanced->Defaults). Adjust length to whatever you need (For my labels Length 1.4" Feed 0.12")
  2. Go to printer Preferences, select same thing (It does not save it for some reason)
  3. Adjust dimensions in Snipe-it (In my case, Width 2.3" length 1.1", no spacing)
  4. When print in Chrome, select Margins=None, uncheck Headers and footers
  5. Make few test labels and figure out what fits your case.
    Hope that helps.

@andrewgsauer
Copy link

andrewgsauer commented Apr 20, 2018

Hey All,

I've had immediate success with the Dymo LabelWriter 450 Turbo. I purchased 25MM x 54MM LW Durable labels from Dymo as well (Part No: 1976411).

In the label setup of Snipe, I have the following settings:

Labels per page: 1
Label font size: 9
Label dimensions: 2.25 (width) x 1.00 (height)
Label spacing: 0.05 horizontal 0.07 vertical
Page margins: 0.01 top, 0.01 bottom, 0.01975 right, 0.05975 left
Page dimensions 2.25 width 1.00 height
Visible fields: Assets Name, Serial and Asset Tag (company name disabled)

I have also disabled the standard barcode and opted to only have the QR code. I also put my company name in the QR code text.

Then, I generate all the labels I need while in Google Chrome.

When you do a print in Google Chrome, set the following:

Layout: Landscape
Paper size: 30336 1in x 2-1/8inch
Margins: None
Quality: 300x600dpi
Scale: 100

NOTE: Do all of this AFTER you run the Dymo installation package (I downloaded the full suite of software). Once you install the Dymo software, make sure you set the correct paper size while in the Dymo software.

This works really well. I can now print multiple tags at once, and they all come out beautifully and quickly.

EDIT: Adding screenshots

image

image

image

image

@Examinato
Copy link

@ckinsler Would you mind sharing your PHP code for printing with javascript to a Brother PT? Thanks

@RobFullerGBHS
Copy link

@ckinsler would you mind sharing you php code for the Brother printing? This is only thing holding back us migrating to Snipe for our school inventory. Thanks in advance!

@psy
Copy link

psy commented Jul 12, 2018

Ohai,

not sure if i shouldnt open a new issue instead, but i changed the label generation process to use dom2pdf and create labels as pdfs. pdfs are easier to print and work with most printers which doesnt apply to browsers and their printing abilities.

i created a new blade for the html used by dom2pdf (currently with my own label settings hardcoded, but it shouldnt be a problem to adapt those to settings) and changed the label creation to use dom2pdf. i also had to create a new controller (and routes, of course) for the qr code generation, because the qr code generation within the assetscontroller needs authentication which the dom2pdf library cant provide.

there is a small bug: one empty label at the end due to the "page-break-after: always" css setting for the labels. i didnt come up with a solution for that so far.

as i am new to snipe-it (and laravel), there may be better solutions, i am open for tips and improvements!

i would love to see this integrated into snipe-it!

tl;dr: heres the code: psy@5322c8d

@fryguy503
Copy link

I used @ellisgeek modified label (https://github.com/ellisgeek/snipe-it/blob/gussy_up_labels/resources/views/hardware/labels.blade.php) on a Dymo 450 Turbo with 2 1/4 x 1 1/4 Durable labels and so far they look fantastic (Made some more adjustments, to the label layout).

@lovettbp
Copy link

lovettbp commented Sep 1, 2018

Not sure if it works for everyone, but if you want to make this easier on yourself, you can always order labels from a site like MyAssetTag.

We had thousands of unaccounted for assets. Literally no info on them. Adding each to the system, printing them, and then having to go and find the actual asset and grabbing the correct sticker is frustrating. I decided to sniff the Snipe URL schemes and see if we could possibly go out and mass tag assets without actually adding them to the system yet.

Turns out you can! The asset tag search at the top of the page uses this scheme: https://yourcompany.snipe-it.io/hardware/bytag?assetTag=TAGNUMBER

So we designed our tags, had the barcode reflect the URL above with an incrementing asset number starting at 000001, and had them printed. We then walked the building and stickered everything. After that, we walked a second time and added everything to the system. Each item has a tag and number already, so no need to worry about possibly running into conflicts with multiple people walking at once. The codes work perfectly, and we were able to keep the labels small enough to fit on literally anything for easy access.

To each their own, but this seems like the most painless process for our org, at least.

I would find it really attractive if Snipe allowed you to generate labels based on asset tag instead of using the database ID, and then print them in mass before actually adding them to the system. I really don’t see why this can’t be a thing.

@vstephanou
Copy link

vstephanou commented Oct 11, 2018

The settings for every printer and label size would be different, but through trial and error I found the best settings for our Dymo Labelwriter 400 with Large Address Labels (89mm x 36 mm).
Chrome's print preview is really useful in determining the correct options.
The settings are:

  • Labels per page: 1
  • Label font size: 10pt
  • Label dimensions (inches): 3.2 x 1.0
  • Label spacing (inches): 0 x 0
  • Page margins (inches): 0 x 0 x 0 x 0.2
  • Page dimensions (inches): 3.4 x 1.0
  • Label visible fields: Asset Name Serial Asset Tag Company Name

I now bought some smaller and more durable labels which I'll need to test

Hi! I am making some tests and it mostly looks good, but I don't find the exact size in Chrome print settings. What page size you used in Chrome for the 89x36 labels?

EDIT: Nevermind, I found it. It's the Large Address label

@stale
Copy link

stale bot commented Dec 11, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Dec 11, 2018
@stale
Copy link

stale bot commented Dec 19, 2018

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

@RobFullerGBHS
Copy link

Has anyone used Brother 62mm continuous tape with good results?

@angrygreenfrogs
Copy link

angrygreenfrogs commented Jul 29, 2020

Edit: Updated - I added some default options that work pretty well on 12mm, 18mm, or 24mm tape - the parameters can be easily adjusted in the code for font, spacing, etc.
Further update: Code improvements and additional information on the settings.

I took a different approach and wrote a version of the label code that creates a PDF file for download directly/natively using PHP FPDF rather than having to mess around with CSS/HTML/Chrome settings, which I found frustrating myself to get a good result. We also have some cases where we want to change out to different label sizes, so I wanted a method of doing that easily without having to change each of the Snipe parameters constantly.

labels.blade.php.txt

Notes:

  1. Download "labels.blade.php.txt" above, rename it to "labels.blade.php" and override the existing file in snipeit\web\resources\views\hardware

  2. This requires downloading a copy of FPDF from http://www.fpdf.org/ (such as http://www.fpdf.org/en/dl.php?v=182&f=zip) and placing it in the "snipeit\web\resources\views\hardware\fpdf" directory.

  3. This code largely ignores the Snipe label settings in the system - it was just written to do exactly what we wanted. It does now respect the Snipe settings for which label items to include. The other label size parameters are in the code for now, but easy to change - eventually I want to integrate this directly into a PR with a modified label settings page that supports a download method and multiple label sizes.

  4. I've only included the QR code at the moment as we don't use barcodes, but adding a barcode back in would be easy.

Results

  • The label print page now includes various download PDF links:
    image
  • Easily print in Acrobat from the downloaded PDF:
    image

@tony-vi
Copy link

tony-vi commented Jul 29, 2020

Can this be easily adapted for 18 mm tape?

VibroAxe added a commit to VibroAxe/snipe-it that referenced this issue Jul 29, 2020
Added labels.blade.php from snipe/snipe-it#3526
@angrygreenfrogs
Copy link

Can this be easily adapted for 18 mm tape?

Sure, the parameters are all in the code, and it's simple to adjust, assuming programming/PHP experience. Admittedly what I've done was very much a quick hack to accomplish a goal, so I hope it's helpful to someone else with the same aim for producing a direct PDF from PHP, but otherwise it's not meant to be comprehensive.

@tony-vi
Copy link

tony-vi commented Jul 29, 2020

The reason I was asking, is that when I adapted acerspyro's code above, the margins went haywire so I had to adapt that as well. It took quiet some time to get it right.

Thank you @VibroAxe

@VibroAxe
Copy link

Thank you @VibroAxe

Busted ;) I'm currently using the blade file from @badrobit but if anyone wanted to use something different with docker that repo should work as starting point for an overlay

@andysnowden
Copy link

@acerspyro I'm attempting to use your Brother 750W settings above on 0.94 labels but my QR code and barcode keep clipping despite having the exact brother settings you have. What label settings are you using in the settings panel or does this require the custom php file you mentioned in other comments?

@dawnstrider
Copy link

dawnstrider commented Oct 28, 2020

@acerspyro I'm attempting to use your Brother 750W settings above on 0.94 labels but my QR code and barcode keep clipping despite having the exact brother settings you have. What label settings are you using in the settings panel or does this require the custom php file you mentioned in other comments?

The custom PHP file is necessary to make it work.

@tony-vi
Copy link

tony-vi commented Oct 28, 2020

@acerspyro I'm attempting to use your Brother 750W settings above on 0.94 labels but my QR code and barcode keep clipping despite having the exact brother settings you have. What label settings are you using in the settings panel or does this require the custom php file you mentioned in other comments?

The custom PHP file is necessary to make it work.

I had the same issue. I have PT-P700 which is similar.
Here are my specs for 0.7" blade
Attached labels.blade.zip

labels.blade.zip

UI Label Settings

image

Printer Settings

image

Chrome Print Settings

image

@bradhawkins85
Copy link

Has anyone used Brother 62mm continuous tape with good results?

@RobFullerGBHS I know I'm a bit late to the party but I have decent enough results.
Did you end up using the 62mm labels? if so have you got any recommendations.
The trick I found to get it to work was to tell Chrome print dialogue the paper size is 24mm Dia.

image

image

@RobFullerGBHS
Copy link

Afraid I gave up and made our own solution for buying pre-printed labels with QR codes.

@sarang2502
Copy link

@acerspyro Thanks for excellent solution, works good with Chrome browser, Brother P750W and 24mm tape.

@tony-vi
Copy link

tony-vi commented Feb 24, 2021

Latest updates broke the customization of labels.blade.php
I no longer can use my custom file.

Anyone else is having issues?

@acerspyro
Copy link

acerspyro commented Feb 25, 2021 via email

@tony-vi
Copy link

tony-vi commented Mar 19, 2021

@acerspyro what do you mean? Which changes?

sorry I missed this message.

@qroac
Copy link

qroac commented Jul 16, 2021

FYI:
On my system I had to check for some POST fields before using them in blade template.
Needed to change Lines 184 and 185 as follows to get the script up and running:

      <input type="hidden" name="btSelectItem" value="{{isset($_POST['btSelectItem']) ? $_POST['btSelectItem'] : ''}}">
      <input type="hidden" name="search" value="{{isset($_POST['search']) ? $_POST['search'] : ''}}">

@franklouwers
Copy link

I propose to reopen this issue. I am on the hosted setup, so can't modify the "blade" template mentioned above. My biggest issue that all browsers I've tried (Safari, Chrome, Firefox, Edge) all add borders when printing an html page. I would love the solution to generate a png or pdf instead of an html page, as those seem to be printed without edges.

My current hack is to grab a screenshot of the generated html, and print the screenshot.

@supportitbus
Copy link

Hello everyone.

I have a problem. After replacing the files and adding the FPDF file. When I try to generate a label, I get Error 500.
Log data - production.ERROR: ErrorException: require (/var/www/html/resources/views\hardware\fpdf\fpdf.php): failed to open stream: No such file or directory in / var / www / html / storage / framework / views / 274016ff09a564c1c25f662ee49a5a4bb0466dbb.php: 4

Maybe someone have had a similar problem or knows what I'm doing wrong. :)

@marknisk
Copy link

marknisk commented Jan 11, 2022

I've had immediate success with the Dymo LabelWriter 450 Turbo. I purchased 25MM x 54MM LW Durable labels from Dymo as well (Part No: 1976411).

In the label setup of Snipe, I have the following settings:

Labels per page: 1 Label font size: 9 Label dimensions: 2.25 (width) x 1.00 (height) Label spacing: 0.05 horizontal 0.07 vertical Page margins: 0.01 top, 0.01 bottom, 0.01975 right, 0.05975 left Page dimensions 2.25 width 1.00 height Visible fields: Assets Name, Serial and Asset Tag (company name disabled)

I have also disabled the standard barcode and opted to only have the QR code. I also put my company name in the QR code text.

Then, I generate all the labels I need while in Google Chrome.

When you do a print in Google Chrome, set the following:

Layout: Landscape Paper size: 30336 1in x 2-1/8inch Margins: None Quality: 300x600dpi Scale: 100

Hi - I failed painfully after with almost same setup: I have Dymo 5XL and use exactly the same labels on it. I used the same settings in Snipe-IT but it looks like there's always a tiny piece of the QR code cut out. I tried to modify the settings but didn't get better results: I was able to move around the QR code, but it was always "cut" from left and top to a point it didn't work. Any ideas what I should do? Printer itself works ok and I don't experience the problem with Dymo's app (printed on QR code with that)
IMG_06021

@southeasterntech
Copy link

Has anyone figured out a solution to roll out labels at remote location from the server? Printing from the web basically.. With a portable printer like Brother PT-E500? Thanks

@oscarsmx
Copy link

I'll share my settings for Brother Wifi Label Printer QL-820NWB. With this settings you can print default labels individually or in mass generate without a problem. Use margin minimum and roll of 62mm I use DK-2251 if like me you are using black/red roll set that type of paper in the print settings.

label1
label2
label3

@SonGokussj4
Copy link

I've read through the page but not sure If I understand correctly. I've created a custom site (in Next.js, Python API backend).
There I collect some information from Snipeit and show an asset. Under that, I want to have a button that, when pressed, will create a custom label with Company name, Asset service tag, Asset Model number and Location.
I can generate the "image".

Can I then send it somehow to a Brother wifi printer? Is there some query language for that?

Ideal workflow:

  • I open my custom site in a phone, find an Asset (filled info by Snipeit API)
  • I choose Location, write a Name, Serial number
  • Press print
  • Label is generated and sent to Brother printer
  • It prints label, I stick it to the asset, go to another table, repeat

@xWTF
Copy link

xWTF commented Jan 8, 2023

I'm using the Brother PT-P750W printer, printing labels from browser sometimes result in glitched barcodes, and could be really hard to setup properly.

So I made this tool to make life easier: https://github.com/xWTF/SnipeIT-bPAC

This tool starts a local daemon on your computer, and receives data with a REST API

image

The daemon then loads the template, fill the data with bPAC API to print them.

image

Pros:

  • Customize the label template with P-touch Editor
  • Prints with native text data, instead of the browser image API

Cons:

  • Works on Windows only
  • Works with Brother printer only
  • Requires an extra daemon

Might be an overkill for most users, but fits my needs perfectly, hope it helps someone else :)

GitHub
Brother P-Touch label printer daemon for Snipe-IT asset manager - GitHub - xWTF/SnipeIT-bPAC: Brother P-Touch label printer daemon for Snipe-IT asset manager

@G0bi83
Copy link

G0bi83 commented Mar 14, 2023

@xWTF

perfect work!

Is there a way to print multiple labels for the same tag? We put the label on a notebook an the ac-adaptor.
And the option -m (minimized) does not work (Error: TypeError: Failed to fetch), but process is running

Thanks!

@xWTF
Copy link

xWTF commented Mar 15, 2023

@xWTF

perfect work!

Is there a way to print multiple labels for the same tag? We put the label on a notebook an the ac-adaptor. And the option -m (minimized) does not work (Error: TypeError: Failed to fetch), but process is running

Thanks!

@G0bi83 -m option should work, what you met might be the random freeze issue, I haven't found a perfect fix yet and what I do is simply kill the app when it freezes.

To print multiple labels for each entry, you can use a for loop, simply replace the old loop with this:

foreach ($assets as $asset) {
    // change this 2 to the amount you want
    for ($i = 0; $i < 2; $i++) {
        $labels[] = [
            'id' => 'ID: ' . $asset->id,
            'name' =>  empty($asset->name) ? '' : 'N: ' . $asset->name,
            'serial' => empty($asset->serial) ? '' : 'S: ' . $asset->serial,
            'model' => empty($asset->model->name) ? '' : 'M: ' . $asset->model->name,
            'company' => $asset->company === null ? null : 'C: ' . $asset->company->name,
            'asset_tag' => $asset->asset_tag,
            'asset_url' => $_ENV['APP_URL'] . '/hardware/' . $asset->id,
        ];
    }
}

If you want further discussion please create new issue in my repo, replying here might disturb contributors and other people.

@deydist
Copy link

deydist commented Apr 11, 2023

The settings for every printer and label size would be different, but through trial and error I found the best settings for our Dymo Labelwriter 400 with Large Address Labels (89mm x 36 mm). Chrome's print preview is really useful in determining the correct options. The settings are:

  • Labels per page: 1
  • Label font size: 10pt
  • Label dimensions (inches): 3.2 x 1.0
  • Label spacing (inches): 0 x 0
  • Page margins (inches): 0 x 0 x 0 x 0.2
  • Page dimensions (inches): 3.4 x 1.0
  • Label visible fields: Asset Name Serial Asset Tag Company Name

I now bought some smaller and more durable labels which I'll need to test

Hello! How do you change settings so the text doesn't overlap with the barcode? Mine keeps doing this...
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❤️ feature request stale 👩‍💻 ready for dev These issues are ready for someone to work on them - take your pick!
Projects
None yet
Development

No branches or pull requests