Weather Plasmoid

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
5.0
Description:

This release implements a couple of feature requests and fixes a few bugs. See the changelog.

OpenSUSE packages added. Thanks buschmann23!!

Special thanks goes out to painkiller101 for some helpful suggestions as well as a killer icon set. Thanks so much for all of your help!! :-)

TODO

-Add forecasting when widget is of a certain size

Short installation instruction:
# tar -xvzf plasma-weather-0.2.tar.gz
# cd weather
# mkdir build
# cd build
# cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
# make
# make install


ATTENTION INTERNATIONAL USERS:

If you want to make this widget work and don't have a zip code, use the following
steps:

1. Go to http://weather.yahoo.com/
2. Type in your city, country and click Go
3. Copy the 8 character location ID from the URL on the next page (ie for Hong Kong, China it is CHXX0049)
4. Paste the location ID into the widgets zip code field
Last changelog:

12 years ago

v0.1
-Initial Release

v0.2

-Added widget configuration dialog
-Users can now configure zip code and temperature format via dialog
-Fixed SVG scaling issue (I think??)
-New icon set by painkiller101 (THANKS!! :-))

v0.3

-made the ~/weather.xml file hidden
-added support for icon themes
-added new icon theme used with permission from Wojciech Grzanka

v0.4

-added refresh configuration options
-fixed missing icon bug (i hope!!)
-fixed version of Wojciech Grzanka's icons are available for download
-modified icon display code

C

rowancompsciguy

12 years ago

Thanks!! :-)

Report

todobgd

12 years ago

maybe if u put opacity for this applet looks better ,like folder view

Report

GuSArg

12 years ago

Hi!

Nice plasmoid, i was looking this to replace the one i used in Superkaramba in kde3.x.

My request is, could you add proxy support? Since in my work i have proxy.

Thanks.

Report

C

rowancompsciguy

12 years ago

I'll look into it. Thanks!! :-)

Report

meskalamdug

12 years ago

Slackware current users
here's tgz package if interested

http://www.mytux.org/content/viewslackpackage.php?id=261

need mytux kde4 packages.
More infos here

http://www.slacky.eu/forum/viewtopic.php?f=1&t=24999

Report

meskalamdug

12 years ago

PErfect..but no icon if i use
the svg theme.

Report

C

rowancompsciguy

12 years ago

See the comment above.

Report

painkiller101

12 years ago

Hi there.

I have to tell you all small bug which i've noticed:
If the wheather plasmoid says "light rain" and "rain showers" no icon appears.
This is tested with both icon sets.

Report

painkiller101

12 years ago

A small update:
Also for weather information "rain".

Report

C

rowancompsciguy

12 years ago

Yes, it's due to some inconsistencies in the naming conventions that the Yahoo! Weather API uses. I've converted the code over to for weather codes as opposed to weather event names. This should alleviate the problems caused by the inconsistencies. It should be fixed in the latest version.

Thanks for the report.

Report

painkiller101

12 years ago

Hello and thank you for this update.

It's nice that it gets more and more configurable.
But the problem with the icons aren't unfortunately fixed. Instead the problem is bigger now.
In v0.4 NO ICONS are shown here anymore.
I've tested it with nearly 30 zip-codes and different weather conditions. I don't know if it's only a problem for me, but it's there.

Report

C

rowancompsciguy

12 years ago

That's very strange. The naming convention for the icon theme has changed entirely, so if you're using an older version of an icon set, that might cause the issue you're describing. Just as a test, can you download the icon best theme and try and point the plasmoid to use that theme? Let me know if that changes anything for you.

Report

painkiller101

12 years ago

Oh sorry. It used the older version of the weather-icons, which weren't updated during the installation.
I deleted them inside the default-desktoptheme folder and reinstalled the weather-plasmoid.
Now it works!

Sorry again.

Report

meskalamdug

12 years ago

Thanks,very nice applet
but i think has some bug
78°C is a little hot :P

http://img23.imagevenue.com/img.php?image=16128_12_122_1196lo.jpeg

Report

C

rowancompsciguy

