applets/weather: hourly forecast support and redesign

Hourly forecast support

The following ions support hourly forecasts:

  1. envcan (Environment Canada)
  2. noaa (National Oceanic and Atmospheric Administration)
  3. dwd (Deutscher Wetterdienst)
  4. wetter.com

Ions that don't support hourly forecast:

  1. bbcukmet (BBC Weather) - don't provide api to receive hourly forecast

To properly show the hourly forecast icons from environment canada !1082 (merged) is needed

Also libplasma!1566 (merged) is needed

Forecast view

When hourly and day forecasts are available, the applet uses one of two layouts depending on the available space.

Tabbed view

The hourly and day forecasts are displayed in separate tabs when there is not enough space to fit both forecasts on the same page.

main_screenshot_tabbed_view_1 main_screenshot_tabbed_view_2 main_screenshot_tabbed_view_3 main_screenshot_tabbed_view_4

Stacked View

When there is enough space, the hourly and day forecasts are displayed together on the same page.

main_screenshot_stacked_view_1 main_screenshot_stacked_view_2 main_screenshot_stacked_view_3 main_screenshot_stacked_view_4

Without hourly forecast

When the selected ion does not provide hourly forecast data, only the day forecast is displayed.

main_screenshot_day_only_1 main_screenshot_day_only_2

Interactive graphs

Add interactive graphs for the hourly and day forecasts. The graphs can be inspected by hovering over the forecast points to display the corresponding values.

By default, only the hourly forecast graph is enabled.

Forecast view choosing

Users can enable or graph or cards for both hourly and day forecasts.

Edited by Bohdan Onofriichuk

Merge request reports

Loading
Loading