# Print Label on Node-Red

**URL:** <https://discourse.nodered.org/t/print-label-on-node-red/43253>\
**Category:** General\
**Created:** [27 March 2021 00:09 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253 "2021-03-27T00:09:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [27 March 2021 00:09 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/1 "2021-03-27T00:09:03Z")

</div>

Dears,

I need print a label to identify a material, using a Node-Red flow. How can I do this?

Thanks,

Roberto Campos

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 March 2021 00:16 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/2 "2021-03-27T00:16:45Z")

</div>

Youre gonna have to provide more details.

- What printer?
- does it accept TCP or UDP commands?
- does it have any sort of API?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 March 2021 09:02 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/3 "2021-03-27T09:02:58Z")

</div>

Also is the printer accessible from the machine running node red or is it on the machine running the browser, if they are different.

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [27 March 2021 10:05 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/4 "2021-03-27T10:05:11Z")

</div>

Hi Steve,

I don't have these informations still. But I understood that this is fundamental to find a way to print label from Node-Red. When I know the printer type, I will post here.

Thank You

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [27 March 2021 10:07 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/5 "2021-03-27T10:07:54Z")

</div>

Thanks Collin. I will see this information also. But I believe that the printer can be accessed by the machine running node-red.

Best Regards

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 March 2021 11:10 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/6 "2021-03-27T11:10:11Z")

</div>

> [@bobfield](#):
>
> I believe that the printer can be accessed by the machine running node-red.

That makes it easier, as the file does not need to be downloaded to the browser machine for printing.

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [27 March 2021 20:52 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/7 "2021-03-27T20:52:38Z")

</div>

Hi Colin,

My client don't decide which printer will be purchased. Do you have some recommendation, to facilitate the printing by node-red ?

This label will be placed on oxygen cylinders, in an aid to the coronavirus pandemic here in Brazil.

Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2021 08:45 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/8 "2021-03-28T08:45:27Z")

</div>

I can't see any way to automate that if you don't even know how the printer is connected. For example it might be a printer plugged into USB on the device running node-red or it might be a remote network printer. However, I don't know Windows well (I assume the machine will be running Windows since you have not said) so perhaps there is a way.

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [28 March 2021 09:46 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/9 "2021-03-28T09:46:14Z")

</div>

I see Colin. Probably the printer will be connected in the usb port of the machine running node-red. The operation system will be a Windows 10.

Thanks for your attention,

Roberto

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 March 2021 09:59 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/10 "2021-03-28T09:59:52Z")

</div>

The first thing to establish is the type of label required i.e. are paper labels acceptable or do you need a thermal printer for plastic / coated for water proofing?

Once you understand that,  
find some suitable printers and speak to sales reps to see what equipment they have that can be automated via external command.

USB might be harder to automate from a node environment on Windows so I would look for one that accepts printing via TCP or UDP (Ethernet).

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2021 10:14 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/11 "2021-03-28T10:14:28Z")

</div>

@bobfield indicated earlier that they cannot specify a particular printer. That is up the end user apparently.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 March 2021 10:18 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/12 "2021-03-28T10:18:14Z")

</div>

I read this...

> [@bobfield](#):
>
> My client don't decide which printer will be purchased

And figured the client is not deciding the printer.

On a 2nd read, perhaps it means the client has "not decided yet".

Anyhow, regardless, @bobfield should influence the choice to ensure it is automatable.

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [28 March 2021 19:48 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/13 "2021-03-28T19:48:55Z")

</div>

Yes Steve, if I know what is the best type of label print to do the impression by a node-red flow, I will recomend to my client the acquisition of this printer.

Thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 March 2021 23:57 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/14 "2021-03-28T23:57:58Z")

</div>

Node-red `might` be able to send information to a printer to print a label.  
The information NR would sent `will depend` on the printer and how it could communicate with NR.  
So `any` flow - where Node-RED will talk to a printer - will be dependent on the printer.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [29 March 2021 07:31 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/15 "2021-03-29T07:31:56Z")

</div>

Some label printers also provide RS232 communication via a virtual USB com port. That might also be an option.

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [29 March 2021 13:03 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/16 "2021-03-29T13:03:13Z")

</div>

Hi Dears,

The printer selected was a Zebra zd220 Usb. The product site is [ZD200 Series Desktop Printer | Zebra](https://www.zebra.com/us/en/products/printers/desktop/zd200-series.html)

Thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 March 2021 13:21 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/17 "2021-03-29T13:21:32Z")

</div>

What plarform will Node-RED be running on?  
Is the printer the ZD200`D` series or the ZD200`T` series?  
Have you looked at the technical manuals to determine how to communicate with it?  
If so, tell how it needs to communicate,  
if not, why not?

---

<div class="post-metadata">

**Author:** ![bobfield](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobfield/32/83723_2.png) [@bobfield](https://discourse.nodered.org/u/bobfield)\
**Post date:** [29 March 2021 14:38 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/18 "2021-03-29T14:38:34Z")

</div>

Hi zenofmud,

Yes, I am beginning to read the printer's manual and trying to understand the characteristics. When I see more relevant informations, I will post here.

Thank you

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [29 March 2021 15:58 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/19 "2021-03-29T15:58:55Z")

</div>

A handy and long forgotten trick on a windows pc to print from "dos/other" type packages is to share the windows pc printer and then "net use lpt1 \pserver\laser1 /persistent:yes " .... Thereafter its accessible as needed on the respective lpt port... Unfortunately this only gives access to the printer at a more "hardware" level... Some printers require additional host processing to actually generate a usable output, as they are effectively glorified bmp printers for want of a better term....

Ed

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [29 March 2021 17:19 UTC](https://discourse.nodered.org/t/print-label-on-node-red/43253/20 "2021-03-29T17:19:13Z")

</div>

Why involve Node-RED at all?

[Next page](https://discourse.nodered.org/t/print-label-on-node-red/43253.md?page=2)
