simple weather forecast

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

5
6.1
Description:

Updated Dec 2009

Background defaults to the kde4 desktop theme settings. See screenshot.

Renamed the plasmoid from weatherforecast to simpleweatherforecast as there is a default (beautiful) weather plasmoid in 4.2
http://websvn.kde.org/trunk/KDE/kdeplasma-addons/applets/weather/


Old description:
One more weather plasmoid
(I have a used lot of code from weatherplasmoid)

DEPENDENCIES:
If you have any error first install all the "Depends packages" (Red dot) shown at:
http://packages.ubuntu.com/intrepid/kdeplasma-addons

If you have *ubuntu then issue:
sudo apt-get build-dep kdeplasma-addons

If you have other distributions please look for packages with similar names.

TESTE
I have tested it in Intrepid and Hardy

INSTALL:
See install file
tar jxvf plasma-simpleweatherforecast-???.tar.bz2
cd plasma-weatherforecast-0.???
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` --debug-output ..
make
sudo make install


UNINSTALL:
The plasmoid installs 3 files only; just delete them.
/usr/lib/kde4/plasma_applet_simpleweatherforecast.so
/usr/share/kde4/services/plasma-applet-simpleweatherforecast.desktop
/usr/share/kde4/apps/desktoptheme/default/widgets/plasma-simpleweatherforecast.svg

(my prefix is
$> kde4-config --prefix or kde-config --prefix
/usr
). Look for your prefix and then delete these files

UPDATE:
If you update the plasmoid please log out of KDE and then login. Otherwise you will get the _old_ version only.

or
kquitapp plasma
kbuildsycoca4
nohup plasma &

Debian packages:
http://unixcod.org/debian/binary from
http://kde-look.org/usermanager/search.php?username=kilah

PROBLEMS:
Please put your city CODE if there are any problems so that I try here.


Please start using the plasmoid:http://websvn.kde.org/trunk/KDE/kdeplasma-addons/applets/weather/
Last changelog:

11 years ago

v1.3
Background defaults to the kde4 desktop theme settings. See screenshot.


v1.2
Minor fixes in install file and added attribution

v1.1
Show "Network not reachable".
The font colour is theme dependent. So, text will automatically update.

v 1.0
Font dialog: thanks to Joe Istead
Renamed to prevent problems.

v0.9
none

v0.8
Removed proxy support. Too many problems due to that.

v0.7
Changed the file names and added KDE 4.2 support.Thanks linleno

V0.6
Fixed proxy support (by Yannig).
- connect a signal from the job downloader to a slot of the plasmoid
- parse directly binary content

v0.5
added proxy support. But unfortunately it does not refresh properly. So, please look into the code and help me (To Yannig).

Improved alignment. Thanks to patkoscsaba.
Substitute "+" from patkoscsaba by a " " (blank space).

v0.4
fixed the filename. sorry for the inconvenience.

v0.3
Rename weather.svg to plasma-weatherforecast.svg
See: http://revu.ubuntuwire.com/details.py?package=plasmoid-weatherforecast


v0.2
Fix README
Removed country/region name
changed yweather:wind to yweather:condition for accurate temperature

v0.1
-Initial Release
-It is completely inspired by Weather Plasmoid

blackpaw

12 years ago

Have built and installed the latest (0.5), no problems - Thanks.

Is the weatherforecast plasmoid in Sam Rogs's PPA (https://launchpad.net/~samrog131/+archive) build from your sources? Presuming you're not Sam Rog :)

Report

C

biophysics

12 years ago

No, it is not me.

Report

RalIlAn

12 years ago

kde 4.1.85, kubuntu 8.10

user@desktop:~/plasma-weatherforecast-0.4$ make
Linking CXX shared module lib/plasma_applet_weatherforecast.so
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:113: undefined reference to `QDomDocument::QDomDocument(QString const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:117: undefined reference to `QDomDocument::setContent(QIODevice*, QString*, int*, int*)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:120: undefined reference to `QDomDocument::documentElement() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:122: undefined reference to `QDomNode::firstChild() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::firstChild() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::~QDomNode()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::firstChild() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::~QDomNode()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:198: undefined reference to `QDomNode::nextSibling() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:198: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:198: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `~QDomElement':
/usr/include/qt4/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:127: undefined reference to `QDomNode::isNull() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:129: undefined reference to `QDomNode::toElement() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:131: undefined reference to `QDomNode::isNull() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:133: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:135: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:136: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:137: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:139: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:141: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:199: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `~QDomElement':
/usr/include/qt4/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:199: undefined reference to `QDomDocument::~QDomDocument()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:143: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:147: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:149: undefined reference to `QDomNode::firstChild() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:149: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:149: undefined reference to `QDomNode::~QDomNode()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:191: undefined reference to `QDomNode::nextSibling() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:191: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:191: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `~QDomElement':
/usr/include/qt4/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:151: undefined reference to `QDomNode::isNull() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:153: undefined reference to `QDomNode::toElement() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:155: undefined reference to `QDomNode::isNull() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:157: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:168: undefined reference to `QDomElement::tagName() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:170: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:171: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:172: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:173: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:174: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:176: undefined reference to `QDomNode::nextSibling() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:176: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:176: undefined reference to `QDomNode::~QDomNode()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:177: undefined reference to `QDomNode::toElement() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:178: undefined reference to `QDomElement::tagName() const'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `~QDomElement':
/usr/include/qt4/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:145: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:194: undefined reference to `QDomNode::parentNode() const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:194: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:194: undefined reference to `QDomNode::~QDomNode()'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:159: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:160: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:161: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:181: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:182: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o:/home/user/plasma-weatherforecast-0.4/plasma-weatherforecast.cpp:183: more undefined references to `QDomElement::attribute(QString const&, QString const&) const' follow
collect2: выполнение ld завершилось с кодом возврата 1
make[2]: *** [lib/plasma_applet_weatherforecast.so] Ошибка 1
make[1]: *** [CMakeFiles/plasma_applet_weatherforecast.dir/all] Ошибка 2
make: *** [all] Ошибка 2

Report

C

biophysics

12 years ago

Hi
can you try the new version ?
Make sure you have "libqt4-xml" installed.
Bye

Report

blackpaw

12 years ago

I had to install from source as there was a unresolved dependency on libplasma2.

I also had to add "${QT_QTXML_LIBRARY}" to target_link_libraries in CMakeLists.txt (thanks Komet84)

Report

jackiebrown

12 years ago

Same with Debain - thanks for posting the fix

Report

C

biophysics

12 years ago

Fixed it in the 0.5 version. Thanks

Report

kilah

12 years ago

http://debian.unixcod.org/binary/weatherforecast-0.4_amd64.deb

or

deb http://debian.unixcod.org testing main


Is only for debian AMD64 this mirror !

Report

C

biophysics

12 years ago

can you try to compile the 0.5 version ?
Thanks

Report

kilah

12 years ago

yes i can, but i will make for kde 4.2 because i have installed kde 4.2

Report

kilah

12 years ago

http://unixcod.org/debian/binary/weatherforecast-0.5-kde4.2_amd64.deb


Debian amd64 - KDE 4.2 package

Report

zajacik

12 years ago

Why I cannot download it? each time I click on that for downloading the download page that says wait few mins or click here if it doesn't start it's refreshing all the time but the download dialog doesn't appear. :(

Report

kilah

12 years ago

i have the same error at download

Report

C

biophysics

12 years ago

Should work now.

Report

jackiebrown

12 years ago

I did to.

Here's the direct link
http://www.kde-look.org/CONTENT/content-files/92149-plasma-weatherforecast-0.4.tar.bz2

It doesn't to build with the latest trunk or beta 1 of 4.2 though

Report

patkoscsaba

12 years ago

OOPS, I found another one ... Missing image/icon for Rain/Wind (and there may be others too)

Report

patkoscsaba

12 years ago

Never mind, it was becouse I was still using the old weather.svg ... now it's ok.

Report

C

biophysics

12 years ago

please post the "patch" in the message. I will fix it when possible.

Report

patkoscsaba

12 years ago

Here as the diff between your 0.3 version and my modifications for alligning: http://pastebin.com/f32b63817

Report

patkoscsaba

12 years ago

There is another bug in your plasmoid. The forecast part ... First is today and second is tomorrow ...
As I saw in your description and code, it should be tomorrow and the day after tomorrow.

This may not be your bug but yahoo changing something on their site. I just wanted to tell you about it.

PS: Don't forget to fix the alignment of the text for forecast and 100dpi fonts. I did the coding for myself and I can send the modified version to you. I broke that zone in 6 pieces instead of 3, so you don't print "Low:\nHigh:" you print "Low:" and than you print "High:" in 2 different rectangles aligned. Same goes for the temperatures that follow.

Report

hash87

12 years ago

In the new 0.3 version of the plasmoid there is no icon theme set by default. The only way to make the icons appear is manually setting the following path in plasmoid configure options:

/usr/share/apps/desktoptheme/default/widgets/plasma-weatherforecast.svg

Report

patkoscsaba

12 years ago

Yes I saw in the code, it is still set by default to weather.svg, maybe the author will correct this for the nex release.

Report

C

biophysics

12 years ago

Hi Patkos Csaba

Thanks for the info. Now fixed.

Report

patkoscsaba

12 years ago

On my laptop 1280x800 screen, everithing is OK.
But, on my pc, 1600x1200 screen some texts are overlapping.
Here is a screenshot: http://www.mediafire.com/file/zyjg4vlmnhd/11.jpg

Report

patkoscsaba

12 years ago

I didn't mentioned that it happens with all themes (including oxigen) and that i restarted plasma, than I logged out/in ... I even restarted my computer.

Report

11 years ago

v1.3
Background defaults to the kde4 desktop theme settings. See screenshot.


v1.2
Minor fixes in install file and added attribution

v1.1
Show "Network not reachable".
The font colour is theme dependent. So, text will automatically update.

v 1.0
Font dialog: thanks to Joe Istead
Renamed to prevent problems.

v0.9
none

v0.8
Removed proxy support. Too many problems due to that.

v0.7
Changed the file names and added KDE 4.2 support.Thanks linleno

V0.6
Fixed proxy support (by Yannig).
- connect a signal from the job downloader to a slot of the plasmoid
- parse directly binary content

v0.5
added proxy support. But unfortunately it does not refresh properly. So, please look into the code and help me (To Yannig).

Improved alignment. Thanks to patkoscsaba.
Substitute "+" from patkoscsaba by a " " (blank space).

v0.4
fixed the filename. sorry for the inconvenience.

v0.3
Rename weather.svg to plasma-weatherforecast.svg
See: http://revu.ubuntuwire.com/details.py?package=plasmoid-weatherforecast


v0.2
Fix README
Removed country/region name
changed yweather:wind to yweather:condition for accurate temperature

v0.1
-Initial Release
-It is completely inspired by Weather Plasmoid

12345678910
13
product-maker siocnarf Apr 14 2013 9 excellent
product-maker itsjustarumour2 Sep 25 2012 9 excellent
product-maker ariszlo Sep 18 2012 9 excellent
product-maker joseexposito89 Aug 30 2011 3 bad
Be the first to comment
ariszlo
Sep 18 2012
universe777
Apr 18 2009
jwistead
Jan 06 2009
kilah
Dec 29 2008
blackpaw
Dec 28 2008
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
1.3
updated Dec 26 2009
added Oct 30 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2