{% extends "base.html" %}
{% block content %}
Two ways to drive this printer from Homebox's own per-entity “print” button.
These render to your configured stock ({{ w_mm }}×{{ h_mm }} mm @ {{ dpi }} dpi).
Homebox — connect for printing
{{ base }}. Override above if Homebox can't reach that address.
On the Homebox server set HBOX_LABEL_MAKER_LABEL_SERVICE_URL to the URL
below. Homebox will ask us to render each label; we render it with our engine
{% if autoprint %}and enqueue the print as a side effect{% else %}
(auto-print is currently disabled; we only return the image){% endif %}.
HOMEBOX_LABEL_SERVICE_AUTOPRINT=false and use Option C instead.
Save this script on the Homebox host, make it executable, and set
HBOX_LABEL_MAKER_PRINT_COMMAND to
/path/to/script.sh {{ "{{" }}.FileName{{ "}}" }}.
Homebox renders the label itself and we just print the bytes.
Match Homebox's rendering to your stock with these env vars (pixels):