Use lat/lon from CONFIG.location; hide debug panel when debug=0; remove street address

This commit is contained in:
Richard Zink committed 2026-10-07 14:22:02 +02:00
1 parent 518988251c
commit 9dd76ebd9e
2 files changed
+17 -3

No files matched your search

+10 -2
View File
@@ -156,6 +156,9 @@
display: none;
}
}
#debug-panel.disabled {
display: none !important;
}
#info-panel {
position: fixed;
top: 2vh;
@@ -497,8 +500,8 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
var CYCLE = 20000;
var PASSAU_LAT = 48.5667;
var PASSAU_LON = 13.4319;
var PASSAU_LAT = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lat) || 48.5667;
var PASSAU_LON = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lon) || 13.4319;
var realDayProgress = 0;
@@ -1811,6 +1814,11 @@ window.weatherThemes = {
// Update weather every 15 minutes
applyI18n();
populateDebugSelects();
// Apply debug flag from CONFIG
var debugEl = document.getElementById('debug-panel');
if (debugEl && !(window.CONFIG && window.CONFIG.debug)) {
debugEl.style.display = 'none';
}
animate();
tick();