{% extends "layout.html" %} {% set active_page = "calibration" %} {% block title %} - {{_('Calibration & Setup')}}: Atlas Scientific RGB Sensor{% endblock %} {% block body %}
{% include 'flash_messages.html' %}

Atlas Scientific RGB Sensor

{% if ui_stage == 'start' %}

{{_('This guide will walk you through the calibration procedure for the Atlas Scientific RG Color Sensor. To complete this procedure, you will need a white object such as a piece fo paper.')}}

{{_('To begin calibration, have your sensor properly connected to Mycodo and deactivated, place the white object in front of the sensor, then click Begin Calibration.')}}

{{form_rgb_calibrate.start_calibration(class_='form-control btn-default')}}
{% elif ui_stage == 'complete' %}

{{dict_translation['calibration']['title']}}{% if input_device_name %}: {{input_device_name}}{% endif %} {{selected_input.id}} ({{selected_input.name}}): {% if complete_with_error %}{{_('Calibration Failed')}}{% else %}{{_('Calibration Succeeded')}}{% endif %}

{% if complete_with_error %}

{{dict_translation['error']['title']}}:
{{complete_with_error}}

{{_('Refer to the logs for details')}}

{% else %}

{{_('Calibration Complete')}}

{% endif %} {% endif %}
{% endblock %}