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

2
Score 74.0%
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).



If you'd like to play around with the CurrentWeatherView, edit the files in:
~/.local/share/plasma/plasmoids/com.github.zren.simpleweather/contents/ui/

To test, use:
plasmawindowed com.github.zren.simpleweather

If you wish to upload a fork to the KDE Store, please make sure to edit X-KDE-PluginInfo-Name in metadata.desktop beforehand. Follow the instructions in the tutorial below:
https://zren.github.io/kde/docs/widget/
Last changelog:

v6 - July 24 2019 4 months 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)

saidbakr

19 days ago

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

Report

9

itsjustarumour2

1 month ago

9 9 excellent

Report

baronbas

1 month 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 month 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 month ago

Awesome! Thank you so much! :)

Report

marqs

2 months 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

2 months 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

2 months 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

2 months 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

2 months ago

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

Report

9

migzulk

6 months ago

9 9 excellent!

Report

janet

6 months ago

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

Report

C

Zren

6 months 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

6 months 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

4 months ago

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

Report

9

dequire

9 months ago

9 +The name says it all

Report

9

IkiruOG

10 months ago

9 +

Report

9

baltolkien

10 months 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

10 months 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

10 months ago

9 +1

Report

S1 9

l4k1

10 months ago

9 +

Report

v6 - July 24 2019 4 months 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 6 months 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 9 months 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 10 months 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 10 months 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 10 months 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
+
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
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
6
updated Jul 24 2019
added Jan 29 2019
downloads 24h
62
mediaviews 24h 0
pageviews 24h 21