{% extends "layout-remote.html" %} {% set active_page = "setup" %} {% block title %} - Remote Admin Setup{% endblock %} {% block head %} {% endblock %} {%- block body %}
{% include 'flash_messages.html' %}
Add remote Mycodo hosts to control and view data
The user must be in the Admin group of the remote Mycodo host you are adding (Admin/Configuration/User menu). Ensure port 443 (HTTPS) is open and reachable on the remote host. Check your router settings to enable port forwarding if trying to communicate over a non-local network. After adding the host, a status icon will appear next to the new host entry to indicate if it is accessible.
{{form_setup.csrf_token}}
{{form_setup.host.label(class_='control-label')}}
{{form_setup.host(class_='form-control')}}
{{form_setup.username.label(class_='control-label')}}
{{form_setup.username(class_='form-control')}}
{{form_setup.password.label(class_='control-label')}}
{{form_setup.password(class_='form-control')}}
{{form_setup.add(class_='form-control btn btn-default')}}
{% for each_host in remote_hosts %}
{{form_setup.csrf_token}} {{form_setup.remote_id(value=each_host.id)}}
{{each_host.id}}
{{form_setup.host.label(class_='control-label')}}
{{form_setup.host(class_='form-control', value=each_host.host)}}
{{form_setup.username.label(class_='control-label')}}
{{form_setup.username(class_='form-control', value=each_host.username)}}
{{form_setup.password.label(class_='control-label')}}
{{form_setup.password(class_='form-control')}}
{% if not host_auth[each_host.host] %} {% else %} {% endif %}
{{form_setup.delete(class_='form-control btn btn-default')}}
{% endfor %}
{% endblock -%}