{% extends 'base.html.twig' %} {% block body_id 'location' %} {% block body_class 'bg-28' %} {% 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 %}

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 %}

{{ 'Available Command'|trans }}

{% for comando in macchina.Comandi %}
{% endfor %}

{{ '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 %}
{{ '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 }}

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 %}

wwan0

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

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

phone

APN:
{% if macinfo != false and macinfo.status.phone.APN|default %}
{{ macinfo.status.phone.APN|default }}
{% endif %}

ICCID: {% if macinfo != false %} {{ macinfo.status.phone.ICCID|default }} {% endif %}

IMEI: {% if macinfo != false %} {{ macinfo.status.phone.IMEI|default }} {% endif %}

Manufacturer: {% if macinfo != false %} {{ macinfo.status.phone.Manufacturer|default }} {% endif %}

Model: {% if macinfo != false %} {{ macinfo.status.phone.Model|default }} {% endif %}

{% if macinfo != false and macinfo.status.phone.OPER|default %} {% set operatore = macinfo.status.phone.OPER|default|split(',') %}

OPER: {% if operatore|length >= 3 %} {{ operatore[2] }} {% else %} {{ macinfo.status.phone.OPER|default }} {% endif %}

{% else %}

OPER:

{% endif %}

OPER: {% if macinfo != false %} {{ macinfo.status.phone.OPER|default }} {% endif %}

Rev: {% if macinfo != false %} {{ macinfo.status.phone.Rev|default }} {% endif %}

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 %}
{% endfor %} {% endfor %} {#
{% for macchina in macchine %} {% if macchina.RemoteInfo != null and macchina.RemoteInfo != '' %} {% set macinfo = macchina.RemoteInfo|json_decode %} {% else %} {% set macinfo = false %} {% endif %}
{% if macinfo != false %}
{% endif %}
{{ '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 }}
{% if macinfo != false %}

enx00e04c360706

eth0

  • TEST-------------------1
  • {% for key,value in macinfo.status %}
  • Key : {{ key }} Value : {{ value }}
  • {% endfor %}
  • TEST-------------------2

wlan0

{% set strict_variables = true %}

wwan0

{#

GPS

{% endif %}
{% endfor%}
#}





















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