Part-DB-server/docs
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
..
api Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
assets Update example import csv to schow real capatibilities 2025-08-31 22:13:54 +02:00
installation Set CSP policy for static assets for security hardeninng 2026-06-20 23:42:01 +02:00
screenshots Add Update Manager screenshot for PR 2026-01-30 23:36:08 +01:00
upgrade Updated documentation about node requirements 2026-04-03 21:58:02 +02:00
usage Add optional direct thermal printing to Niimbot printers from the label generator 2026-07-16 11:39:38 +02:00
.gitignore Improved documentation 2023-02-08 00:52:45 +01:00
_config.yaml Improved documentation 2023-02-12 23:23:38 +01:00
_config_dev.yaml Improved documentation 2023-02-08 00:52:45 +01:00
CNAME Create CNAME 2023-02-08 23:24:04 +01:00
concepts.md Improve documentation clarity and fix outdated information (#1129) 2025-12-06 22:40:45 +01:00
configuration.md Add optional direct thermal printing to Niimbot printers from the label generator 2026-07-16 11:39:38 +02:00
Gemfile Improved documentation 2023-02-08 00:52:45 +01:00
index.md Added documentation about AI features 2026-05-03 00:35:49 +02:00
partkeepr_migration.md Fixed more typos and grammar issues in docs 2024-02-23 14:26:17 +01:00
serve.sh Improved documentation 2023-02-08 00:52:45 +01:00
troubleshooting.md Document KiCad's rejection of self-signed certificates (#1140) 2025-12-07 19:31:16 +01:00