{## # @file status_info_history.html # Copyright (C) 2015 Pressa. All rights reserved. #}
| {{ lang['dashboard']['status']['info']['history_comm_datetime'] }} | {% 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 %}{{ history['commDatetime']|date("d/m/Y H:i:s") }} |
| {{ lang['dashboard']['status']['info']['history_datetime'] }} | {## 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 %}{{ 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']}} |
| {% else %} | {% endif %} {{ history['vehicleInfo']['sensors'][i] }} | {% endfor %}||
| {% else %} | {% endif %} {{ history['vehicleInfo']['sensors'][i] }} | {% endfor %}||
| {% else %} | {% endif %} {{ history['vehicleInfo']['sensors'][i] }} | {% endfor %}||
| {% else %} | {% endif %} {{ history['vehicleInfo']['sensors'][i] }} | {% endfor %}||
| BAT PPAL: {{ stat['mainBatteryVolt'] }} V | {% else %}BAT PPAL: {{ stat['mainBatteryVolt'] }} V | {% 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 %}BAT AUX: {{ stat['auxBatteryVolt'] }} V | {% else %}BAT AUX: {{ stat['auxBatteryVolt'] }} V | {% endif %}
| 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']['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'] }} |