https://github.com/datumbrain/niimbot-d110-api
Label tag printer API for NIIMBOT D110 label printer.
https://github.com/datumbrain/niimbot-d110-api
Last synced: 9 months ago
JSON representation
Label tag printer API for NIIMBOT D110 label printer.
- Host: GitHub
- URL: https://github.com/datumbrain/niimbot-d110-api
- Owner: datumbrain
- License: mit
- Created: 2023-08-02T08:36:47.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T09:40:09.000Z (over 2 years ago)
- Last Synced: 2025-08-31T16:04:14.418Z (9 months ago)
- Language: Go
- Homepage:
- Size: 464 KB
- Stars: 43
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NIIMBOT D110 Label Printer API

An API server to create a tag image for a text and print it through the NIIMBOT D110 label printer.
## Requirements
- Python `>=3.10`
- Golang
- Linux (macOS doesn't support Bluetooth sockets, not tested on Windows)
## Getting started
- In the `niimprint` directory, run
```shell
pip3 install -r requirements.txt
```
- Run golang server
```shell
go run .
```
- POST request on `http://localhost:8769/print` with payload in the following JSON format
```json
{
"text" : "MYLABEL",
"qr_text" : "https://www.example.com/MYLABEL"
}
```
## cURL
```shell
curl -d '{"text": "MYLABEL", "qr_text": "https://www.example.com/MYLABEL"}' \
-H "Content-Type: application/json" \
-X POST \
http://localhost:8769/print
```
## Authors
- [Faizan Khalid](https://github.com/IamFaizanKhalid)
- [Usman Tahir](https://github.com/UsmanT2000)