Weather Plasmoid

Plasma 4 Widgets

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
Score 50.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:

11 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

denisq

9 years ago

Please update the openSUSE packages to make them work on the latest KDE version used on suse 11.2.

Some modifications to apply:

-------------------
Replace the variables previously coming from FindPlasma.cmake as follows:

PLASMA_OPENGL_FOUND -> KDE4_PLASMA_OPENGL_FOUND

PLASMA_LIBS -> KDE4_PLASMA_LIBS

PLASMA_INCLUDE_DIR -> KDE4_INCLUDE_DIR or KDE4_INCLUDES, should be already
set anyway
---------------------

Kind regards,
Quentin

Report

LostChild1

9 years ago

Hi there,

I'm from Canada, and thus don't have a Zip Code. I try going to the Montreal Yahoo Weather site and all I get is this in my URL:

http://weather.yahoo.com/canada/quebec/montreal-3534/

So I tried CAXX3534 but it doesn't come up with Canada.

Suggestions?

Report

MCDaweed

9 years ago

CMakeLists.txt should be fixed to not use FindPlasma and it should contain QT_QTXML_LIBRARY within the target_link_library.

A fixed CMakeLists.txt can be found here:

http://www.webhochhaus.de/linux/fixes/CMakeLists.txt

Thank you for this nice Weather-Applet!

Report

surdy

9 years ago

Hi
Please help, I get the following error if I try to make

[ 0%] Built target plasma_applet_weather_automoc
Linking CXX shared module lib/plasma_applet_weather.so
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/surdy/Download/weather/plasma-weather.cpp:106: undefined reference to `QDomDocument::QDomDocument(QString const&)'
/home/surdy/Download/weather/plasma-weather.cpp:110: undefined reference to `QDomDocument::setContent(QIODevice*, QString*, int*, int*)'
/home/surdy/Download/weather/plasma-weather.cpp:113: undefined reference to `QDomDocument::documentElement() const'
/home/surdy/Download/weather/plasma-weather.cpp:115: undefined reference to `QDomNode::firstChild() const'
/home/surdy/Download/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::firstChild() const'
/home/surdy/Download/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::~QDomNode()'
/home/surdy/Download/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::firstChild() const'
/home/surdy/Download/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::~QDomNode()'
/home/surdy/Download/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::nextSibling() const'
/home/surdy/Download/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':
/usr/include/QtXml/qdom.h:477: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/surdy/Download/weather/plasma-weather.cpp:120: undefined reference to `QDomNode::isNull() const'
/home/surdy/Download/weather/plasma-weather.cpp:122: undefined reference to `QDomNode::toElement() const'
/home/surdy/Download/weather/plasma-weather.cpp:124: undefined reference to `QDomNode::isNull() const'
/home/surdy/Download/weather/plasma-weather.cpp:126: undefined reference to `QDomElement::tagName() const'
/home/surdy/Download/weather/plasma-weather.cpp:128: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:129: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:130: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:132: undefined reference to `QDomElement::tagName() const'
/home/surdy/Download/weather/plasma-weather.cpp:134: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:165: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':
/usr/include/QtXml/qdom.h:477: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/surdy/Download/weather/plasma-weather.cpp:165: undefined reference to `QDomDocument::~QDomDocument()'
/home/surdy/Download/weather/plasma-weather.cpp:136: undefined reference to `QDomElement::tagName() const'
/home/surdy/Download/weather/plasma-weather.cpp:138: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:140: undefined reference to `QDomElement::tagName() const'
/home/surdy/Download/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::firstChild() const'
/home/surdy/Download/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::~QDomNode()'
/home/surdy/Download/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::nextSibling() const'
/home/surdy/Download/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':
/usr/include/QtXml/qdom.h:477: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/surdy/Download/weather/plasma-weather.cpp:144: undefined reference to `QDomNode::isNull() const'
/home/surdy/Download/weather/plasma-weather.cpp:146: undefined reference to `QDomNode::toElement() const'
/home/surdy/Download/weather/plasma-weather.cpp:148: undefined reference to `QDomNode::isNull() const'
/home/surdy/Download/weather/plasma-weather.cpp:150: undefined reference to `QDomElement::tagName() const'
/home/surdy/Download/weather/plasma-weather.cpp:152: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:153: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/surdy/Download/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::parentNode() const'
/home/surdy/Download/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/surdy/Download/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::~QDomNode()'
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_applet_weather.so] Error 1
make[1]: *** [CMakeFiles/plasma_applet_weather.dir/all] Error 2
make: *** [all] Error 2

