An open API service indexing awesome lists of open source software.

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.

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)