|
@@ -2,39 +2,54 @@
|
|
|
<br />
|
|
|
<div class="box-body">
|
|
|
<div class="col-sm-3">
|
|
|
- {% include '@Stats/Stats/Template/onu_info.html.twig' %}
|
|
|
+ {% include '@Stats/Stats/Template/onu_info_1.html.twig' %}
|
|
|
</div>
|
|
|
<div class="col-sm-4">
|
|
|
- {% include '@Stats/Stats/Template/olt_info.html.twig' %}
|
|
|
+ {% include '@Stats/Stats/Template/onu_info_2.html.twig' %}
|
|
|
</div>
|
|
|
<div class="col-sm-5">
|
|
|
{% include '@Stats/Stats/Template/onu_location.html.twig' %}
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="box-body">
|
|
|
- <div class="col-sm-6"></div>
|
|
|
- <div class="col-sm-6"></div>
|
|
|
+ <div class="col-sm-9" style="text-align:center">
|
|
|
+ <div id="onu_bandwidth" style="height: 400px;"></div>
|
|
|
+ <span class="no_defined nas_data_origen">{{ 'nas_data_origen'|trans({}, 'StatsBundle') }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-3">
|
|
|
+ {% include '@Stats/Stats/Template/onu_bandwidth_info.html.twig' %}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="box-body">
|
|
|
+ <div class="col-sm-9" style="text-align:center">
|
|
|
+ <div id="onu_consumption" style="height: 400px;"></div>
|
|
|
+ <span class="no_defined nas_data_origen">{{ 'nas_data_origen'|trans({}, 'StatsBundle') }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-3">
|
|
|
+ {% include '@Stats/Stats/Template/onu_consumption_info.html.twig' %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="col-md-12">
|
|
|
- <div id="olt_onu_bandwidth" style="height: 400px;"></div>
|
|
|
-
|
|
|
- <div id="olt_onu_rf" style="height: 400px;"></div>
|
|
|
+
|
|
|
+ <div id="onu_rf" style="height: 400px;"></div>
|
|
|
|
|
|
<div class="clearfix" style="width: 100%; background-color:white; padding:0 5px">
|
|
|
- <div id="olt_onu_voltage" style="height: 400px; float: left; width:49%"></div>
|
|
|
- <div id="olt_onu_temperature" style="height: 400px; float: right; width:49%"></div>
|
|
|
+ <div id="onu_voltage" style="height: 400px; float: left; width:49%"></div>
|
|
|
+ <div id="onu_temperature" style="height: 400px; float: right; width:49%"></div>
|
|
|
</div>
|
|
|
|
|
|
- <div id="olt_onu_status" style="height: 400px;"></div>
|
|
|
+ <div id="onu_status" style="height: 400px;"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
-Highcharts.chart('olt_onu_bandwidth', {
|
|
|
+Highcharts.chart('onu_bandwidth', {
|
|
|
chart: {type: 'spline'},
|
|
|
title: {text: 'Bandwidth ONU'},
|
|
|
subtitle: {text: 'IN Bandwidth / OUT Bandwidth'},
|
|
@@ -43,17 +58,46 @@ Highcharts.chart('olt_onu_bandwidth', {
|
|
|
tooltip: {formatter: bandwidthTooltip},
|
|
|
plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
series: [{
|
|
|
+ name: "IN Bandwidth",
|
|
|
+ data: {{series['in_bandwidth']['data']|json_encode}},
|
|
|
+ color: '#3f6833'
|
|
|
+ },{
|
|
|
name: "OUT Bandwidth",
|
|
|
data: {{series['out_bandwidth']['data']|json_encode}},
|
|
|
color: '#e24d42'
|
|
|
- },{
|
|
|
- name: "IN Bandwidth",
|
|
|
- data: {{series['in_bandwidth']['data']|json_encode}},
|
|
|
+ }],
|
|
|
+ lang: {
|
|
|
+ noData: "Nichts zu anzeigen"
|
|
|
+ },
|
|
|
+ noData: {
|
|
|
+ style: {
|
|
|
+ fontWeight: 'bold',
|
|
|
+ fontSize: '15px',
|
|
|
+ color: '#303030'
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+Highcharts.chart('onu_consumption', {
|
|
|
+ chart: {type: 'area'},
|
|
|
+ title: {text: 'Consumption ONU'},
|
|
|
+ subtitle: {text: 'IN Consumption / OUT Consumption'},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ yAxis: {labels: {formatter: consumptionAxisLabel,align: 'left'},min: 0},
|
|
|
+ tooltip: {formatter: consumptionTooltip},
|
|
|
+ plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ series: [{
|
|
|
+ name: "IN Consumption",
|
|
|
+ data: {{series['in_consumption']['data']|json_encode}},
|
|
|
color: '#3f6833'
|
|
|
+ },{
|
|
|
+ name: "OUT Consumption",
|
|
|
+ data: {{series['out_consumption']['data']|json_encode}},
|
|
|
+ color: '#e24d42'
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
-Highcharts.chart('olt_onu_rf', {
|
|
|
+Highcharts.chart('onu_rf', {
|
|
|
chart: {type: 'area'},
|
|
|
title: {text: 'Radio Frequency'},
|
|
|
subtitle: {text: 'TX /RX Power'},
|
|
@@ -74,14 +118,15 @@ Highcharts.chart('olt_onu_rf', {
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
-Highcharts.chart('olt_onu_voltage', {
|
|
|
+Highcharts.chart('onu_voltage', {
|
|
|
chart: {type: 'area'},
|
|
|
title: {text: 'Voltage'},
|
|
|
- subtitle: {text: 'Voltage'},
|
|
|
+ subtitle: {},
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {format: '{value} V'},min: 0},
|
|
|
tooltip: {valueSuffix: ' V',valueDecimals: 2},
|
|
|
plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ legend: {enabled: false},
|
|
|
series: [{
|
|
|
name: "Voltage",
|
|
|
data: {{series['voltage']['data']|json_encode}},
|
|
@@ -90,14 +135,15 @@ Highcharts.chart('olt_onu_voltage', {
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
-Highcharts.chart('olt_onu_temperature', {
|
|
|
+Highcharts.chart('onu_temperature', {
|
|
|
chart: {type: 'area'},
|
|
|
title: {text: 'Temperature'},
|
|
|
- subtitle: {text: 'Temperature'},
|
|
|
+ subtitle: {},
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {format: '{value} ºC'},min: 0},
|
|
|
tooltip: {valueSuffix: ' ºC',valueDecimals: 2},
|
|
|
plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ legend: {enabled: false},
|
|
|
series: [{
|
|
|
name: "Temperature",
|
|
|
data: {{series['temperature']['data']|json_encode}},
|
|
@@ -106,7 +152,7 @@ Highcharts.chart('olt_onu_temperature', {
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
-Highcharts.chart('olt_onu_status', {
|
|
|
+Highcharts.chart('onu_status', {
|
|
|
chart: {type: 'area'},
|
|
|
title: {text: 'Estatus'},
|
|
|
subtitle: {text: 'Online / Offline'},
|
|
@@ -114,8 +160,10 @@ Highcharts.chart('olt_onu_status', {
|
|
|
yAxis: { categories: ['Offline', 'Online'], min: 0,stackLabels: {enabled: true,style: {fontWeight: 'bold',color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'}}},
|
|
|
tooltip: {formatter: onuStatusTooltip},
|
|
|
plotOptions: {column: {stacking: 'normal',dataLabels: {enabled: true,color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'}}},
|
|
|
+ legend: {enabled: false},
|
|
|
series: [{
|
|
|
name: 'Status',
|
|
|
+ step: 'right',
|
|
|
data: {{series['status']['data']|json_encode}},
|
|
|
color: '#3f6833'
|
|
|
}]
|