printing to epson pos printer

983 views
Skip to first unread message

esc...@missionroom.nl

unread,
Mar 17, 2017, 6:16:10 AM3/17/17
to Node-RED
Any one any experience with printing from node-red?
I have done some tests with printhtml on a windows machine but it is so slow...

I tried to install the printer with cups on raspberry pi but the drivers are not supported :-(

Steampunk Prof

unread,
Mar 17, 2017, 9:12:40 AM3/17/17
to Node-RED
Have been doing this for a while although I'm not happy with my setup. I use it to print out a three day weather forecast and the local tide times. I'm doing it on my original model B Raspberry Pi.
I started off using espos-php as it met my needs at the time but now I do it using python-escpos because it's a lot faster. My issue at the moment is that I'm doing it via an Exec node which isn't a safe way of doing it so I'm going to look at trying one of the python function nodes when I have a spare moment.

Dave C-J

unread,
Mar 17, 2017, 9:19:38 AM3/17/17
to node...@googlegroups.com
why isn't it safe ? 

Steampunk Prof

unread,
Mar 17, 2017, 10:02:54 AM3/17/17
to Node-RED
Thought it wasn't a good idea to use too many Exec modes for security reasons.

Dave C-J

unread,
Mar 17, 2017, 10:07:37 AM3/17/17
to node...@googlegroups.com
they are ok if they are YOUR exec nodes.... just be wary of any you import from wherever...

Luis Montes

unread,
Mar 17, 2017, 12:42:51 PM3/17/17
to node...@googlegroups.com
If by pos you mean one of those espon receipt type printers, I've written to them with node.js directly using the netcat module.
Here's an example:  https://gist.github.com/monteslu/d64f3fa81160afda2fe4b74000507cce

Might make for a pretty simple output node if you feel like building one.



--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/65e098b9-0d37-488e-9069-9221dcb0c885%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steampunk Prof

unread,
Mar 17, 2017, 12:54:08 PM3/17/17
to Node-RED
Wouldn't use someone else's, seen way too many warnings :-)

Steampunk Prof

unread,
Mar 17, 2017, 12:55:21 PM3/17/17
to Node-RED
There are a few escpos nodes out there, depends on what someone wants to do with the printer.


On Friday, 17 March 2017 16:42:51 UTC, Luis Montes wrote:
If by pos you mean one of those espon receipt type printers, I've written to them with node.js directly using the netcat module.
Here's an example:  https://gist.github.com/monteslu/d64f3fa81160afda2fe4b74000507cce

Might make for a pretty simple output node if you feel like building one.


On Mar 17, 2017 3:16 AM, <esc...@missionroom.nl> wrote:
Any one any experience with printing from node-red?
I have done some tests with printhtml on a windows machine but it is so slow...

I tried to install the printer with cups on raspberry pi but the drivers are not supported :-(

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

esc...@missionroom.nl

unread,
Mar 17, 2017, 4:39:42 PM3/17/17
to Node-RED
Sounds goood, but thats above my programming knowledge :-(

Op vrijdag 17 maart 2017 17:42:51 UTC+1 schreef Luis Montes:
If by pos you mean one of those espon receipt type printers, I've written to them with node.js directly using the netcat module.
Here's an example:  https://gist.github.com/monteslu/d64f3fa81160afda2fe4b74000507cce

Might make for a pretty simple output node if you feel like building one.


On Mar 17, 2017 3:16 AM, <esc...@missionroom.nl> wrote:
Any one any experience with printing from node-red?
I have done some tests with printhtml on a windows machine but it is so slow...

I tried to install the printer with cups on raspberry pi but the drivers are not supported :-(

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Steampunk Prof

unread,
Mar 17, 2017, 5:57:25 PM3/17/17
to Node-RED
In that case I'd try installing python-escpos and then using an exec mode to feed the text in msg.payload to a python script using the python-escpos module. I use mine to print out an image and one 576 x 576 takes about 7 seconds to process and print. The following site http://python-escpos.readthedocs.io/en/latest/user/usage.html has instructions on how to install it on the Pi. I use the file method for my printer as it has proven the least troublesome for it.

Dean Sellers

unread,
Mar 18, 2017, 7:34:23 AM3/18/17
to Node-RED
In my experience you can just send a buffer out of a serial port to most POS printers.

If you have an IP only one they generally have a UDP port that prints whatever you send it.

Reply all
Reply to author
Forward
0 new messages