{## # @file status_info_history.html # Copyright (C) 2015 Pressa. All rights reserved. #}
{{ lang['dashboard']['status']['info']['history_details_title'] }}
{% set ctime = date().timestamp %} {## Set css clas for commDatetime #} {% set difcommDatetime = ctime - history['commDatetime'] %} {% if difcommDatetime <= 1800 %} {% set commDatetimeClass = 'bg-success' %} {% endif %} {% if difcommDatetime > 1800 and difDatetime <= 5400 %} {% set commDatetimeClass = 'bg-warning' %} {% endif %} {% if difcommDatetime > 5400 %} {% set commDatetimeClass = 'bg-danger' %} {% endif %} {## Set css clas for datetime #} {% set difdatetime = ctime - history['datetime'] %} {% if difdatetime <= 1800 %} {% set datetimeClass = 'bg-success' %} {% endif %} {% if difdatetime > 1800 and difDatetime <= 5400 %} {% set datetimeClass = 'bg-warning' %} {% endif %} {% if difdatetime > 5400 %} {% set datetimeClass = 'bg-danger' %} {% endif %} 200 %} class="blink" style="background-color: #ebccd1;font-weight: bold" {% endif %}> {% if history['vehicleInfo']['sensors'][12] and stat['driverName']|length > 0%} {% endif %}
{{ lang['dashboard']['status']['info']['history_comm_datetime'] }} {{ history['commDatetime']|date("d/m/Y H:i:s") }}
{{ lang['dashboard']['status']['info']['history_datetime'] }} {{ history['datetime']|date("d/m/Y H:i:s") }}
{{ lang['dashboard']['status']['info']['history_event_code_name'] }}
{% if ec['id']%}{{ ec['description'] }} (# {{ ec['id'] }}){% else %} REPORTE POSICION {% endif %}
{{ lang['dashboard']['status']['info']['history_location_coords'] }} {% set lat = history['location']['lat'] %} {% set lng = history['location']['lng'] %} {{ lat }}, {{ lng }}
{{ lang['dashboard']['status']['info']['history_speed'] }} {{ history['speed'] }} Km/h
{{ lang['dashboard']['status']['info']['history_age'] }} {{ history['age'] }}
{{ lang['dashboard']['status']['info']['history_orientation'] }} {{ history['orientation'] }}°
{{ lang['dashboard']['status']['info']['driver'] }} {{stat['driverName']}}
{{lang['dashboard']['status']['info']['sensors_title']}}
{% for i in 0..1 %} {% if history['gpioBin'][i] == '1' %} {% endfor %} {% for i in 2..3 %} {% if history['gpioBin'][i] == '1' %} {% endfor %} {% for i in 4..5 %} {% if history['gpioBin'][i] == '1' %} {% endfor %} {% for i in 6..7 %} {% if history['gpioBin'][i] == '1' %} {% endfor %} {% if stat['mainBatteryVolt'] <= 11 or (stat['mainBatteryVolt'] >= 15 and stat['mainBatteryVolt'] <= 22) or stat['mainBatteryVolt'] > 30 %} {% else %} {% endif %} {% if stat['auxBatteryVolt'] <= 3.3 or (stat['auxBatteryVolt'] >= 5 and stat['auxBatteryVolt'] <= 11) or (stat['auxBatteryVolt'] >= 15 and stat['auxBatteryVolt'] <= 22) or stat['auxBatteryVolt'] > 30 %} {% else %} {% endif %}
{% else %} {% endif %} {{ history['vehicleInfo']['sensors'][i] }}
{% else %} {% endif %} {{ history['vehicleInfo']['sensors'][i] }}
{% else %} {% endif %} {{ history['vehicleInfo']['sensors'][i] }}
{% else %} {% endif %} {{ history['vehicleInfo']['sensors'][i] }}
BAT PPAL: {{ stat['mainBatteryVolt'] }} V BAT AUX: {{ stat['auxBatteryVolt'] }} V
Litros: {%if history['vehicleInfo']['sensors'][13]%}{{ stat['liters'] }} L {% else %} - {% endif %} T1:{% if history['vehicleInfo']['sensors'][8] %} {{stat['currTemperature']}}°{%else%} - {% endif %}, T2:{% if history['vehicleInfo']['sensors'][9] %} {{stat['currTemperature2']}}°{%else%} - {% endif %}, T3:{% if history['vehicleInfo']['sensors'][10] %} {{stat['currTemperature3']}}°{%else%} - {% endif %}
{{ lang['dashboard']['status']['info']['map_title'] }}
{{ lang['dashboard']['status']['info']['vehicle_details_title'] }}
{{ lang['dashboard']['status']['info']['vehicle_name'] }} {{ history['vehicleInfo']['name'] }}
{{ lang['dashboard']['status']['info']['vehicle_alias'] }} {{ history['vehicleInfo']['alias'] }}
{{ lang['dashboard']['status']['info']['vehicle_brand'] }} {{ history['vehicleInfo']['brand'] }}
{{ lang['dashboard']['status']['info']['vehicle_model'] }} {{ history['vehicleInfo']['model'] }}
{{ lang['dashboard']['status']['info']['vehicle_license_plate'] }} {{ history['vehicleInfo']['licensePlate'] }}
{{ lang['dashboard']['status']['info']['vehicle_year'] }} {{ history['vehicleInfo']['year'] }}
{{ lang['dashboard']['status']['info']['vehicle_engine'] }} {{ history['vehicleInfo']['engine'] }}
{{ lang['dashboard']['status']['info']['vehicle_chassis'] }} {{ history['vehicleInfo']['chassis'] }}
{{ lang['dashboard']['status']['info']['vehicle_company_name'] }} {{ history['vehicleInfo']['companyName'] }}
{{ lang['dashboard']['status']['info']['vehicle_company_number3c'] }} {% if stat['number3c']|length > 0 %} {{ stat['number3c'] }} {% else %} - {% endif %}
{{ lang['dashboard']['status']['info']['vehicle_gps_id'] }} {{ history['gpsInfo']['id'] }}
{{ lang['dashboard']['status']['info']['vehicle_date_register'] }} {{ history['vehicleInfo']['dateRegister']|date("d/m/Y H:i:s") }}
{{ lang['dashboard']['status']['info']['vehicle_odometer'] }} {{ history['vehicleInfo']['odometer'] }}