epos-server

command
v0.0.0-...-764ed29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2018 License: MIT Imports: 13 Imported by: 0

README

About epos-server

This is a quick and dirty Golang implementation of a Epson TM-Intelligent print server. This also serves as example code for the escpos package. This is "more-or-less" compatible with the ePOS-Print API and shows how ePOS-XML is translated into simple ESCPOS data.

This has been tested and works as expected on Linux.

Installation and Building

You will likely need the libxml2 and related headers to build the gokogiri dependency.

If they are not already installed on your system, you will need to do something like the following for your system:

sudo aptitude install libxml2 libxml2-dev

Then install via the following:

go get -u github.com/knq/escpos/epos-server

You should then be able to build the epos-server like this:

go build github.com/knq/escpos/epos-server

Usage

You can specify the address and port to listen on, as well as the path to the printer:

user@host# ./epos-server --help
Usage of ./epos-server:
  -l string
        Address to listen on (default "127.0.22.8")
  -p string
        Path to printer (default "/dev/usb/lp0")
  -port int
        Port to listen on (default 80)

TODO

The following still needs to be implemented:

  • Fix image decoding and printing

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL