UI verbessern 2

This commit is contained in:
chk
2026-06-14 18:38:33 +02:00
parent c23fbf75f2
commit fc4d2b3c84
4 changed files with 98 additions and 22 deletions

View File

@@ -839,7 +839,13 @@ app.get('/api/homing/run-data', async (req, res) => {
} catch {}
}
return res.json({ runDir: runName, images, finalState });
// aruco_marker_poses.csv für Snapshot-CSV-Tabelle
let csvContent = null;
try {
csvContent = await fsPromises.readFile(path.join(runDir, 'aruco_marker_poses.csv'), 'utf8');
} catch {}
return res.json({ runDir: runName, images, finalState, csvContent });
} catch (err) {
return res.status(500).json({ error: String(err) });
}