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

Fixed #38 - HourlyWeatherForecast: show weather condition name on icon hover

parent 7dcb471a
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@
{% for item in data %}
<div class="entry">
<div class="hour">{{ item['hour'] }} Uhr</div>
<i class="wi {{ item['icon'] }} icon" style="color: {{ item['iconColor'] }};"></i>
<i class="wi {{ item['icon'] }} icon" style="color: {{ item['iconColor'] }};" title="{{ item['description'] }}"></i>
<div class="temperature" style="color: {{ item['temperatureColor'] }}">{{ item['temperature'] }}&deg;C</div>
<div class="rain">
<i class="wi wi-raindrops"></i>
......
......@@ -59,7 +59,8 @@ class HourlyForecastTile(Tile):
'windSpeed': f'{Helpers.round_to_decimals(windSpeed, 0)} km/h',
'windSpeedColor': Helpers.determine_color_for_wind(windSpeed),
'rainProbability': f'{Helpers.round_to_decimals(rainProbability, 0)} %',
'isDayTime': isDayTime
'isDayTime': isDayTime,
'description': entry['weather'][0]['description']
})
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment