use tape px width instead of device max

This commit is contained in:
Robin Appelman 2025-09-24 17:30:46 +02:00
commit f7910f967b
5 changed files with 20 additions and 14 deletions

View file

@ -50,14 +50,18 @@ on the system access to the label printer.
### Status
The returned status is a json with the following fields
The returned status is a json with the following fields:
- `media_width`: width of the loaded tape in mm.
- `pixel_width`: the width of the printed image in pixels.
- `margin_width`: the left and right margin on the tape that can't be printed.
- `media_type`: material type of the loaded tape.
- `text_color`: text color for the loaded tape.
- `tape_color`: tape color for the loaded tape.
(note that the tape is assumed to be horizontal here, so "width" is the short
short direction)
## Supported printers
The following printers are currently supported