{# # Author: thl-cmk[at]outlook[dot]com # URL : https://thl-cmk.hopto.org # Date : 2022-12-10 # File : status.html # # 2023-03-13: moved error columns to the debug output # 2023-04-11: fine tuning output (formatting) # #} {% macro header_row() %} Count Action Serial number Platform HW rev. IP-Address PnP flow Status First seen Last contact Current job Current version Target version Last message {% if debug %} Current image Target image Size Free space Destination Error code Last error Error count Hard error Backoff {% endif %} {% endmacro %} {# --- #} {% macro add_empty_rows() %} {% set min_rows = 50 %} {% if devices|length < min_rows %} {% set current_rows = devices|length %} {% set num_columns = 13 %} {%if debug %} {% set num_columns = num_columns + 10 %} {% endif %} {% for i in range (0, min_rows - current_rows) %} {{ loop.index + current_rows}}{% for c in range(0, num_columns) %}{% endfor %} {% endfor %} {% endif %} {% endmacro %} {# --- #}

Open PnP server status

{{header_row() -}} {# needed to keep format #} {% for device in devices %} {% if debug %} {% else %} {% endif %} {% if debug %} {% endif %} {% endfor %} {{- add_empty_rows() -}} {# needed to keep format #} {{header_row() -}} {# needed to keep format #}
{{ loop.index }} {# #}
{{device.serial }}{{ device.serial }}{{ device.platform }} {{ device.hw_rev }} {{ device.ip_address }} {{ device.pnp_flow_readable }} {{ device.status }} {{ device.first_seen }} {{ device.last_contact }} {{ device.current_job }} {{ device.version }} {{ device.target_image.version }} {{ device.error_code_readable }}{{ device.image }} {{device.target_image.image }} {{ device.target_image.size }} {{ device.destination_free }} {{ device.destination_name }} {{ device.error_code }} {{ device.error_message }} {{ device.error_count }} {{ device.hard_error }} {{ device.backoff }}