diff --git a/static/js/sensor-1.js b/static/js/sensor-1.js index c1fc0cc..1aa31ef 100644 --- a/static/js/sensor-1.js +++ b/static/js/sensor-1.js @@ -27,7 +27,7 @@ document.addEventListener('DOMContentLoaded', function () { // 添加新的数据 timestamps.push(data.timestamps); - temperatures.push(data.temperatures); + temperatures.push(data.temperature); updateChart(); });