{% extends "base.html" %} {% block content %}

Homebox — connect for printing

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).

← Back to the printer

Currently using {{ base }}. Override above if Homebox can't reach that address.

Option B — External label service (no script on the Homebox host)

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 %}.

{% if autoprint %}
Auto-print is ON. If your Homebox build also calls this URL for label previews, that would cause spurious prints — set HOMEBOX_LABEL_SERVICE_AUTOPRINT=false and use Option C instead.
{% endif %}

Option C — Print-command script (prints only on the print button)

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):

{% endblock %}