modified: static/js/sensor-1.js
This commit is contained in:
parent
06ebbb70f8
commit
142e6ac2db
@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
|
||||
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(data => {
|
||||
// 如果已有200个数据则移除最旧的一条
|
||||
|
Loading…
Reference in New Issue
Block a user