Skip to content

digoarthur/thermal-Printer-and-NodeJS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖨️ Order Receipt Printing via API

A simple system built with Node.js to send orders directly to XPrinter XR - N160II thermal printers over Wi-Fi. Ideal for restaurants such as sushi places, bars, and diners that want to automatically print orders placed through a local system.

Node.js XPrinter


🛠️ XPrinter XR-N160II Setup

Group 110

Follow the steps below to configure your printer to work over Wi-Fi, enabling communication via API.

📦 Step 1 – Connect via USB and open the software

🖼️ Image here
Connect the printer to your computer via USB and open the XPrinter V3.2C software.
If you don't have the software yet, download it here: Download XPrinter 3.2C


⚙️ Step 2 – Configure the network

20250625_111842.mp4

Go to Advanced > SetNet and fill in the fields as follows:

  • IP Address: Desired IP for your printer (e.g. 192.168.1.200)
  • Netmask: 255.255.255.0
  • Gateway: 192.168.1.1
  • SSID: Your Wi-Fi network name
  • Key: Your Wi-Fi password
  • Key Type: WPA2_AES_PSK

Click Set All. The printer will beep 🔊🔊🔊 to confirm it received the settings.


🌐 Step 3 – Set up the connection

Português

Return to the main screen and fill in the connection fields:

  • Local IP: Your machine's local IPv4 (e.g. 192.168.1.105)
  • Printer IP: Same IP as configured above (192.168.1.200)
  • Click Connect → “Connection Successful!” message will appear

🔌 Step 4 – Restart the printer

Turn the printer off and back on. It should beep 🔊🔊🔊 and connect automatically to your Wi-Fi network.


🚀 Getting Started

Prerequisites

  • Node.js 18+
  • Thermal printer connected
  • Network/USB access to printer

Clone repository

git clone https://github.com/DIGOARTHUR/Thermal-Printer-and-NodeJS-API.git
cd Thermal-Printer-and-NodeJS-API

Install dependencies

npm install

run API

node index.js

Acesss API URL

http://localhost:3000/imprimir



Love Thermal-Printer-and-NodeJS-API tutorial? Give our repo a star ⭐ ⬆️ .

by: @digoarthur Brazil Flag

About

Configuration simple API for thermal printer control

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published