/niimbot-d110-api

Label tag printer API for NIIMBOT D110 label printer.

Primary LanguageGoMIT LicenseMIT

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

    pip3 install -r requirements.txt
  • Run golang server

    go run .
  • POST request on http://localhost:8769/print with payload in the following JSON format

    {
        "text" : "MYLABEL",
        "qr_text" : "https://www.example.com/MYLABEL"
    }

cURL

curl -d '{"text": "MYLABEL", "qr_text": "https://www.example.com/MYLABEL"}' \
     -H "Content-Type: application/json" \
     -X POST \
     http://localhost:8769/print

Authors