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

greg0ire

12 years ago

Are you planning to add some i18n ?
Pensez-vous internationaliser votre application ?
Haben Sie vor, ihren Software international auszuweiten?

I can provide a french traduction if you want.

Report

natpu0t

12 years ago

It's a really great and usefull plasmoid!
Thank you for that! There is only one thing that I miss: it would be nice when it would have a kind of a listener implemented, so when there is no connection to the Internet this plasmoid would show a message like "no connection" and right after you got connected to the Internet the plasmoid would update the weather, because of listener.
All in all it's a really cool plasmoid!

PS: Sorry for my English.

Report

devel0per

12 years ago

Ebuild is here - http://sonylaptoptools.sourceforge.net/ebuilds/plasma-weather-0.4.ebuild

Report

jaegerschnitzel

12 years ago

Hi,
icons for weather code 11 and 12 (rain, light rain, ...) are missing (not statically linked into svg file?).
inkscape gives errors like
** (inkscape:28124): WARNING **: <image xlink:href="weather1_files/11_showers.html"> did not resolve to a valid image file (base dir is /xyz/weather), now trying sodipodi:absref="/home/daten/PROJEKTE/weather_icons/11_showers.png"
Georg

Report

jaegerschnitzel

12 years ago

Hi,
I fixed it, and uploaded a patch:

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

Apply it to the original weather plasmoid 0.4 directory (unpatched).

Report

A554551N

12 years ago

I installed your weather plasmoid on OpenSUSE 11 (KDE 4.1.1), it works great, thank you!

Report

jaegerschnitzel

12 years ago

Thanks for your work.

I created a simple mod, displaying some "forecast" (actually the xml is restricted to current day + next day forecast). It also displays sunrise / sunset + humidity:

http://img262.imageshack.us/img262/4174/weatherhv6.png

You can patch weather plasmoid 0.4 by
patch -p1 -i plasma-weather-0.4-forecast.patch

Find the patch here:
http://rapidshare.com/files/146558213/plasma-weather-0.4-forecast.patch.html

Report

Thonnos

12 years ago

Yes it looks nice, but should be improoved with Detailed Local Forecastfor all the week. as liquid weather.

Report

tarahmarie

12 years ago

http://ubuntuforums.org/showthread.php?t=770295

For all the folks having problems with this one and pyqt. There is no solution yet.

Report

naisho

12 years ago

Hi everything was fine till 5th step, but while in 6th step I get this:

[email protected]:~/Downloads/plasmoids$ make
make: *** No targets specified and no makefile found. Stop.

Report

Bogdan84

12 years ago

hello,

same here

Report

naisho

12 years ago

Hi this http://ubuntuforums.org/showthread.php?t=718183 solved my problem. Try it!!

Report

Bogdan84

12 years ago

Hello,

Thanks for your answer! Unfortunatelly, I'm on Debian Sid, and there's a problem with one of the packages that needs to be installed... I guess I'll have to wait for a while.

Bogdan

Report

cookdav

12 years ago

Bogdan -

Lenny just got the fix in past 24hrs...
new kdelibs and some other stuff.

Report

manim

12 years ago

Hello!

After trying all afternoon i finally installed the weather plasmoid. (after adding the 3 missing packets) BUT: It doesn't appear in the menu where all plasmoids are listed. (even not after rebooting twice)

How can I find the plasmoid??

Thanks, Mani

Report

oski555

12 years ago

Try the following:

First, find out the path of kde4-config (in my case was in /usr/lib/kde4/bin/kde4-config).

[email protected]:# updatedb
[email protected]:# locate kde4-config
/usr/lib/kde4/bin/kde4-config

Follow the installation instructions and use that path on the cmake command:

cmake -DCMAKE_INSTALL_PREFIX=`/usr/lib/kde4/bin/kde4-config --prefix` ..

Follow the rest of the instructions.



Report

jackiebrown

12 years ago

Using your .4 version, I get:

The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/david/weather
The arguments are: QT_QT_LIBRARY
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/david/weather
The arguments are: QT_QT_LIBRARY
-- Found Plasma: /usr/local/lib/libplasma.so
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/david/weather
The arguments are: QT_QT_LIBRARY


I looked through the files and nothing stood out.

Report

Diestelhenne

12 years ago

Could you please use another hoster? There seem to be problems with direct links to the file (such as: http://download83.mediafire.com/t3h2uxsuuydg/zsj2dxxj2sl/plasma-weather-0.4.tar.gz). They seem to change from time to time.

Report

mefoster

12 years ago

Thanks for this, it's pretty cool. One issue for the next version: you've misspelled "Fahrenheit" in the configuration dialogue box. :)

Report

Yannig

12 years ago

Hi,

First, congratulation for your gret work ;)

I was playing with this plasmoid at work and was enable to get weather result (because of firewall). After watching a little your code, I patch your version to get proxy support.

So, if anybody is interested in, add '#include <kio/job.h>' in top of plasma-weather.cpp, and replace Plasma_Weather::collectData() method with the following code :

void Plasma_Weather::collectData()
{
//retrive the weather file
KUrl tmpFile(QDir::homePath() + "/.weather.xml");
KUrl url("http://weather.yahooapis.com/forecastrss?p=" + zip + (tempType == "C" ? "&u=c" : ""));
KIO::file_copy(url, tmpFile, -1, KIO::Overwrite | KIO::HideProgressInfo);
}

You also need to edit CMakeList.txt and add -lkio in the following line :

target_link_libraries(plasma_applet_weather ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} -lkio)

Have a nice day !

Yannig

Report

kadrach

12 years ago

Great job!

Three quick suggestions:

Add the required libraries (build-essential kde4-devel libplasma-dev
) to your install instructions,
add translucency to the widget background
and (if possible) some sort of mouse-hover popup with the forecast :)

Report

kappa011

12 years ago

How did you install the plasmoid?

It won't install from the internet for me (kubuntu).

I was able to download and compile, but if I try to install from file from the add widgets dialog, all of the files are invisible. What file does it need to point to and how can I get the add widgets dialog to see that file?
P

Report

cjtess

12 years ago

Hi

Did you compile it and then run a

"make install"

command from the directory in whic you built?

If so, it will appear in the widget list next time you restart KDE (for sure... it doesn't appears immediately)

Report

kadrach

12 years ago

Great job!

Three quick suggestions:

Add the required libraries (build-essential kde4-devel libplasma-dev
) to your install instructions,
add translucency to the widget background
and (if possible) some sort of mouse-hover popup with the forecast :)

Report

kadrach

12 years ago

Great job!

Three quick suggestions:

Add the required libraries (build-essential kde4-devel libplasma-dev
) to your install instructions,
add translucency to the widget background
and (if possible) some sort of mouse-hover popup with the forecast :)

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