12 years ago

Yikes that's pretty hot!! :-)

Can you give me steps to reproduce the error?

Report

meskalamdug

12 years ago

Simply change from Fareneith
to Celsius

Report

C

rowancompsciguy

12 years ago

I'm unable to reproduce the error by doing that.

Report

yagami

12 years ago

thanks for the nice plasmoid :)

looking at the source, you have a qtimer of 300000 ( 5 minutes ).

isnt this too much ? i mean querying the web every 5 minutes ? can you make it configurable ?

Report

C

rowancompsciguy

12 years ago

I thought 5 minutes would be an ample refresh rate. If you'd like I can look into adding this as a configuration option though.

Report

yagami

12 years ago

sure , please do.

i guess i would set it to every 6 or 12 hours.

thanks :)

Report

C

rowancompsciguy

12 years ago

Oh, I thought you thought it was too infrequent. I didn't think it would be a good idea to run the query more than every five minutes. I think 6 to 12 hours might be way too much time between queries though. The weather can change quite a bit in 6 - 12 hours. :-)

I'll try to make it configurable in a future release though.

Report

jeanbi

12 years ago

bonjour,
message d'erreur
# make
[ 20%] Building CXX object CMakeFiles/plasma_applet_weather.dir/plasma-weather.o
/home/jean/weather/plasma-weather.cpp: In member function ‘virtual void Plasma_Weather::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)’:
/home/jean/weather/plasma-weather.cpp:178: attention : unused variable ‘width’
/home/jean/weather/plasma-weather.cpp:179: attention : unused variable ‘height’
/home/jean/weather/plasma-weather.cpp: In member function ‘void Plasma_Weather::paintImage(QPainter*, const QRect&)’:
/home/jean/weather/plasma-weather.cpp:229: erreur: no matching function for call to ‘Plasma::Svg::Svg(Plasma_Weather* const)’
/usr/include/kde4/KDE/Plasma/../../plasma/svg.h:88: note: candidats sont: Plasma::Svg::Svg(const QString&, QObject*)
/usr/include/kde4/KDE/Plasma/../../plasma/svg.h:48: note: Plasma::Svg::Svg(const Plasma::Svg&)
/home/jean/weather/plasma-weather.cpp:230: erreur: ‘class Plasma::Svg’ has no member named ‘setImagePath’
/home/jean/weather/plasma-weather.cpp:231: erreur: ‘class Plasma::Svg’ has no member named ‘setContainsMultipleImages’
make[2]: *** [CMakeFiles/plasma_applet_weather.dir/plasma-weather.o] Erreur 1
make[1]: *** [CMakeFiles/plasma_applet_weather.dir/all] Erreur 2
merci d'avance
a+

Report

C

rowancompsciguy

12 years ago

Make sure that you are compiling against the KDE 4.1 version of libplasma. Let me know if this fixes your problem.

Report

fcorneau

12 years ago

Hello,

I'm having the same problem here... How can i fix it? I must be running kde 4.1 for this to work?

Thank you

Report

C

rowancompsciguy

12 years ago

That's correct. Plasma is under constant, extensive change right now. Because of this, many of the methods and method signatures from the version of plasma that comes with KDE 4.0.x have changed drastically in KDE 4.1. I have coded this using the latest version of Plasma so that I could take advantage of some of the newer features.

I hope this helps to clarify.

Report

12 years ago

v0.1
-Initial Release

v0.2

-Added widget configuration dialog
-Users can now configure zip code and temperature format via dialog
-Fixed SVG scaling issue (I think??)
-New icon set by painkiller101 (THANKS!! :-))

v0.3

-made the ~/weather.xml file hidden
-added support for icon themes
-added new icon theme used with permission from Wojciech Grzanka

v0.4

-added refresh configuration options
-fixed missing icon bug (i hope!!)
-fixed version of Wojciech Grzanka's icons are available for download
-modified icon display code

12345678910
Be the first to comment
MoonBlossom
Jan 30 2011
DaiVied
Dec 19 2009
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
version
0.4
updated Jul 10 2008
added Jun 28 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3