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)
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
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
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?
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.
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".
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?
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
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.
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.
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?
Ratings & Comments
28 Comments
10 Thank you for this excellent contribution, you are one of the greatest contributors to this community
Widget does not fetch weather data. It just shows a cloud with a question mark and 0 degrees, even though I have location set.
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
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
Wow, thank you for quick reply. Did as you said and problem solved!
I suggest to add https://openweathermap.org as a data source to cover more areas.
+1
+1
9 9 excellent
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?
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.
Awesome! Thank you so much! :)
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".
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?
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
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.
Thank you! I commented those lines and now I can access settings!
9 9 excellent!
How can I get the big temperature as shown in your screenshot? Instead I have the weather icon...
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.
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?
A configurable font size for the min/max temp and the current condition text as been added to v6.
9 +The name says it all
9 +
I found a bug. The temperature doesn't display in wetter.com, always show 0ºC. For example in Almassora, Valencia.