ConnectionTest im Backend funktioniert jetzt

This commit is contained in:
2025-08-07 14:34:00 +02:00
parent 573661825b
commit ad893b48a7
21 changed files with 580 additions and 109 deletions

View File

@@ -283,7 +283,17 @@ onMounted(() => {
}
fetchImages();
fetchInterval = setInterval(fetchImages, 5000);
// Fetch image refresh interval from API
axios.get('/api/image-refresh-interval')
.then(response => {
const interval = response.data.interval * 1000;
fetchInterval = setInterval(fetchImages, interval);
})
.catch(error => {
console.error('Error fetching image refresh interval:', error);
fetchInterval = setInterval(fetchImages, 5000); // Fallback to 5 seconds
});
});
onUnmounted(() => {