Use lat/lon from CONFIG.location; hide debug panel when debug=0; remove street address
This commit is contained in:
1 parent
518988251c
commit
9dd76ebd9e
2 files changed
+17
-3
No files matched your search
@@ -66,7 +66,13 @@ window.CONFIG = {
|
|||||||
theme: 'ash',
|
theme: 'ash',
|
||||||
units: 'metric',
|
units: 'metric',
|
||||||
language: 'de',
|
language: 'de',
|
||||||
timeFormat: 'DD. MMMM, YYYY \t HH:mm:SS'
|
timeFormat: 'DD. MMMM, YYYY ‒ HH:mm:SS',
|
||||||
|
location: {
|
||||||
|
// Latitude and longitude for sun/moon calculations
|
||||||
|
// Default: Passau, Germany
|
||||||
|
lat: 48.5667,
|
||||||
|
lon: 13.4319
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// List of available themes. The key is the theme id (used in config.theme),
|
// List of available themes. The key is the theme id (used in config.theme),
|
||||||
|
|||||||
+10
-2
@@ -156,6 +156,9 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#debug-panel.disabled {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
#info-panel {
|
#info-panel {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 2vh;
|
top: 2vh;
|
||||||
@@ -497,8 +500,8 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
|
|||||||
|
|
||||||
var CYCLE = 20000;
|
var CYCLE = 20000;
|
||||||
|
|
||||||
var PASSAU_LAT = 48.5667;
|
var PASSAU_LAT = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lat) || 48.5667;
|
||||||
var PASSAU_LON = 13.4319;
|
var PASSAU_LON = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lon) || 13.4319;
|
||||||
|
|
||||||
var realDayProgress = 0;
|
var realDayProgress = 0;
|
||||||
|
|
||||||
@@ -1811,6 +1814,11 @@ window.weatherThemes = {
|
|||||||
// Update weather every 15 minutes
|
// Update weather every 15 minutes
|
||||||
applyI18n();
|
applyI18n();
|
||||||
populateDebugSelects();
|
populateDebugSelects();
|
||||||
|
// Apply debug flag from CONFIG
|
||||||
|
var debugEl = document.getElementById('debug-panel');
|
||||||
|
if (debugEl && !(window.CONFIG && window.CONFIG.debug)) {
|
||||||
|
debugEl.style.display = 'none';
|
||||||
|
}
|
||||||
animate();
|
animate();
|
||||||
tick();
|
tick();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user