HTTP to IPP proxy, a.k.a. Rube Goldberg printing microservice
 
 
Go to file
radex 0c4c8b4087
change dymo name
2024-06-08 20:52:06 +02:00
patches Add some debug stuff etc 2024-01-31 21:46:16 +01:00
.gitignore Initial commit 2024-01-31 20:03:18 +01:00
Dockerfile Add some debug stuff etc 2024-01-31 21:46:16 +01:00
README.md change dymo name 2024-06-08 20:52:06 +02:00
dev-config.json change dymo name 2024-06-08 20:52:06 +02:00
index.js Fix printing without specified content-type 2024-02-07 17:47:17 +01:00
package-lock.json Add multi-printer support, change API 2024-02-01 15:38:03 +01:00
package.json Add multi-printer support, change API 2024-02-01 15:38:03 +01:00

README.md

Printservant

HTTP to IPP proxy, a.k.a. HSWAW Rube Goldberg printing microservice.

Usage

GET / to see available API routes

Quick start

Configuration available:

PRINTSERVANT_PORT - Port (default: 3199)
PRINTSERVANT_CONFIG - JSON config, like so:
  {
    printers: [
      {
        name: 'DYMO_LabelWriter',
        aliases: ['dymo', 'label'],
        ipp_url: 'ipp://printmaster.waw.hackerspace.pl/printers/DYMO_LabelWriter',
      },
      ...
    ]
  }
PRINTSERVANT_CONFIG=$(cat dev-config.json) node index.js

or:

docker build -t printservant .
docker run --env PRINTSERVANT_CONFIG=$(cat dev-config.json) -it -p 3199:3199 printservant