Part-DB-server/config
Jaime Laborda 218b394b13 Add optional direct thermal printing to Niimbot printers from the label generator
Adds a "Print to Niimbot" panel to the label generator dialog that sends the
generated label straight to a Niimbot thermal printer (e.g. B1) over Web
Bluetooth, without a PDF print dialog or printer driver.

The existing server-side DomPDF label is reused as-is: a new Stimulus controller
rasterizes the PDF preview page-by-page with pdf.js at the printer's native
resolution, converts it to a 1-bit bitmap and prints it via the niimbluelib
library. No changes to the PHP label pipeline are required.

The feature is disabled by default and gated behind the NIIMBOT_ENABLED
environment variable, since it is only useful for users who own such a printer.

- Add @mmote/niimbluelib and pdfjs-dist dependencies
- New assets/controllers/pages/niimbot_print_controller.js
- Print options (copies, density, label type, rotation, B/W threshold) in the
  label dialog, gracefully disabled when Web Bluetooth is unavailable
- NIIMBOT_ENABLED env flag (off by default), wired through parameters.yaml and a
  Twig global, documented in .env
- English translations and documentation

Requires a Chromium-based browser and a secure context (HTTPS or localhost).
2026-07-16 11:39:38 +02:00
..
packages Add optional direct thermal printing to Niimbot printers from the label generator 2026-07-16 11:39:38 +02:00
routes Updated framework-bundle recipe 2025-07-13 16:40:14 +02:00
banner.md Allow to override the banner with its existing env variable 2025-08-24 17:37:16 +02:00
bundles.php Use symfony AI platform for AI provider 2026-04-23 23:26:23 +02:00
parameters.yaml Add optional direct thermal printing to Niimbot printers from the label generator 2026-07-16 11:39:38 +02:00
permissions.yaml Allow to set stocktake date for part lots 2026-02-10 22:23:54 +01:00
preload.php Updated symfony recipes. 2021-01-03 20:54:47 +01:00
reference.php Updated dependencies 2026-06-28 19:31:20 +02:00
routes.yaml Updated routing recipe 2025-11-30 15:01:37 +01:00
services.yaml Increased timeout for local AI inferences, and made AI timeout configurable per provider 2026-06-22 22:06:30 +02:00