Report

miguelpino

9 years ago

Hi there
I cant install this...
I have problems with the "make" command:

miguel@Piso3:~/Plantillas/weather/build$ make
make: *** No se especificó ningún objetivo y no se encontró ningún makefile. Alto.
miguel@Piso3:~/Plantillas/weather/build$ make install
make: *** No hay ninguna regla para construir el objetivo `install'. Alto.

in english would be something like this:

miguel@Piso3:~/Plantillas/weather/build$ make
make: *** There is no target and there is no makefile. Stop.
miguel@Piso3:~/Plantillas/weather/build$ make install
make: *** There is no rule to build the 'install' target'. Stop.

am I doing something wrong?

PS: mine is Kubuntu 9.04 with KDE 4.3
PS2: Im from chile. sorry my bad english.

Report

requing

10 years ago

following message appears when installing

CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:53 (MESSAGE):
Could not find REQUIRED package Plasma
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:3 (find_package)

Does somebody know how to solve it

Report

requing

10 years ago

i forgot to mention
opensuse 11.1 with kde4.3.1

Report

requing

10 years ago

Hye Claude it's Claude
Thx to the community.
Questions but never answers

YOU STUPID BOY YOU FOTGOT TO INSTALL KDEBASE4-RUNTIME

Report

TubaSoldier

10 years ago

According to this plasmoid the temperature in my area is colder than it actually is. Compared to Kweather or Google, it is on average seven degrees difference. Does anyone else have this issue? My zip code is 83401 if that matters.

Report

jaegerschnitzel

10 years ago

Yes, temperatures are wrong, because the plasmoid uses the temperature as it is felt due to the wind, I think.
If you want the correct temperature, try this patch
http://rapidshare.com/files/166866631/plasma-weather-0.4-forecast_3.patch.html
This also displays the 2-day-forecast and includes the corrected weather icons.

Report

janet

10 years ago

Alas patch is not downloadable. Site says it must be uploaded again or so because it already has been downloaded 10 times.

Report

jaegerschnitzel

10 years ago

OK, didn't know that it would disappear.
Trying two other locations:

http://www.filefactory.com/file/168ad5/n/plasma-weather-0_4-forecast_3_patch

http://homepages.physik.uni-muenchen.de/~georg.hennig/plasma-weather-0.4-forecast_3_patch

Report

janet

10 years ago

Thanks! Er, how do I apply it?

Report

jaegerschnitzel

10 years ago

You're welcome.

Unpack the plasma-weather-0.4.tar.gz file with
tar xvf plasma-weather-0.4.tar.gz
go into the resulting directory
cd weather
and apply the patch with
patch -p1 -i /path/to/patch -p1 -i ../plasma-weather-0.4-forecast_3.patch
Then build the plasmoid as described.

Report

scrounch

10 years ago

Hi, a translate for help us for localisation

Voici la traduction FR pour vous aider.

# French
Code Description
0 Tornade
1 Tempête tropicale
2 Ouragan
3 Orages violents
4 Orages
5 Pluie et neige
6 Pluie et verglas
7 Neige et verglas
8 Bruine verglaçante
9 Bruine
10 Pluie verglaçante
11 Averses
12 Averses
13 Bourrasques de neige
14 Légères chutes de neige
15 Neige et vent
16 Neige
17 Grêle
18 Verglas
19 Poussière
20 Brumeux
21 Brume
22 Fumeux
23 Violent
24 Venteux
25 Froid
26 Nuageux
27 Très nuageux (nuit)
28 Très nuageux (jour)
29 Partiellement nuageux (nuit)
30 Partiellement nuageux (jour)
31 Clair (nuit)
32 Ensoleillé
33 !!!!!!!!! fair (night)
34 !!!!!!!!! fair (day)
35 Pluie et grêle
36 Chaud
37 Orages isolés
38 Orages dispersés
39 Orages dispersés
40 Averses dispersées
41 Fortes chutes de neige
42 Averses de neige dispersées
43 Fortes chutes de neige
44 Partiellement nuageux
45 Pluies d'orage
46 Averses de neige
47 Orages isolés
3200 Non valide

we have just 2 hesitation. (!!!!)

Nous hesitons sur 2 traduction, si quelqu'un connait...

Report

Cader

10 years ago

I was getting the undefined reference to QDom* errors trying to build on Debian experimental. I fixed the issue by doing this.

untar the source
cd weather
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
vi build/CMakeFiles/plasma_applet_weather.dir/link.txt
add "-lQtXml" the list of libs
make
sudo make install

Report

xpace

9 years ago

Thanks!!!
I got the same problem. I use kubuntu 9.04

Report

dhuv

10 years ago

I was wondering if there were any plans to offer multiple day forecast and access to more details for each day (hourly weather, wind speed, sat images, etc) This is a great start. Thanks for your help.

Report

biophysics

10 years ago

For weather conditions code=
11 and 12 (showers) the icon is broken. Please upload weather.svg.

Thanks

Report

jaegerschnitzel

10 years ago

You can apply this patch to a fresh unpacked 0.4 directory. But this also applies the forecast modification. But you can just copy the resulting patched svg file...

http://rapidshare.com/files/149955282/plasma-weather-0.4-forecast_2.patch.html

Report

shelley

10 years ago

its in the repos, no need to install, just run a search for plasm in the package manager

Report

ksaugustin

10 years ago

Good call, shelley. Many thx...

Report

pezboytom

10 years ago

Great plasmoid, just what I was looking for, although would it be possible to monitor multiple places in only one instance, or at least group together several instances to make it look tidier? Also, when the weather report is something long like "showers in the vicinity" the text doesn't fit unless the plasmoid is made to be pretty big, could the text possibly be made to be multi line or dynamically resize? Just some ideas, I really like it otherwise!
Tom

Report

biophysics

10 years ago

please add to the requirements:

libplasma-dev

also why dont you use sf.net to host the package. the current download page has so much flash animation and just freezes my computer.

But many thanks for the nice plasmoid.

Report

cosmicr

10 years ago

hi I am having trouble installing. I have read around and googled a fair bit, but I am stuck at the make stage. this is what I get when I type 'make'. I suspect its just something I havent installed but cant work it out:
Quote:[ 20%] Building CXX object CMakeFiles/plasma_applet_weather.dir/plasma-weather.o
/home/cosmicr/weather/plasma-weather.cpp: In member function ‘virtual void Plasma_Weather::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)’:
/home/cosmicr/weather/plasma-weather.cpp:182: warning: unused variable ‘width’
/home/cosmicr/weather/plasma-weather.cpp:183: warning: unused variable ‘height’
/home/cosmicr/weather/plasma-weather.cpp: In member function ‘void Plasma_Weather::paintImage(QPainter*, const QRect&)’:
/home/cosmicr/weather/plasma-weather.cpp:230: error: no matching function for call to ‘Plasma::Svg::Svg(Plasma_Weather* const)’
/usr/lib/kde4/include/KDE/Plasma/../../plasma/svg.h:88: note: candidates are: Plasma::Svg::Svg(const QString&, QObject*)
/usr/lib/kde4/include/KDE/Plasma/../../plasma/svg.h:48: note: Plasma::Svg::Svg(const Plasma::Svg&)
/home/cosmicr/weather/plasma-weather.cpp:231: error: ‘class Plasma::Svg’ hasno member named ‘setImagePath’
/home/cosmicr/weather/plasma-weather.cpp:232: error: ‘class Plasma::Svg’ hasno member named ‘setContainsMultipleImages’
make[2]: *** [CMakeFiles/plasma_applet_weather.dir/plasma-weather.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_weather.dir/all] Error 2
make: *** [all] Error 2

Report

11 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
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.4
updated Jul 10 2008
added Jun 28 2008
downloads today
0
page views today 8