Page 1 of 1
HOW-TO: Using KDE Weather Widget
Posted: Mon Jun 28, 2021 11:31 am
by davemx
Weather Widget is a KDE Plasmoid that needs to be added from the KDE Store. I really like it, but it has a bug, that is easily worked around.
When you right-click on the widget, and select "Configure Weather Widget", you're prompted to add information from one of two sites. One is "OWM" — Open Weather Map. That works just fine. The other is "yr.no". This is the official Norwegian weather site, and is very good indeed, for weather all around the world. In order to get your weather in English, you need to go to the English Language version of the site, which is:
https://www.yr.no/en
Once there, click on Search, near the top right of the page, to find the weather for your area. This is where you have to work around the fault in the program. Instead of copying the full URL of the page for your area, you have to change it. So, for example, the URL for the forecast for Manchester, England, is:
https://www.yr.no/ en/forecast/daily-table/2-2643123/United%20Kingdom/England/Manchester/Manchester
However, if you paste that address into the settings for the widget, it doesn't work. You have to substitute the following:
https://www.yr.no/ place/United%20Kingdom/England/Manchester/Manchester
(I put the space in to prevent the forum from hiding the full URL addresses.)
In other words, remove the part
en/forecast/daily-table/1-2345678 (the numeric part will depend on your area), and substitute simply
place. This will now work.
The other thing is that you need to have two packages installed before it will work, and one is not installed by default on MX-KDE. That's
qml-module-qtquick-xmllistmodel, but unless you actually go to the page, as opposed to download the plasmoid direct from the
Add Widgets side bar, you won't be told that!
Re: HOW-TO: Using KDE Weather Widget
Posted: Tue Aug 24, 2021 11:00 am
by davemx
UPDATE 24/08/2021: The yr.no/en URL now shows as Great%20Britain instead of United%20Kingdom — however, you have to change what you paste into the widget settings to United%20Kingdom otherwise it won't work! So, for example, change:
https://www.yr.no/ en/forecast/daily-table/2-2643123/Great%20Britain/England/Manchester/Manchester
to:
https://www.yr.no/ place/United%20Kingdom/England/Manchester/Manchester
I don't know if users in other countries are affected by anything similar!
Re: HOW-TO: Using KDE Weather Widget
Posted: Tue Sep 07, 2021 12:19 pm
by davemx
I'm not deliberately bouncing my own post.... honest! It's just that I went to add this widget to my testing partition MX21ß2-KDE yesterday, and "Great Britain" had turned back into "United Kingdom". I don't know who is most confused here, but for the record:
Great Britain = England + Scotland + Wales
United Kingdom = Great Britain + Northern Ireland
As it's a Norwegian government-run service, maybe they are too sensitive to political changes in the UK.
Re: HOW-TO: Using KDE Weather Widget
Posted: Tue Sep 07, 2021 1:26 pm
by Eadwine Rose
Careful to not let things derail into politics, see the forum rules, best not to mention that stuff at all. As far as feedback, do post it in the according beta2 thread :)
Re: HOW-TO: Using KDE Weather Widget
Posted: Tue Sep 07, 2021 2:04 pm
by Jerry3904
What a fussy little widget!
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 2:30 pm
by davemx
Eadwine Rose wrote: Tue Sep 07, 2021 1:26 pm
Careful to not let things derail into politics, see the forum rules, best not to mention that stuff at all. As far as feedback, do post it in the according beta2 thread :)
This works equally on MX19KDE the only reason to mention the beta is that I had to set it up again and found out the new information.
Jerry3904 wrote: Tue Sep 07, 2021 2:04 pm
What a fussy little widget!
I actually think that the fussiness is with the yr.no site. If you put the format required by the applet into your browser, it doesn't work. It's as if it needs different urls to view the site in a browser, and access the info needed for the widget. The openweather url works as it is. It's worthwhile though, because the results you get once you set it up, are great. With yr.no, you even get wind speed and direction. The widget hasn't been updated for a few years, but still works, once it's set up, and I'm not sure there's a better one.
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 3:10 pm
by Jerry3904
I'm not sure there's a better one
Maybe not for KDE, but the Xfce weather widget is hands down the best in the business IMO.
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 4:12 pm
by paddys-hill
davemx wrote: Fri Sep 10, 2021 2:30 pm
I actually think that the fussiness is with the yr.no site. If you put the format required by the applet into your browser, it doesn't work. It's as if it needs different urls to view the site in a browser, and access the info needed for the widget. The openweather url works as it is. It's worthwhile though, because the results you get once you set it up, are great. With yr.no, you even get wind speed and direction. The widget hasn't been updated for a few years, but still works, once it's set up, and I'm not sure there's a better one.
You and your browser are using the yr
website interface.
The weather "app" (throws up into keyboard - I hate that term) is using the yr
API interface.
They are different things. But they both access the same data. For non-programming folks, it's sort of like two completely different questions that have the same answer - "What's the time?" and "Che ora è?"
The xfce4-weather-plugin uses the "Weather and astronomical data from The Norwegian Meteorological Institute" who also provide both a website and an API...
and guess what
The yr organization is a partnership between the Norwegian Meteorological Institute and a media organization (you can search the internet to find that.)
Did you find that interesting?
b
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 4:24 pm
by paddys-hill
Some
may find the information at
https://developer.yr.no/ interesting though. I wonder if KDE have realised that the API they are using is about to expire? Are the MX packagers for KDE "apps" aware of this?
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 5:43 pm
by davemx
paddys-hill wrote: Fri Sep 10, 2021 4:24 pm
Some
may find the information at
https://developer.yr.no/ interesting though. I wonder if KDE have realised that the API they are using is about to expire? Are the MX packagers for KDE "apps" aware of this?
I think that refers to the retro.yr.no version of the site which has already expired. I could be wrong.
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 6:51 pm
by davemx
paddys-hill wrote: Fri Sep 10, 2021 4:12 pm
davemx wrote: Fri Sep 10, 2021 2:30 pm
I actually think that the fussiness is with the yr.no site. If you put the format required by the applet into your browser, it doesn't work. It's as if it needs different urls to view the site in a browser, and access the info needed for the widget. The openweather url works as it is. It's worthwhile though, because the results you get once you set it up, are great. With yr.no, you even get wind speed and direction. The widget hasn't been updated for a few years, but still works, once it's set up, and I'm not sure there's a better one.
You and your browser are using the yr
website interface.
The weather "app" (throws up into keyboard - I hate that term) is using the yr
API interface.
They are different things. But they both access the same data. For non-programming folks, it's sort of like two completely different questions that have the same answer - "What's the time?" and "Che ora è?"
The xfce4-weather-plugin uses the "Weather and astronomical data from The Norwegian Meteorological Institute" who also provide both a website and an API...
and guess what
The yr organization is a partnership between the Norwegian Meteorological Institute and a media organization (you can search the internet to find that.)
Did you find that interesting?
b
Quite useful information. I just like the applet it actually puts on the panel, and it's worth the little bit of work to set it up.
Re: HOW-TO: Using KDE Weather Widget
Posted: Fri Sep 10, 2021 8:01 pm
by richb
I am not sure I understand. The weather widget configuration show these resources:
Re: HOW-TO: Using KDE Weather Widget
Posted: Sat Sep 11, 2021 12:04 pm
by paddys-hill
No, you are right. I misread the dates for the service shutdowns. I thought it was November 2021.
(So much for my recent eye surgery!)
Re: HOW-TO: Using KDE Weather Widget
Posted: Sat Sep 11, 2021 12:52 pm
by Auro Kumar Sahoo
I am little confused, are you using default kde weather applet or something from kde store?
In options menu I have only 4 providers and I cannot see add any more..and the 2 you are mentioning are not listed.
Can you please verify and if using something from kde store mentioning its name inplace of kde weather
Re: HOW-TO: Using KDE Weather Widget
Posted: Sun Sep 12, 2021 6:46 pm
by davemx
richb wrote: Fri Sep 10, 2021 8:01 pm
I am not sure I understand. The weather widget configuration show these resources:
Auro Kumar Sahoo wrote: Sat Sep 11, 2021 12:52 pm
I am little confused, are you using default kde weather applet or something from kde store?
In options menu I have only 4 providers and I cannot see add any more..and the 2 you are mentioning are not listed.
Can you please verify and if using something from kde store mentioning its name inplace of kde weather
Weather
Widget is from the KDE Store. You're both thinking of Weather
Applet which is already installed in MX-KDE. Make sure you install
qml-module-qtquick-xmllistmodel, which you can get through the MX Package Installer (stable repo tab) otherwise it won't work. It works well with open weather map, but with yr.no you get predicted wind speeds so it's well worth the extra effort as described in earlier posts.
Re: HOW-TO: Using KDE Weather Widget
Posted: Sun Sep 12, 2021 8:06 pm
by richb
Why does the weather widget from the KDE Store need to be added? The Weather applet already installed works well.
Re: HOW-TO: Using KDE Weather Widget
Posted: Mon Sep 13, 2021 6:38 am
by davemx
richb wrote: Sun Sep 12, 2021 8:06 pm
Why does the weather widget from the KDE Store need to be added? The Weather applet already installed works well.
It's a question of taste I guess. It costs nothing to try it out.
Re: HOW-TO: Using KDE Weather Widget
Posted: Mon Sep 13, 2021 6:44 am
by richb
davemx wrote: Mon Sep 13, 2021 6:38 am
richb wrote: Sun Sep 12, 2021 8:06 pm
Why does the weather widget from the KDE Store need to be added? The Weather applet already installed works well.
It's a question of taste I guess. It costs nothing to try it out.
Fair enough. I have found that some widgets from the Store do not work. Possibly because they have been updated for a later version of KDE Plasma than 5.20.
Re: HOW-TO: Using KDE Weather Widget
Posted: Mon Sep 13, 2021 8:46 am
by davemx
This is what it looks like:
weather-widget-yrno.png