713
| <![CDATA[<script defer>
function dc00() {
var levelHumidity = document.querySelector('.dci #humidity-value');
levelHumidity.innerHTML = "95,0";
var rectLevelHumidity = document.querySelector('.dci #humidity-level');
rectLevelHumidity.setAttribute('height', ((95 * 283) / 100));
rectLevelHumidity.setAttribute('y', (283 - ((95 * 283) / 100) + 25));
var temperatureLevel = document.querySelector('.dci .temperature #termometro-level');
temperatureLevel.setAttribute('height', (21.1667 * 260) / 40);
temperatureLevel.setAttribute('y', (260 - ((21.1667 * 260) / 40)) + 10);
var temperatureLevelValue = document.querySelector('.dci .temperature .temperature-value');
temperatureLevelValue.innerHTML = "21,2 °C";
var canvasBarometro = document.getElementById('dc00-barometro');
var chart = new Chart(canvasBarometro, {
type: 'line',
data: {
labels: [
'23/09/2023 01:40:00', '23/09/2023 01:30:00', '23/09/2023 01:20:00', '23/09/2023 01:10:00', '23/09/2023 01:00:00', '23/09/2023 00:50:00', '23/09/2023 00:40:00', '23/09/2023 00:30:00', '23/09/2023 00:20:00', '23/09/2023 00:10:00', '23/09/2023 00:00:00', '22/09/2023 23:50:00', '22/09/2023 23:40:00', '22/09/2023 23:30:00', '22/09/2023 23:20:00', '22/09/2023 23:10:00', '22/09/2023 23:00:00', '22/09/2023 22:50:00', '22/09/2023 22:40:00', '22/09/2023 22:30:00', '22/09/2023 22:20:00', '22/09/2023 22:10:00', '22/09/2023 22:00:00', '22/09/2023 21:50:00', '22/09/2023 21:40:00', '22/09/2023 21:30:00', '22/09/2023 21:20:00', '22/09/2023 21:10:00', '22/09/2023 21:00:00', '22/09/2023 20:50:00', '22/09/2023 20:40:00', '22/09/2023 20:30:00', '22/09/2023 20:20:00', '22/09/2023 20:10:00', '22/09/2023 20:00:00', '22/09/2023 19:50:00', '22/09/2023 19:40:00', '22/09/2023 19:30:00', '22/09/2023 19:20:00', '22/09/2023 19:10:00', ],
datasets: [
{
label: 'Barômetro (hpa)',
data: [
1012.91, 1012.97, 1013.14, 1013.24, 1013.01, 1013.14, 1013.21, 1013.58, 1013.35, 1013.41, 1013.68, 1013.38, 1013.75, 1013.75, 1013.45, 1013.62, 1013.89, 1013.38, 1013.35, 1013.11, 1013.24, 1012.87, 1013.01, 1013.01, 1013.11, 1013.41, 1013.48, 1013.45, 1013.62, 1013.79, 1013.52, 1013.68, 1014.13, 1013.89, 1013.72, 1013.52, 1013.24, 1013.52, 1013.01, 1013.18, ],
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: false,
},
]
},
options: {
legend: {
display: false,
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
display: false,
beginAtZero: true,
suggestedMax: 3000,
},
}
],
xAxes: [
{
ticks: {
display: false,
}
}
],
}
},
});
}
function dc13() {
var levelHumidity = document.querySelector('.uni #humidity-value');
levelHumidity.innerHTML = "94,0";
var rectLevelHumidity = document.querySelector('.uni #humidity-level');
rectLevelHumidity.setAttribute('height', ((94 * 283) / 100));
rectLevelHumidity.setAttribute('y', (283 - ((94 * 283) / 100) + 25));
var temperatureLevel = document.querySelector('.uni .temperature #termometro-level');
temperatureLevel.setAttribute('height', (22.1 * 260) / 40);
temperatureLevel.setAttribute('y', (260 - ((22.1 * 260) / 40)) + 10);
var temperatureLevelValue = document.querySelector('.uni .temperature .temperature-value');
temperatureLevelValue.innerHTML = "22,1 °C";
var canvasBarometro = document.getElementById('dc13-barometro');
var chart = new Chart(canvasBarometro, {
type: 'line',
data: {
labels: [
'23/09/2023 01:53:11', '23/09/2023 01:43:11', '23/09/2023 01:33:11', '23/09/2023 01:23:11', '23/09/2023 01:13:10', '23/09/2023 01:03:10', '23/09/2023 00:53:10', '23/09/2023 00:43:11', '23/09/2023 00:33:10', '23/09/2023 00:23:11', '23/09/2023 00:13:12', '23/09/2023 00:03:10', '22/09/2023 23:53:10', '22/09/2023 23:43:10', '22/09/2023 23:33:10', '22/09/2023 23:23:12', '22/09/2023 23:13:11', '22/09/2023 23:03:10', '22/09/2023 22:53:11', '22/09/2023 22:43:10', '22/09/2023 22:33:10', '22/09/2023 22:23:10', '22/09/2023 22:13:10', '22/09/2023 22:03:10', '22/09/2023 21:53:10', '22/09/2023 21:43:10', '22/09/2023 21:33:10', '22/09/2023 21:23:11', '22/09/2023 21:13:10', '22/09/2023 21:03:11', '22/09/2023 20:53:11', '22/09/2023 20:43:11', '22/09/2023 20:33:12', '22/09/2023 20:23:10', '22/09/2023 20:13:11', '22/09/2023 20:03:10', '22/09/2023 19:53:10', '22/09/2023 19:43:11', '22/09/2023 19:33:11', '22/09/2023 19:23:10', ],
datasets: [
{
label: 'Barômetro (hpa)',
data: [
1008.5, 1008.7, 1008.8, 1009, 1009.1, 1009, 1009, 1009.6, 1009.6, 1008.6, 1008.7, 1008.6, 1008.9, 1009.1, 1009.4, 1009.9, 1009.8, 1009.8, 1009.7, 1009.4, 1009.6, 1010.1, 1010.4, 1010.7, 1011, 1010.9, 1011, 1010.8, 1010.7, 1010.6, 1010.6, 1010.7, 1010.5, 1010.6, 1010, 1009.7, 1009.8, 1010, 1010.1, 1010.1, ],
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: false,
},
]
},
options: {
legend: {
display: false,
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
display: false,
beginAtZero: true,
suggestedMax: 3000,
},
}
],
xAxes: [
{
ticks: {
display: false,
}
}
],
}
},
});
}
window.addEventListener("load", function(event) {
dc00();
dc13();
});
</script>]]>
|