Skip to content

Commit

Permalink
Merge pull request #81 from notTamion/add-weather-location-env
Browse files Browse the repository at this point in the history
Add weather location env option
  • Loading branch information
amnweb authored Dec 10, 2024
2 parents 48ca061 + 1a0d247 commit 724a2f0
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 @@ -28,7 +28,7 @@ def __init__(
super().__init__((update_interval * 1000), class_name="weather-widget")
self._label_content = label
self._label_alt_content = label_alt
self._location = location
self._location = location if location != 'env' else os.getenv('YASB_WEATHER_LOCATION')
self._hide_decimal = hide_decimal
self._icons = icons
self._api_key = api_key if api_key != 'env' else os.getenv('YASB_WEATHER_API_KEY')
Expand Down

0 comments on commit 724a2f0

Please sign in to comment.