Desktop app to enable direct use of receipt printers in web apps. https://netsyms.biz/apps/nickelbridge
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
Skylar Ittner ff48874eb9 Update Bootstrap 6 yıl önce
control Basic settings window with HTTP background server that prints receipts on request 6 yıl önce
nbproject Sync gitignore 6 yıl önce
public Update Bootstrap 6 yıl önce
.gitignore Add icons 6 yıl önce
LICENSE.md Add license and readme 6 yıl önce
README.md Add license and readme 6 yıl önce
package.json Basic settings window with HTTP background server that prints receipts on request 6 yıl önce

README.md

NickelBridge

NickelBridge is a simple utility that allows NickelBox to interface with receipt printers. It runs a simple web server listening on localhost:64269 (nibox) that accepts JSON-format receipts and attempts to print them to whatever device is configured in the UI.

NickelBridge uses node-thermal-printer to print receipts. It therefore supports the Epson ESC/POS and STAR protocols. NickelBridge itself has only been tested with ESC/POS.

Endpoints

  • GET /status: Returns JSON {"status": "OK", "width" 48} where the width is the user-configured maximum width in characters of a single printed line of text.

  • POST /print: Accepts a JSON body comprised of the output of a json format NickelBox receipt. Prints it, cuts the paper (if hardware allows), and responds with {"status": "OK"}.

  • POST /opendrawer: Instructs the receipt printer to pop open the cash drawer, if there is one attached.