node-red-contrib-ipprint

A node that allows you to print with an IPP protocol. You can enter the printer IP directly from the node properties, alternatively you can use the "msg.printaddress" variable to enter the printer IP and port. Use msg.pdfName to insert the print name of the pdf; as in entering the IP, the value passed as a variable is more important than the value in the properties To send the pdf file to the node you can use two methods: Method one: Implements the "file in" node and sets the node output as "A single Buffer object". once this is done, the "file in" node will send, using msg.payload, the pdf Buffer to the "IPPrint" node. ATTENTION: using the "file in" node and the msg.printaddress variable it is necessary to declare "msg.printaddress" after the "file in" node. Method two: Send the pdf buffer via msg.payload. Check "use authentication" on the property page to enter username and password Use msg.documentformat for insert the document format WARNING: This node DOES NOT WORK without using the "msg.payload" veriable and IP value. Follow this wiki carefully. WARNING: The ip passed as a variable, using "msg.printaddress", is of higher importance than the IP entered via the node properties.

Usage no npm install needed!

<script type="module">
  import nodeRedContribIpprint from 'https://cdn.skypack.dev/node-red-contrib-ipprint';
</script>

README

npm npms.io (maintenance) GitHub language count

A node that allows you to print with an IPP protocol.


  • You can enter the printer IP directly from the node properties, alternatively you can use the "msg.printaddress" variable to enter the printer IP and port.
  • Use msg.pdfName to insert the print name of the pdf; as in entering the IP, the value passed as a variable is more important than the value in the properties
  • To send the pdf file to the node you can use two methods:

    • Method one: Implements the "file in" node and sets the node output as "A single Buffer object". once this is done, the "file in" node will send, using msg.payload, the pdf Buffer to the "IPPrint" node.
    • ATTENTION: using the "file in" node and the msg.printaddress variable it is necessary to declare "msg.printaddress" after the "file in" node.

    • Method two: Send the pdf buffer via msg.payload.

  • Check "use authentication" on the property page to enter username and password
  • Use msg.documentformat for insert the document format

WARNING: This node DOES NOT WORK without using the "msg.payload" veriable and IP value. Follow this wiki carefully.

WARNING: The ip passed as a variable, using "msg.printaddress", is of higher importance than the IP entered via the node properties.