fix:修改解析函数

This commit is contained in:
fengyarnom 2025-05-16 14:52:31 +08:00
parent dae8e5eca7
commit 526e05199f

View File

@ -363,7 +363,7 @@
document.getElementById('latest-wind-direction').textContent = data.wind_direction_360;
document.getElementById('latest-atm-pressure').textContent = data.atm_pressure.toFixed(1);
document.getElementById('latest-solar-radiation').textContent = data.solar_radiation;
document.getElementById('latest-rainfall').textContent = data.rainfall;
document.getElementById('latest-rainfall').textContent = data.rainfall.toFixed(1);
})
.catch(error => {
console.error('获取最新传感器数据失败:', error);