Simple Weather Featured

Plasma 5 Weather

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/Zren/plasma-applet-simpleweather

3
7 .4
Description:

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

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:

v7 - May 4 2020 6 months ago

* Add ability to change Temp units.
* Update WeatherLib.
* Fix scrollbar overlap in settings.
* Updated Spanish translation by @iyanmv (Pull Request #14)
* Updated Dutch translation by @Vistaus (Pull Request #13 + #16)

chovan

6 months ago

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

Report

C

Zren

6 months ago

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

Report

chovan

6 months ago

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

Report

saidbakr

1 year ago

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

Report

suhailmalik07

6 months ago

+1

Report

trmdi

6 months ago

+1

Report

9

itsjustarumour2

1 year ago

9 9 excellent

Report

baronbas

1 year ago

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?

Report

C

Zren

1 year ago

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.

Report

baronbas

1 year ago

Awesome! Thank you so much! :)

Report

marqs

1 year ago

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".

Report

C

Zren

1 year ago

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?

Report

marqs

1 year ago

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

Report

C

Zren

1 year ago

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.

Report

marqs

1 year ago

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

Report

9

migzulk

1 year ago

9 9 excellent!

Report

janet

1 year ago

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

Report

C

Zren

1 year ago

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.

Report

janet

1 year ago

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?

Report

C

Zren

1 year ago

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

Report

9

dequire

1 year ago

9 +The name says it all

Report

9

IkiruOG

1 year ago

9 +

Report

9

baltolkien

1 year ago

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

Report

C

Zren

1 year ago

Plasma's wetter.com data source either does not parse the current temperature from the API, or the API does not provide it. That is why this widget will instead show the current weather icon instead of the current temp.

https://github.com/KDE/plasma-workspace/blob/master/dataengines/weather/ions/wetter.com/ion_wettercom.cpp

Report

9

baltolkien

1 year ago

9 +1

Report

v7 - May 4 2020 6 months ago

* Add ability to change Temp units.
* Update WeatherLib.
* Fix scrollbar overlap in settings.
* Updated Spanish translation by @iyanmv (Pull Request #14)
* Updated Dutch translation by @Vistaus (Pull Request #13 + #16)

v6 - July 24 2019 1 year ago

* Configurable Min/Max Temp & Conditions Font Size (Issue #8)
* Use Software Rendering with text larger than 300px (Issue #9)
* Add the ability to change the text color or show a text outline (Issue #11)

v5 - May 25 2019 1 year ago

* Center align the current temp/icon when thinner than the forecast text
* Round current temp to an integer (only envcan needed it).
* Show the weather source's credits text and link.
* Brazillian Portegeus translations by @herzenschein (Pull Request #7)

v4 - February 27 2019 1 year ago

* Show weather warnings (envcan only).
* Remove whitespace between min/max temp and current temp.
* Don't round weather icon to fixed sizes when medium/small.
* Updated Dutch translation (Pull Request #6)

v3 - February 2 2019 1 year ago

* Fixed compatibility with openSUSE Leap with Plasma 5.12 / KDE Frameworks 5.45 / Kirigami 2.4 (Issue #2) and wetter not displaying an icon (Issue #4).
* Fix widget min size when config button is shown.
* Fix min/max temp labels being 200px wide when empty (Eg: env canada).

v2 - January 30 2019 1 year ago

* Hide the min/max temp label if it's not populated (Eg: Env Canada).
* Show an icon in place of the current temp when it's not populated (Eg: Wetter).
* Added Dutch translation (Pull Request #1)
* Fix selecting the default font after changing to another font.

v1 - January 29 2019 1 year ago

* Implement a simple text weather forecast with min/max/current temps.

12345678910
6
product-maker itsjustarumour2 Nov 08 2019 9 excellent
9 excellent
product-maker migzulk May 26 2019 9 excellent
9 excellent!
product-maker dequire Mar 03 2019 9 excellent
+The name says it all
product-maker IkiruOG Feb 03 2019 9 excellent
+
product-maker baltolkien Jan 30 2019 9 excellent
+1
product-maker l4k1 Jan 30 2019 9 excellent
+
Be the first to comment
csaratakij
Jun 08 2020
janet
Apr 26 2019
s3l3ctr
Apr 02 2019
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
GPLv2 or later
version
7
updated May 04 2020
added Jan 29 2019
downloads 24h
139
mediaviews 24h 0
pageviews 24h 29