Commit Graph

5 Commits

Author SHA1 Message Date
14be205eb1 feat: Add Fichero D11s thermal label printer support with REST API and CLI
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
- 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.
2026-03-07 11:52:11 +01:00
43495714e6 Implement HTTP API for Fichero D11s printer with status and print endpoints
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 11:39:20 +01:00
Hamza
b1ff403594 Fix text/image alignment, add dithering, extend Classic BT to Windows 2026-02-27 20:06:41 +01:00
Hamza
a710328b5c Tune print quality defaults: density 2, font 30pt, threshold 160
- Default density to thick (2) for bolder output
- Default font size to 30pt for better readability
- Add draw.fontmode="1" to disable antialiasing for crisp 1-bit text
- Add ImageOps.autocontrast before thresholding images
- Update web GUI defaults to match CLI
2026-02-24 22:02:24 +01:00
Hamza
1fdbbe20bd Restructure into fichero/ package and fix review issues
Split monolithic printer.py into fichero/{printer,imaging,cli}.py.
Add asyncio.Lock to prevent notification buffer races, replace sys.exit
with PrinterNotFound/PrinterTimeout/PrinterNotReady exceptions, name all
magic sleep values as DELAY_* constants, add image_to_raster validation,
add --font-size and --label-height to text subcommand, add input
validation to set command, add type annotations to public API, fix
misleading paper type comment, remove duplicate PROTOCOL.md section,
update README for new CLI entry point and library usage.
2026-02-24 01:07:25 +01:00