Simple Weather [Plasma 5]

Plasma 5 Weather

Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/Zren/plasma-applet-simpleweather

Featured
4
Become a Fan
7.4

Available as/for:
Description:
Needs (sudo apt install plasma-widgets-addons) if you don't already have the default KDE weather widget installed.

Plasma 6 Widget: https://www.pling.com/p/2137431/

A simple desktop weather widget based on the default KDE widget that shows the current temp, forecast, and min/max temperature.

While useful for users, this can also serve as an example widget for other developers to use as a starting point to create their own weather widget.

Layout based on: https://www.deviantart.com/speedracker/art/Simple-Weather-Conky-Manager-587605695

  • Shows Environment Canada weather warnings (can be turned off).

Last changelog:

v8 - February 13 2022

* Port to `QtQuick.Controls 2.0`, `PlasmaComponents 3.0`, and `Kirigami` config. Should work in Ubuntu 20.04 with Qt 5.12 and KDE Frameworks 5.68.
* Merge changes to weather widget from upstream KDE weather widget.
* Port missing `ServiceListModel` in Plasma 5.24 to use the `weatherDataSource.data['ions']` to get the list of weather data websites.
* Use PlasmaCore Unit/Theme singletons.
* Refactor dailyForecastModel to check if data exists.
* Update i18n scripts.
* Add Croatian translations by @VladimirMikulic (Pull Request #18 and #19)
* Add Slovenian translations by @Ugowsky (Issue #20)
* Updated Russian translations by @Morion-Self (synced from condensedweather)


Ratings & Comments

28 Comments

zayronXIO

10 Thank you for this excellent contribution, you are one of the greatest contributors to this community

abrad

Widget does not fetch weather data. It just shows a cloud with a question mark and 0 degrees, even though I have location set.

chovan

Tried this widget today and couldn't get it to work. "Error Could not load: file: file:///home/user/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/config/ConfigGeneral.qml:49 Type ConfigUnitCombox unavailable file:///home/user/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/libweather/ConfigUnitComboBox.qml:4 module "QtQuickControls" version 2.5 is not installed Here is my system info. Thanks. Operating System: Debian GNU/Linux 10 KDE Plasma Version: 5.14.5 Qt Version: 5.11.3 KDE Frameworks Version: 5.54.0 Kernel Version: 4.19.0-9-amd64 OS Type: 64-bit

Zren

Oops. I think I bumped the qtquick version trying to see if a newer version fixed an unrelated bug. It doesn't need QtQuickControls 2.5 (released with Qt 5.12). If you edit the ConfigUnitComboBox.qml file and use version 2.0 it should work after closing and reopening the config. Eg: import QtQuick 2.0 import QtQuick.Controls 2.0 as QtControls

chovan

Wow, thank you for quick reply. Did as you said and problem solved!

saidbakr

I suggest to add https://openweathermap.org as a data source to cover more areas.

trmdi

+1

suhailmalik07

+1

itsjustarumour2

9 9 excellent

baronbas

Looks great! Unfortunatly I can't get it to work, I receive the following error: "Error loading QML file: file:///home/baronbas/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/main.qml:10:2: Type WeatherData unavailable file:///home/baronbas/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/WeatherData.qml:7:1: module "org.kde.plasma.private.weather" is not installed" Any clue how to get this package, I can't find it anywhere?

Zren

You appear to not have the default weather widget installed, you need to have the kdeplasma-addons package, but it was broken up into 3-4 packages. You will need: sudo apt install plasma-widgets-addons Looks like I don't mention that in the widget's description, I'll add that now.

baronbas

Awesome! Thank you so much! :)

marqs

Hi! I can't get this to work. While trying to configure it shows me an error message "Error: Could not load: file:///home/user/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/config/ConfigGeneral.qml:119 Cannot assign to non-existent property "onCheckedChanged".

Zren

Sounds like the Kirigami API is different as I only bind to that signal in Kirigami.FormData.onCheckedChanged. What version of kirigami do you have? It's part of KDE Frameworks (I'm using 5.61.0 in Manjaro). What Linux distro are you using? Also, what version of Qt do you have?

marqs

Thanks for fast answering! I installed Kubuntu (18.04.3 LTS) three days ago with a minimal installation. I din't have Kirigami neither Qt installed. I installed newest Kirigami (qml-module-org-kde-kirigami: 1.1.0-2) and rebooted computer, but I got the same error message. Haven't tried Qt yet and I'm not sure which package I should install just for Plasmoids

Zren

You definitely have Qt installed. Just open the "Info Center" app to check. It looks like Kubuntu 18.04 only has Frameworks 5.44, and the "checked" feature was added in 5.46 which is why it's not breaking earlier and complaining about Kirigami.FormLayout which was adding in Frameworks 5.42. You can manually delete the outline control in: ~/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/config/ConfigGeneral.qml and opening the config should work. ----- Normally I would recommend installing the Kubuntu Backports, as it looks like it has the KDE Frameworks 5.47. But since you still get Plasma Desktop 5.12 with the backports there isn't much point I think. * https://zren.github.io/kde/#kubuntu-backports-ppa * https://packages.ubuntu.com/bionic/plasma-framework * plasma-framework 5.47.0-0ubuntu1~ubuntu18.04~ppa1 * https://launchpad.net/%7Ekubuntu-ppa/+archive/ubuntu/backports/+index?batch=75&direction=backwards&memo=750&start=675 * https://repology.org/project/kirigami2/versions * https://github.com/KDE/kirigami/commit/6ac4e62002ae2a30aad5b253c6bec53e89061e72 I'm using the newer "plasma config" API, so I guess it's breaking. I could upload an older version of the widget without the "outline color" feature, or... just not using that api feature... lame.

marqs

Thank you! I commented those lines and now I can access settings!

migzulk

9 9 excellent!

janet

How can I get the big temperature as shown in your screenshot? Instead I have the weather icon...

Zren

The wetter.com data source does not have the "current temp" data. It only has the current day's "forecast" data which includes the weather type, icon, and min + max temp. I already display the min/max temp, so I used today's "forecast icon". The solution is to use another data source if one is available.

janet

I see. I was just irritated because your screenshot shows the current temperature. It's also fine with the icon. Is there a way to display the min/max temperature besode the icon in bigger font size?

Zren

A configurable font size for the min/max temp and the current condition text as been added to v6.

dequire

9 +The name says it all

IkiruOG

9 +

baltolkien

I found a bug. The temperature doesn't display in wetter.com, always show 0ºC. For example in Almassora, Valencia.

Pling
0 Affiliates
Details
license GPLv2 or later
version 8
updated
added
downloads 24h 4
mediaviews 24h 0
pageviews 24h 3

More Plasma 5 Weather from Zren:

Condensed Weather [Plasma 5]
Zren
last update date: 1 year ago

Score 6.6

Daily Forecast [Plasma 5]
Zren
last update date: 1 year ago

Score 7.2

Other Plasma 5 Weather:

Weather Widget
clearmartin
last update date: 7 years ago

Score 8.7

Wunderground PWS Widget
odd-k
last update date: 1 year ago

Score 8.3

Flip Weather
driglu4it
last update date: 3 years ago

Score 8.6

weather-widget-2
blackadderkate
last update date: 1 year ago

Score 8.6

Wunderground/Weather PWS Widget Extended Version
raf-l
last update date: 3 years ago

Score 8.5

Weather asymmetric
zayronXIO
last update date: 1 year ago

Score 5.0