cmmakerclub / thermal-printer-by-pubnub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thermal-printer-by-pubnub

Connect thermalprinter to computer (eg. raspberry pi).

Set port to thermal_printer.js at

var serialPort = new SerialPort("[YOUR PORT]", {

eg. /dev/ttyUSB0

Find port

ls /dev/tty*

PUBNUB

set publish_key, subscribe_key , channel

In this we set

publish_key   : "demo"
subscribe_key : "demo"
channel       : astatus

Setting Thermal printer

Please see at adafruit

About

License:MIT License


Languages

Language:JavaScript 94.2%Language:Shell 5.8%