Skip to content

bakkenbaeck/ddd3-server

Repository files navigation

ⒹⒹⒹ ➌ server

Local NodeJS server that acts as a web API for the Epson thermal printer series. The server is based on the https://github.com/Klemen1337/node-thermal-printer library.

The server exposes one endpoint to send a print command to: POST http://{printer_ip}/printer. An example of the request body is as follows:

{
  "commands": [
    {
      "command": "PRINTLN",
      "payload": "Print this line"
    }
  ]
}

The PRINTLN command maps to the println command of the node-thermal-printer package.

Installation

  1. Add a folder in the projects root, e.g. images.
  2. Run npm install

Usage

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published