Commit Graph

24 Commits

Author SHA1 Message Date
paul2212
99c2fb79d7 fix error 500 2026-03-07 13:51:17 +01:00
265cded661 Merge pull request 'add features' (#1) from Paul/Fichero:main into main
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Reviewed-on: #1
2026-03-07 12:40:44 +00:00
paul2212
09f340c6e9 add features 2026-03-07 13:39:00 +01:00
7ab3f8f4d2 fix: remove container bluez, use host BlueZ via D-Bus, set DBUS_SYSTEM_BUS_ADDRESS
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 12:25:47 +01:00
4567986e69 chore: bump version to 0.1.1 to trigger HA rebuild
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 12:19:55 +01:00
c2d5baa34d fix: move global declaration to top of main() in api.py
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 12:18:32 +01:00
e723b07fcd fix: use amd64-base:latest with py3-numpy/py3-pillow from apk, no compiler needed
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 12:13:00 +01:00
218b3c4961 fix: use python:3.12-alpine3.21 from Docker Hub, rewrite run.sh without bashio
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2026-03-07 12:08:34 +01:00
f94f6a686d fix: Update Python base images to version 3.12 in build configuration
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
refactor: Improve Dockerfile by adding necessary build tools and cleaning up
2026-03-07 11:59:31 +01:00
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
f945a87c43 Add custom dark theme with Fichero brand blue accent
Replace Bootstrap default dark grays and hardcoded colors with a
design-token system: surface levels, ink hierarchy, logo blue (#07addf)
as the single accent, mark-feed red for print indicators. Card browsers
get rounded corners, subtle borders, and hover-reveal action buttons.
2026-03-02 17:22:13 +01:00
Hamza
fdbb25594e Move font loader into dropdown, remove standalone refresh button 2026-03-02 00:00:40 +01:00
Hamza
774b02bb99 Port NiimBlue label designer to Fichero D11s with local BLE protocol library 2026-03-01 23:36:25 +01:00
Hamza
b1ff403594 Fix text/image alignment, add dithering, extend Classic BT to Windows 2026-02-27 20:06:41 +01:00
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