feat: Add Fichero D11s thermal label printer support with REST API and CLI
- Implemented a new module for the Fichero D11s thermal label printer, including BLE and Classic Bluetooth interfaces. - Created a REST API using FastAPI to manage printer status, info, and printing tasks (text and images). - Developed a CLI for direct printer interaction, allowing users to print text and images, check status, and modify settings. - Added image processing capabilities for converting text and images to the required format for printing. - Introduced error handling for printer operations and connection management. - Included a shell script for running the API server with configurable parameters. - Added English translations for configuration options. - Created a repository metadata file for project management.
This commit is contained in:
42
fichero_printer/config.yaml
Normal file
42
fichero_printer/config.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
name: "Fichero Printer"
|
||||
version: "0.1.0"
|
||||
slug: "fichero_printer"
|
||||
description: "REST API for the Fichero D11s (AiYin) thermal label printer over Bluetooth"
|
||||
url: "https://git.leuschner.dev/Tobias/Fichero"
|
||||
|
||||
arch:
|
||||
- aarch64
|
||||
- amd64
|
||||
- armhf
|
||||
- armv7
|
||||
- i386
|
||||
|
||||
init: false
|
||||
startup: application
|
||||
boot: auto
|
||||
|
||||
host_network: true
|
||||
host_dbus: true
|
||||
|
||||
# NET_ADMIN is required for Classic Bluetooth (RFCOMM) raw socket access.
|
||||
# BLE uses D-Bus (host_dbus) and does not need this.
|
||||
privileged:
|
||||
- NET_ADMIN
|
||||
|
||||
options:
|
||||
port: 8765
|
||||
ble_address: ""
|
||||
transport: "ble"
|
||||
channel: 1
|
||||
|
||||
schema:
|
||||
port: int
|
||||
ble_address: str?
|
||||
transport: list(ble|classic)
|
||||
channel: int
|
||||
|
||||
ports:
|
||||
8765/tcp: 8765
|
||||
|
||||
ports_description:
|
||||
8765/tcp: "Fichero Printer REST API"
|
||||
Reference in New Issue
Block a user