Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

digoarthur/thermal-Printer-and-NodeJS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 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

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

Configure.the.Network.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

Print output in XPrinter

Print.output.in.XPrinter.mp4



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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /