{% extends "base.html" %} {% block title %}Setup{% endblock %} {% block id %}setup{%endblock %} {% block header_title %}AIRi Camera Configuration{% endblock %} {% macro fieldcontain(id, label, type, value, readonly=False) -%}
{%- endmacro %} {% macro selectfieldcontain(id, label, options, selected, readonly=False) -%}
{% if options|length > 0 %} {% else %} {% endif %}
{%- endmacro %} {% macro checkfieldcontain(id, label, legend, value, readonly=False) -%}
{{ legend }}
{%- endmacro %} {% block content %}

Device Information

{{ fieldcontain("address", "Address", "text", address, True) }} {{ fieldcontain("name", "Name", "text", name, True) }} {{ fieldcontain("type", "Type", "text", type , True) }} {{ fieldcontain("status", "Status", "text", status , True) }} {{ fieldcontain("last", "Last Connection", "text", last , True) }} {% if capabilities.battery %} {% else %} {% set battery="Not supported feature" %} {% endif %} {{ fieldcontain("battery", "Battery Status (mV)", "text", battery, True) }}

Connection Setup

{{ checkfieldcontain("reconnect", "Reconnect Automatically", "Reconnect", reconnect ) }} {{ fieldcontain("reconnect_timeout", "Reconnect After (seconds)", "text", reconnect_timeout ) }} {{ selectfieldcontain("transport", "Transport", capabilities.transport , transport ) }} {{ checkfieldcontain("enable_pincode", "Use device PIN code", " ", enable_pincode )}} {% if pincode %} {% else %} {% set pincode="" %} {% endif %} {{ fieldcontain ("pincode", "PIN code", "text", pincode ) }}

Camera Initial Settings

{{ selectfieldcontain("size", "Resolution", capabilities.size , size ) }}
Extras {% if capabilities.voice %} {% else %} {% endif %} {% if capabilities.flash %} {% else %} {% endif %}
{% if capabilities.exposure %}
{% else %} {% endif %}
{{ selectfieldcontain("pan", "Initial Panning", capabilities.pan , pan ) }}
{% endblock %}