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

santam

12 years ago

Thanks all working now :-D

Report

meskalamdug

12 years ago

Very good
TThanks

Report

Kostyan

12 years ago

but a part of picture is not visible, such as "Light Rain" and "Rain". only i have this problem?

sorry for my English

Report

C

biophysics

12 years ago

can you put an image of it ( imagebin.org)
Thanks

Report

Kostyan

12 years ago

see this: http://imagebin.org/29941

Report

C

biophysics

12 years ago

Hmmm.. is the city code USFL0438 ?
Works for me. If the image does not refresh can you change it from °c to °F and then back. just trying. I will test more later.

Report

Kostyan

12 years ago

after reboot your plasmoid work! no problem:)

Report

kilah

12 years ago

Linking CXX shared module lib/plasma_applet_weatherforecast.so
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o: In function `Plasma_Weather::parseData()':
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:113: undefined reference to `QDomDocument::QDomDocument(QString const&)'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:117: undefined reference to `QDomDocument::setContent(QIODevice*, QString*, int*, int*)'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:120: undefined reference to `QDomDocument::documentElement() const'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:122: undefined reference to `QDomNode::firstChild() const'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::firstChild() const'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::operator=(QDomNode const&)'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:124: undefined reference to `QDomNode::~QDomNode()'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::firstChild() const'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::operator=(QDomNode const&)'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:125: undefined reference to `QDomNode::~QDomNode()'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:197: undefined reference to `QDomNode::nextSibling() const'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:197: undefined reference to `QDomNode::operator=(QDomNode const&)'
/root/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:197: undefined reference to `QDomNode::~QDomNode()'

and much more...the error continue

i have debian sid with kde 4.1.2

Report

Nissa

12 years ago

Same problem for me on KDE 4.1.2

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/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:145: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:193: undefined reference to `QDomNode::parentNode() const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:193: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:193: undefined reference to `QDomNode::~QDomNode()'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:159: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:160: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:180: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:181: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:182: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
CMakeFiles/plasma_applet_weatherforecast.dir/plasma-weatherforecast.o:/home/web/Downloads/plasma-weatherforecast-0.1/plasma-weatherforecast.cpp:183: more undefined references to `QDomElement::attribute(QString const&, QString const&) const' follow
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_applet_weatherforecast.so] Error 1
make[1]: *** [CMakeFiles/plasma_applet_weatherforecast.dir/all] Error 2
make: *** [all] Error 2

Report

C

biophysics

12 years ago

can you check if you have installed

libqt4-dev

(apt-get install libqt4-dev)

Report

Nissa

12 years ago

Yes it is already present on my system:

apollo:~# apt-get install libqt4-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt4-dev is already the newest version.

Version installed is 4.4.3-1+lenny.1

Report

kilah

12 years ago

i have installed :
libqt4-dev:
Installed: 4.4.3-1+lenny.1

and

libqt4-xml:
Installed: 4.4.3-1+lenny.1

Report

C

biophysics

12 years ago

As I am not completely sure what dev libraries can you install these one at a time and see which solves the problem.

I will add it to README after that.
Many thanks.

libpoppler-qt4-3
libqt4-assistant
libqt4-core
libqt4-dbus
libqt4-designer
libqt4-dev
libqt4-gui
libqt4-help
libqt4-network
libqt4-opengl
libqt4-qt3support
libqt4-script
libqt4-sql
libqt4-svg
libqt4-test
libqt4-webkit
libqt4-xml
libqt4-xmlpatterns
python-qt4
python-qt4-common
python-qt4-dbus
qt4-qtconfig

Report

Komet84

12 years ago

This error comes also up on Gentoo, but I just solved it:

You need to add "${QT_QTXML_LIBRARY}" to target_link_libraries in CMakeLists.txt

Report

C

biophysics

12 years ago

Can you try installing kubuntu packages for qt-* and try if it fixes the problem. Unfortunately, I have not so much knowledge in debian or qt.
Sorry

Report

smihael

12 years ago

Same for me on Debian's KDE 4.1.2

Please fix bug. I really want to make .deb, share .deb and use it :)

Report

Nissa

12 years ago

I have juste noticed that the compilation of another plasmoid package fails with the same error message.

I was able to compile this plasmoid in the past, so the problem seems to come from my debian configuration.

Report

Nissa

12 years ago

The files are identical (except comments at the top of the file)

Report

C

biophysics

12 years ago

can you delete the existing 'build' directory and retry cmake
FILE:
/usr/include/qt4/QtXml/qdom.h
can you compare the file you have with:
http://pastebin.com/m35edc7e5

Report

Nissa

12 years ago

I missed only one of these libraries and installing it changed nothing.

This problem has been raised in some other discussions found on google, maybe it is just a header problem.

QDomDocument is defined into qdom.h and I have several of them:

apollo:~# locate qdom.h
/usr/include/qt3/qdom.h
/usr/include/qt4/Qt/qdom.h
/usr/include/qt4/QtXml/qdom.h

Maybe you should change something in your inclusions in your .cpp file... I don't know

Report

vlan81

12 years ago

hello !!

Very good plasmoid but when i see the temperature (now) from weather.yahoo.com is example 2 degree but in the plamoid is -2 degree ...

For low and high is OK

my region is CAXX0258

good work !

thank you

V-Lan

Report

C

biophysics

12 years ago

Thanks for the nice comments. I have fixed it. Loretteville should have it perfect now.

Report

vlan81

12 years ago

it's really strange ... i have downloaded 0.2 version, i unzipped, cmake ... make and make install but the temperature for oxford is 3 degree and in your plasmoid is 1 degree ...

this is the same for you ?

sincerely

V-Lan

it's my system broken ? on gentoo

Report

C

biophysics

12 years ago

http://weather.yahooapis.com/forecastrss?p=UKXX0106&u=c

That is the URL for Oxford. Looks correct temperature for me. I really cannot find the problem. Can you make a screenshot of both the plasma and the browser and paste it at imagebin.org

Report

C

biophysics

12 years ago

See here
http://imagebin.org/29944

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