Remove hardcoded API key from WeatherManager.js #2

Closed
opened 2026-02-15 04:56:14 -08:00 by kyle · 0 comments
Owner

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:

**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:** -
kyle closed this issue 2026-02-15 05:05:25 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kyle/SignageHTML#2