Print worker
{% if worker.status == "running" %}
running
{% else %}
{{ worker.status }}
{% endif %}
{% if worker.worker_error %}
{{ worker.worker_error }}
{% endif %}
Printer
{% if not printer_reachable %}
unreachable
{% elif not printer_supported %}
ready
{% elif printer_status and printer_status.ready and not printer_status.error %}
ready
{% else %}
attention
{% endif %}
{% if not printer_reachable %}
{{ printer_error }}
{% elif not printer_supported %}
status not reported by this printer (printing still works)
{% elif printer_status %}
{% if printer_status.head_opened %}head open · {% endif %}
{% if printer_status.paper_empty %}paper out · {% endif %}
{% if printer_status.ribbon_empty %}ribbon out · {% endif %}
{% if printer_status.paper_jam %}jam · {% endif %}
{% if printer_status.paused %}paused · {% endif %}
{% if printer_status.ready and not printer_status.error %}ok{% endif %}
{% endif %}