Commit Graph

9 Commits

Author SHA1 Message Date
Hamza
c1fd34f145 Fix text centering and add label length setting to web UI
- Use ctx.textAlign='center' instead of manual offset with Math.max clamp
- Add label length selector (30/40/50mm) to settings
- Compute canvas size from label length at 8 dots/mm (203 DPI)
- Preview updates when label length changes

Fixes #3
2026-02-24 22:04:50 +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
c4ee77db62 Update blog link to dbuglife.com 2026-02-24 03:02:32 +01:00
Hamza
e150d88df3 Add live Web GUI link to README 2026-02-24 02:49:41 +01:00
Hamza
2efe5fb8fd Remove How it works section from README 2026-02-24 02:09:46 +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
Hamza
d8af89d326 Add web GUI section to README 2026-02-24 00:52:06 +01:00
Hamza
3be418369d Web Bluetooth GUI for D11s label printing
Single-file HTML app that talks to the printer directly via
Web Bluetooth. No server, no dependencies, no build tools.
Works in Chrome/Edge.
2026-02-24 00:51:35 +01:00
Hamza
2a4cce6544 Fichero D11s thermal label printer - BLE protocol RE and Python CLI 2026-02-24 00:38:13 +01:00