Closed Jason-Weber-UC closed 4 years ago
Hi guys, does anyone have a current solution for me? I need a printer and a label which is stable so i can include our hardware in the asset.
@ellisgeek When you customised your template, did you find a way of adding extra fields, such as who the asset is checked out to?
Also @jpsv your instructions work perfectly for the LabelStation Pro 200/300 printer series too (just can't go as high a res on the images), this really did help me get ours working properly
@snipe What is the process for a change request, I think it would be beneficial to have x amount of spaces on the label and then from a drop down, pick which fields appear. So say you have 4 or 5 placements that you could then go 1 - Asset Tag, 2 - Checked out to, 3 - Item Name etc? Just think that would make it a lot easier customizing the labels
Ooo, some activity!
@GrepItAll I have not tried it in a while (and am currently on a linux system - drivers are scarce!) but I do believe you can print labels straight from Google Chrome now.
Test it out, it is however not impossible that I have a newer version of the code here, in which case I'll upload the latest version.
I actually found some documentation I wrote a while ago. Hopefully, this will help some.
Due to a bug in the P-Touch drivers, printing labels straight from Chrome is not this straightforward. Here I will explain how to print labels from Snipe-IT to a P-Touch 2730 or P750W IMPORTANT: Firefox does NOT support printing to anything else than 8.5"x11", you MUST use Google Chrome, Opera or the new, Chromium-based Edge browser for this to work!
• Chrome, Opera or the Chromium-based version of Edge
• P-Touch drivers for your relevant printer (we will be using the P750W here)
• Adobe Acrobat DC or Adobe Acrobat Reader
In Snipe-IT Tick the assets for which you would like to print out labels. Then, head to the top dropdown, select "Generate Labels" and press on "Go". You will end up on this page with the three labels we selected. Press on Ctrl + P to show the print menu and select the printer that's attached to your PC. (P750W in our case) Ensure that: • The paper size is set to 0.94" • No margins • Standard quality, high quality can cause issues Note the extra blank label, marked in yellow. This is a bug in the current version of the software, if you encounter it, simply omit the last page from the print.
Congratulations, you now have some beautiful labels!
@acerspyro hello, does the proposed documentation (https://github.com/snipe/snipe-it/issues/3526#issuecomment-533277871) apply to the original snipe-it, or does it have to modify a PHP file? Indeed I have an instance hosted by snipeit and I can not change anything. The dymo 450 Turbo seems to work without changing anything, but I preferred to use a Brother P750W. Thank you
Hi, I bought a Dymo 450 Turbo with Dymo Durable labels 1 in x 2 1/8 in (1976411). Unfortunately unlike @andrewgsauer screenshots (https://github.com/snipe/snipe-it/issues/3526#issuecomment-383205058 ) I can not find my labels in the paper proposals. Do you have any idea where the problem comes from? Thank you
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!
yes
Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!
To cut it short, I am looking for somebody that will be able help me with the design of the label's. I want to label my old collection of technical magazine's that I have collected through the time. It's a big collection and it needs to be rearranged. That's why I am thinking about some special label's that will have the most important information on them, but it should be a small one. I've already bought a label tape for this thing. Somebody told me that the tape should be chosen very carefully because this labels need to be set for a long time. I found a good label tape here https://www.mrdepot.ca/ The seller told me that this one is the perfect choice for my mission, I think he is right, I've read a lot of information about this tape and it is definitely the best one
I'm trying to print labels with a Brother QL-570 with 29mm continuous labels with Chrome. My problem is that Chrome only prints in portrait and even if I change to landscape in settings it still prints in portrait. I have tried with diffrent labels but the same result.
Anyone have an idea how to get it work?
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!
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.
Big thanks to @acerspyro Awesome work and write-up. Helped me a lot!
Using your labels.blade.php code with some of my customizations, I was able to print on my P-Touch PT-P700 good looking labels on (0.7") 18 mm size tape I struggled with the bardcode position after I downsized to 18mm. By playing around with Line Spacing and img.barcode php lines I was able to make them look ok. However, this is a dirty fix. I wish someone could revise acerspyro's files and post a code for 18mm tape.
Here is the result:
These are my settings:
edited
my labels.blade.php file labels.blade.php.txt
Has anyone used Brother 62mm continuous tape with good results?
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.
Notes:
Download "labels.blade.php.txt" above, rename it to "labels.blade.php" and override the existing file in snipeit\web\resources\views\hardware
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.
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.
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
Can this be easily adapted for 18 mm tape?
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.
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
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
@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?
@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.
@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
UI Label Settings
Printer Settings
Chrome Print Settings
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.
Afraid I gave up and made our own solution for buying pre-printed labels with QR codes.
@acerspyro Thanks for excellent solution, works good with Chrome browser, Brother P750W and 24mm tape.
Latest updates broke the customization of labels.blade.php I no longer can use my custom file.
Anyone else is having issues?
It probably needs to have its changes merged into the latest version.
You can use git merge
to do this.
On Wed, 24 Feb 2021 at 11:40, tony-vi notifications@github.com wrote:
Latest updates broke the customization of labels.blade.php I no longer can use my custom file.
Anyone else is having issues?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snipe/snipe-it/issues/3526#issuecomment-785207894, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBSOZ3KPYJNU3YMU5AH26DTAUTWRANCNFSM4DJW2BKQ .
--
http://acerspyro.ca/ MAXIM "ACERSPYRO" THERRIEN FREELANCE WEB DEV 438.868.6058 MAXIM@ACERSPYRO.CA mailto:maxim@acerspyro.ca
@acerspyro what do you mean? Which changes?
sorry I missed this message.
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'] : ''}}">
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.
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. :)
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)
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
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.
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'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
The daemon then loads the template, fill the data with bPAC API to print them.
Pros:
Cons:
Might be an overkill for most users, but fits my needs perfectly, hope it helps someone else :)
GitHubBrother 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
@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
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.
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...
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