Skip to content

Commit

Permalink
fix(weather): correct environment variable name for weather API key
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Dec 2, 2024
1 parent e428879 commit c1ce9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/widgets/yasb/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(
self._location = location
self._hide_decimal = hide_decimal
self._icons = icons
self._api_key = api_key if api_key != 'env' else os.getenv('YASB_WEATHER_API')
self._api_key = api_key if api_key != 'env' else os.getenv('YASB_WEATHER_API_KEY')
self.api_url = f"http://api.weatherapi.com/v1/forecast.json?key={self._api_key}&q={urllib.parse.quote(self._location)}&days=1&aqi=no&alerts=no"
print(self.api_url)
# Store weather data
Expand Down

0 comments on commit c1ce9ca

Please sign in to comment.