modified: static/js/sensor-1.js

This commit is contained in:
IrisVega 2024-07-20 16:57:02 +08:00
parent 06ebbb70f8
commit 142e6ac2db
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', function () {
} }
function fetchLatestData() { function fetchLatestData() {
fetch('http://111.230.197.156:8000/get_latest_data') fetch('http://111.230.197.156:8000/get_latest_sensor_data')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
// 如果已有200个数据则移除最旧的一条 // 如果已有200个数据则移除最旧的一条