Commit Graph
17 Commits
Author SHA1 Message Date
Gracious f9daab05e4 Add Tkinter label designer with emoji picker
label_app.py: label size presets, multi-line text with auto-fit / bold /
alignment, tabbed emoji picker (rendered via Noto Color Emoji,
gamma-darkened and dithered for the thermal head), live 1-bit preview,
save PNG, print in a background thread. Settings persist in
~/.config/niimprint-label/.

main.py is the earlier minimal GUI it supersedes.
2026-09-21 08:02:58 +01:00
Gracious 90137dd111 Add model table, PrinterError, and port upstream PRs #28/#12
Library changes on top of upstream 35c41a7:

- models.py: MODELS table (max width / density / needs_print_clear per
  model) and prepare_print(), replacing the duplicated width/density
  logic in the CLI. Adds d101 (192px head, tested on 12mm tape).
- _transceive raises PrinterError instead of returning None (callers
  used to crash with AttributeError on a silent printer).
- PR #28: send ALLOW_PRINT_CLEAR / SET_QUANTITY for D-series models
  (labels taller than ~210px failed on D11 without them) and pause 1ms
  between line packets.
- PR #12: replace the fixed sleep after END_PAGE_PRINT with
  get_print_status() polling (30s deadline, fallback for firmwares that
  do not answer). get_print_status returns PrintStatus(finished,
  progress, feed_progress, error).
- set_dimension parameter names match their use.

Verified on a D101 over Bluetooth.
2026-09-21 08:02:58 +01:00
blieppandGitHub 35c41a705c Bugfix: --addr assert checking (#51) 2026-03-16 00:27:54 +03:00
Moshi BinyaminiandGitHub be39f68c16 Add B1/B21 bluetooth details to readme (#16) 2024-04-05 20:40:11 +03:00
14237a9d05 Added B18 support (#6)
* Adding B18 support

* B18 work

* Removed some debugging print

* Update readme, remove extra example image

* Add extra printer models & density check

---------

Co-authored-by: AndBondStyle <[email protected]>
2024-01-20 02:05:42 +03:00
AndBondStyle 2199e65588 Add --verbose flag 2023-12-06 13:48:24 +03:00
AndBondStyle 33bf8789ac Add delay after end_page_print 2023-11-01 06:41:48 +03:00
AndBondStyle 0f744cd2c5 Add rotation support, update readme 2023-11-01 06:08:59 +03:00
AndBondStyle e75ec6e330 Test bluetooth connection, update readme 2023-10-30 02:24:39 +03:00
AndrewandGitHub 16cd7e4ff3 Update readme.md 2023-10-30 02:04:37 +03:00
AndBondStyle 3d48cb4a7b Update 2023-10-30 02:03:02 +03:00
kjy00302andGitHub f4d66533b5 Merge pull request #3 from m-c-frank/main
Replaced Magic Numbers with an enum
2023-07-20 16:21:24 +09:00
Martin Christoph Frank 7962ee4e47 set default respoffset to 1 2023-04-09 13:21:57 +02:00
Martin Christoph Frank 908e1bbfbf changed transceive response code to an offset relative to the reqcode 2023-04-09 13:20:03 +02:00
Martin Christoph Frank 4fa8a774f2 replaced magic numbers with the RequestCodeEnum 2023-04-09 13:16:40 +02:00
kjy00302andGitHub 59becc161b Create LICENSE 2023-03-26 17:36:01 +09:00
kjy00302 8dbf94d9e0 Initial commit 2023-03-16 19:46:09 +09:00