Remove hardcoded API key from WeatherManager.js #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: OpenWeatherMap API key was hardcoded as a fallback in WeatherManager.js, posing a security risk if the code is shared or pushed to a public repo.
Solution: Removed the hardcoded fallback key. Added a visible warning UI when no API key is configured, guiding the user to set it via file. Falls back to calculated sun times if weather API is unavailable.
Files changed: