{% import 'macros.jinja' as macros %}
{% set device_count = printers|length + pending_printers|length %} {% set recommend_count = request.putil.get_recommend_max_client_count() %} {% set is_using_too_many_res = request.putil.is_using_too_many_resources() %} {% set has_too_many_printers = device_count > recommend_count %} {% if "dismiss-bambu-warning" not in request.cookies and (is_using_too_many_res or has_too_many_printers) %} {% if is_using_too_many_res %} {% elif has_too_many_printers %} {% endif %} {% include "hardware_warning.html" %} {% endif %} {% set filtered_will_have_mqtt_encryption = (printers + pending_printers) | selectattr('cloud_account') | rejectattr('supports_mqtt_encryption') | list %} {% if "dismiss-bambu-warning" not in request.cookies and filtered_will_have_mqtt_encryption|length > 0 %} {% endif %} {% if printers|length == 0 and pending_printers|length == 0 %}

Printers

{% endif %} {% macro printerCard(printer) %}
{% if printer.warning %} {% set w = printer.warning %}
{% if w.icon == 'user-slash' %} {{ macros.faUserSlash('text-' + w.kind) }} {% elif w.icon == 'exclamation-triangle' %} {{ macros.faExclamationTriangle('text-' + w.kind) }} {% endif %} {{ w.message | safe }} {% if w.local_link %} {% elif w.external_link %} {% else %} {% endif %} {% if w.link_text %} {{ w.link_text | safe }} {{ macros.faUpRightFromSquare(None) }} {% endif %}
{% endif %}
{{ printer.device_type.value }}
{% if printer.can_do_developer_mode_check %} {% endif %} {% if printer.swap_available %} {% if printer.cloud_account %} {% else %} {% endif %} {% endif %} {% if printer.cloud_account %} {{ macros.faCloud() }} {% else %} {{ macros.faHouseSignal() }} {% endif %} {{ printer.state.label }}

{% if printer.name %} {{ printer.name }} {% else %} In setup: {{ printer.setup_code or '...' }} {% endif %}

Local IP: {{ printer.ip }}
Serial number: {{ printer.sn }}
Access code: {{ printer.access_code }}
{% if printer.name %} View in SimplyPrint {% elif printer.setup_code %} Set up in SimplyPrint {% endif %} Edit
{% endmacro %} {% if pending_printers|length != 0 %}

Pending printers

Once you have added a printer via this interface, it must be linked to your SimplyPrint account. Go to {{ macros.externalLink("the SimplyPrint web panel", "https://simplyprint.io/panel") }} to link your printer {% if pending_printers|length > 1 %}s{% endif %}.

{% for printer in pending_printers %} {{ printerCard(printer) }} {% endfor %}
{% endif %} {% if printers|length != 0 %}

Printers

{% for printer in printers %} {{ printerCard(printer) }} {% endfor %}
{% endif %}