Skip to content
Snippets Groups Projects
Commit cf179852 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #43 - CurrentWeatherTile: show weather condition name on icon hover

parent 3cbb5f8e
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
{% set iconPrefix = 'wi-owm-night-' %} {% set iconPrefix = 'wi-owm-night-' %}
{% endif %} {% endif %}
<i class="wi {{ iconPrefix }}{{ data['icon'] }} icon" style="color: {{ data['iconColor'] }};"></i> <i class="wi {{ iconPrefix }}{{ data['icon'] }} icon" title="{{ data['description'] }}" style="color: {{ data['iconColor'] }};"></i>
<div class="entries"> <div class="entries">
<div class="temperatures"> <div class="temperatures">
<div class="temperature-entry"> <div class="temperature-entry">
......
...@@ -49,7 +49,8 @@ class CurrentWeatherTile(Tile): ...@@ -49,7 +49,8 @@ class CurrentWeatherTile(Tile):
'windDegrees': currentWeather['wind_deg'], 'windDegrees': currentWeather['wind_deg'],
'windSpeed': f'{Helpers.round_to_decimals(windSpeed, 1)} km/h', 'windSpeed': f'{Helpers.round_to_decimals(windSpeed, 1)} km/h',
'windSpeedColor': Helpers.determine_color_for_wind(windSpeed), 'windSpeedColor': Helpers.determine_color_for_wind(windSpeed),
'isDayTime': isDayTime 'isDayTime': isDayTime,
'description': currentWeather['weather'][0]['description']
} }
def render(self, data: Dict) -> str: def render(self, data: Dict) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment