diff --git a/diagnostic/index.html b/diagnostic/index.html
index 7bc82ce..3905857 100644
--- a/diagnostic/index.html
+++ b/diagnostic/index.html
@@ -278,6 +278,10 @@
TTS-Text einblenden
+
@@ -1004,7 +1008,7 @@
if (sender === 'aria') return;
const chatType = 'sent';
const label = sender === 'stt' ? '\uD83C\uDFA4 Spracheingabe' : `via RVS (${sender})`;
- addChat(chatType, p.text || '?', label);
+ addChat(chatType, p.text || '?', label, { location: p.location });
return;
}
if (msg.type === 'proxy_result') {
@@ -1395,6 +1399,16 @@
if (el) el.checked = showTtsDebug;
}
+ // Debug-Toggle: GPS-Position unter User-Nachrichten einblenden (nur Diagnostic).
+ // App zeigt's bewusst nicht — die Position geht nur an aria-core.
+ let showGpsDebug = localStorage.getItem('aria-show-gps-debug') === '1';
+ function toggleGpsDebug() {
+ showGpsDebug = !showGpsDebug;
+ localStorage.setItem('aria-show-gps-debug', showGpsDebug ? '1' : '0');
+ const el = document.getElementById('gps-debug-toggle');
+ if (el) el.checked = showGpsDebug;
+ }
+
// Minimal-JS-Port von clean_text_for_tts() (Bridge) — reine Anzeige
function previewTtsText(text) {
if (!text) return '';
@@ -1434,7 +1448,18 @@
ttsBlock = `
TTS: ${escapeHtml(ttsText)}
`;
}
}
- const html = `${linked}${ttsBlock}${escapeHtml(meta)} — ${new Date().toLocaleTimeString('de-DE')}
`;
+ // Optional: GPS-Position als Block unter User-Nachrichten (nur Diagnostic)
+ let gpsBlock = '';
+ if (showGpsDebug && options && options.location) {
+ const loc = options.location;
+ const lat = typeof loc.lat === 'number' ? loc.lat.toFixed(6) : '?';
+ const lon = typeof loc.lon === 'number' ? loc.lon.toFixed(6) : (typeof loc.lng === 'number' ? loc.lng.toFixed(6) : '?');
+ if (lat !== '?' && lon !== '?') {
+ const mapLink = `https://www.openstreetmap.org/?mlat=${lat}&mlon=${lon}#map=16/${lat}/${lon}`;
+ gpsBlock = ``;
+ }
+ }
+ const html = `${linked}${ttsBlock}${gpsBlock}${escapeHtml(meta)} — ${new Date().toLocaleTimeString('de-DE')}
`;
// Thinking-Indikator ausblenden bei neuer Nachricht
updateThinkingIndicator({ activity: 'idle' });
@@ -2451,6 +2476,8 @@
// Toggle-Checkbox initial korrekt setzen
const ttsToggleEl = document.getElementById('tts-debug-toggle');
if (ttsToggleEl) ttsToggleEl.checked = showTtsDebug;
+ const gpsToggleEl = document.getElementById('gps-debug-toggle');
+ if (gpsToggleEl) gpsToggleEl.checked = showGpsDebug;
// Disk-Space Banner aktualisieren (wird vom Server via disk_status gepusht)
function updateDiskBanner(status) {