{% extends "layout.html" %} {% set active_page = "method_list" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Methods/", dict_translation['method']['title']] %} {% block title %} - {{dict_translation['method']['title']}}{% endblock %} {% block head %} {% if method %} {% if current_user.theme in dark_themes %} {% endif %} {% endif %} {% endblock %} {% block body %}
{% include 'flash_messages.html' %}

{{dict_translation['method']['title']}}

{{_('Methods allow different types of setpoint tracking in PID controllers. Normally, a PID controller will regulate an environmental condition to a specific setpoint. If you would like the setpoint to change over time, this is called setpoint tracking.')}}

{{form_create_method.csrf_token}}
{{form_create_method.name.label(class_='control-label')}}
{{form_create_method.name(class_='form-control')}}
{{form_create_method.method_type.label(class_='control-label')}}
{{form_create_method.method_type(class_='selectpicker', **{'title': _('Method') + ': ' + dict_translation['select_one']['title']})}}
{{form_create_method.Submit(class_='btn btn-primary')}}

{%- if method == [] -%} {{_('No Saved Methods Exist')}} {%- else -%} {{_('Saved Methods')}} {%- endif -%}

{%- for each_method in method -%} {%- set chart_number = loop.index -%}
{%- set method_setpoint = [] -%} {%- for each_method_all in method_all if each_method_all.method_id == each_method.unique_id and each_method_all.setpoint_start -%} {%- do method_setpoint.append(1) -%} {%- endfor -%} {%- if method_setpoint or each_method.method_type in ["DailySine", "DailyBezier"] -%}
{%- endif -%}
{%- endfor -%}
{% endblock %}