Skip navigation.
KDE Developer's Journals

Happy New Year! And a little present

spstarr's picture

Well, the homestretch is near, I've had to dropped some functionality to get this finished for KDE 4.0.0. So, no Icons for this version. But, you can see It should replace most of the functionality kweather did. This applet does not support dropping onto the panel or If it does, it might not render correctly.

* Update: Since this will not go into extragear, you will need to build it from the playground. Given the changes coming for KDE 4.1, it makes little sense to maintain two different versions which will diverge.

I decided to just leave the name 'Weather Applet' for generic reasons. Maybe the name will change for KDE 4.1 we'll see.

Next, I have to write a HOWTO for people to write ions (data source backends) to get other weather sources from your local country (if available).

If you know of any countries that provide XML data or freely available data, do let me know. I'd be happy to write a backend to add to this list Smiling

Here's a busy screenshot showing various places. Some of the data sources (ions) report warning/watch information. Only the Environment Canada one at this time provides this information.

Comments welcome, please note this is just for KDE 4.0.x, KDE 4.1 I will implement the features mentioned in previous blog postings. We just ran out of time folks Sad

[image:3176 size="original"]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vdboor's picture

Graphics?

I'm curious, do you also have plans to add more graphics to the plasmoid? So far the progress looks good Smiling

Will the applet also provide a forecast, or is that a different data engine? To get the idea, see:
http://jkontherun.blogs.com/photos/uncategorized/konfabwin.jpg
http://farm2.static.flickr.com/1210/1469985705_d38f015334_o.png

Thanks!

spstarr's picture

Re: Graphics?

Oh for sure, I am going to be adding 5 day forecast info (where available) + graphics, and a current condition graphic. The will be other information also. It all depends on what the data source is able to provide. Since I have to have a common way of displaying it (which is the complex part).

Once Qt 4.4 is out and we start looking at how Plasma can use the new way widgets are drawn/layouts it should be much easier for designing the plasmoid's content.

Also, I have to make sure all the data used, is legal/legit in use. Since there are specific requirements for data use. With those issues addressed more data sources can be added.

Shawn.

omoottestad's picture

XML-data for Norway (and other places)

Official data from met.no was opened for public access last autumn. The data can be accessed through an api from yr.no. The documentation is avaiable at http://api.yr.no/weatherapi/documentation in English. The api gives access to general weather forcasts, satellite imagery, ice maps, tidal water and more.

spstarr's picture

Re: XML-data for Norway (and other places)

Thanks! I will be looking at this. Initially I will parse the same minimal information the other data sources provide and then add any extended information later since I still don't have a unified way to deal with radar/satellite imagery yet (since other data sources do not provide any of this info).

Shawn.

rokfaith's picture

XML

My country (Slovenia) provides free XML and RSS feeds. If you wish to add them:
Slovenian version:
http://meteo.arso.gov.si/met/sl/service/

English version:
http://meteo.arso.gov.si/met/en/service/

spstarr's picture

Slovenia XML data

Thanks! I will look at this, that would be great!

randomguy3's picture

BBC Weather ION

Very nice, although I can't get the BBC weather ion to work. I enter a postcode in the search (looking at the code, that should work), and it claims it's invalid.

huftis's picture

Norwegian weather data

The Norwegian Meteorological Institute and the Norwegian Broadcasting Corporation (NRK) provides freely (with some conditions) available weather data in XML format. It even has weather data from places outside Norway (a total of 7 million places). Information (in Norwegian):
http://www.yr.no/verdata/1.3316805

Here is an example file in English:
http://www.yr.no/place/Norway/Telemark/Sauherad/Gvarv/forecast.xml

There is also an API available:
http://api.yr.no/weatherapi/documentation

spstarr's picture

Re: Norwegian weather data

Thanks, I will need to find out what 'some conditions' is. Since we have to be careful about how the data is used etc.

I haven't yet figured out how we'll deal with the international weather information provided in different languages. We can't translate data that we don't know will appear so it might make sense to just leave it in the native language since I expect eventually to have many different datasources in their native language.

Shawn.

¨sveinhd's picture

the conditions for api.met.no

You'll find the conditions here: http://api.met.no/license.html

--
Svein H. Djupvik

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.