{% extends 'base.html.twig' %} {% block body_id 'location' %} {% block body_class 'bg-28 no-zoom' %} {% block title %} {{ "Location"|trans }} {% endblock %} {% block stylesheets_last %} {{ parent() }} {% endblock %} {% block c4rg0_menuleft %} {% endblock %} {% block body %}

{{ 'Location'|trans }}

DS-C4RGO {{ luogo.Descrizione }}   

{{ 'Location'|trans }}

{% for loc in luoghi %}
{% for macchina in loc.Macchines %} {% set macgps = false %} {% if macchina.lastgps != null and macchina.lastgps|length > 0 %} {% set macgps = macchina.lastgps|first %} {% if macchina.lastgps|length > 1 and (macgps.locked == null or macgps.locked == 0) %} {% set macgps = macchina.lastgps|last %} {% endif %} {% endif %} {% if macchina.RemoteInfo != null and macchina.RemoteInfo != '' %} {% set macinfo = macchina.RemoteInfo|json_decode %} {% else %} {% set macinfo = false %} {% endif %}
{# Blocco sinistra #}
{# Blocco immagine #}

os

domainname: {% if macinfo != false %} {{ macinfo.status.os.domainname }} {% endif %}

machine: {% if macinfo != false %} {{ macinfo.status.os.machine }} {% endif %}

nodename: {% if macinfo != false %} {{ macinfo.status.os.nodename }} {% endif %}

release: {% if macinfo != false %} {{ macinfo.status.os.release }} {% endif %}

sysname: {% if macinfo != false %} {{ macinfo.status.os.sysname }} {% endif %}

version: {% if macinfo != false %} {{ macinfo.status.os.version }} {% endif %}

{# FINE Blocco immagine #} {# Blocco comandi #}

{{ 'Available Command'|trans }}

{% for comando in macchina.Comandi %}
{% endfor %} {# FINE Blocco comandi #}

{{ 'Location'|trans }}

{% if macgps != false %}
{% endif %}
{% if macinfo != false %} {% for wiz in macinfo.status.wizsetup %}
{% for field in wiz.fields %}

{{ field.name }}
{{ field.value }}

{% if field.name == 'GPS' %}

GPS

{% if macgps != false %}

Status: {{ macgps.status }}

Timestamp: {{ macgps.creation_date }}

Latitude: {{ macgps.latitudine }}

Longitude: {{ macgps.longitudine }}

Altitude: {{ macgps.altitudine }}

Speed: {{ macgps.speed }}

Travel Angle: {{ macgps.angolo }}

{#

Tracking Satellites: {{ macgps.trackingSatellites }}

Visible Satellites {{ macgps.visibleSatellites }}

#}
{% if macgps != false %}
{% endif %}
{% if macgps != false %}

{{ 'Location'|trans }}

{{ macgps.remote_info }}

{% endif %}
{% endif %} {% endif %} {% endfor %}
{% endfor %} {% endif %} {# info tab #}
{{ 'Production year'|trans }}: {{ macchina.DataProduzione|date('m/y') }}
{{ 'Serial number'|trans }}: {{ macchina.NumeroSeriale }}
{{ 'Software Version' }}: {{ macchina.VersioneSw }}
{{ 'User License'|trans }}: {{ macchina.UserLic }}
{% if macchina.scaduta %} {% else %} {% endif %}    {{ 'Assistance'|trans }} : {{ macchina.Scadenza }}
{# FINE info tab #}

enx00e04c360706

IPV4:
{% if macinfo != false and macinfo.status.IF_enx00e04c360706_IPV4_IP|default %}
{{ macinfo.status.IF_enx00e04c360706_IPV4_IP }}
{% endif %}

IPV4 NETMASK:
{% if macinfo != false and macinfo.status.IF_enx00e04c360706_IPV4_NETMASK|default %}
{{ macinfo.status.IF_enx00e04c360706_IPV4_NETMASK }}
{% endif %}


eth0

IPV4:
{% if macinfo != false %}
{{ macinfo.status.IF_eth0_IPV4_IP }}
{% endif %}

IPV4 NETMASK:
{% if macinfo != false %}
{{ macinfo.status.IF_eth0_IPV4_NETMASK }}
{% endif %}

wlan0

IPV4:
{% if macinfo != false %}
{{ macinfo.status.IF_wlan0_IPV4_IP|default }}
{% endif %}

IPV4 NETMASK:
{% if macinfo != false %}
{{ macinfo.status.IF_wlan0_IPV4_NETMASK|default }}
{% endif %}

{# Modulo mobile #} {% if macchina.MQTTDeviceId %} {% include 'block/_mobile_module.html.twig' with { 'macchina': macchina, 'deviceId': macchina.MQTTDeviceId } %} {% else %}
{{ 'No device configured for this machine'|trans }}
{% endif %}
{# Modulo gps #} {% if macchina.MQTTDeviceId %} {% include 'block/_gps_module.html.twig' with { 'macchina': macchina, 'deviceId': macchina.MQTTDeviceId, 'lastGps': macgps } %} {% else %}
{{ 'No device configured for this machine'|trans }}
{% endif %}
{# Modulo sms #} {% if macchina.MQTTDeviceId %} {% include 'block/_sms_module.html.twig' with { device_id: macchina.MQTTDeviceId, machine_id: macchina.id } %} {% else %}
{{ 'No device configured for this machine'|trans }}
{% endif %}
{% endfor %} {% endfor %}





















{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}