{% 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 %} {% if printers|length == 0 and pending_printers|length == 0 %}

Printers

{% endif %} {% macro printerCard(printer) %}
{{ printer.device_type.value }}
{# Mode badge #} {% if printer.cloud_account %} {# Display an invalid user account icon when account has been deleted. Click goes to accounts. #} {% if printer.cloud_account and printer.invalid_cloud_account %} {{ macros.faUserSlash('text-danger') }} {% endif %} {{ macros.faCloud() }} {% else %} {{ macros.faHouseSignal() }} {% endif %} {# State badge (far right) output printer.state as #} {{ 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 %} {% if not printer.cloud_account %} Edit {% endif %}
{% 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 %}