Added interface status

This commit is contained in:
2025-02-07 21:28:54 -05:00
parent d791312579
commit 4318dcd0d2
3 changed files with 35 additions and 0 deletions

View File

@ -19,6 +19,17 @@ function updateDeviceStatus() {
.catch(error => console.error('Error updating status:', error));
}
function updateSystemMetrics() {
fetch('/api/metrics')
.then(response => response.json())
.then(data => {
updateInterfaceStatus(data.interfaces);
updatePowerMetrics(data.power);
updateSystemHealth(data.health);
});
}
//Metric updates like interfaces, power, and health
function updateDiagnostics() {
fetch('/api/diagnostics')
.then(response => response.json())