
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
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.
TESTED:
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/
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
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
ariszlo
8 years ago
Report
CentralCaFan
10 years ago
Thanks.
Report
Guilo19
10 years ago
It seems that yahoo weather website changed and the url doesn't show the city code anymore.
Report
biophysics
10 years ago
Step 2: click on the RSS icon (on the right side)
Step 3: look for the city code on the URL.
Report
goona
10 years ago
Report
Musikolo
11 years ago
what's new in version 1.3. There is no entry in the changelog for 1.3.
Regards! ;-)
Report
google01103
11 years ago
I'm thinking the problem is due from where in the boot process my dsl connection is made (during boot vrs load of kde) but the plasmoid should still find the connection even if it's not there when it first loads.
The weather lcd plasmoid functions fin
Report
biophysics
11 years ago
Anyways you can set the time interval for refreshing to 2 min or so. then it will refresh (I hope).
Report
google01103
11 years ago
But thanks, this is my favorite weather plasmoid
Report
mkbiker
11 years ago
My first installation failed because of that :/
Report
biophysics
11 years ago
Report
mkbiker
11 years ago
My first installation failed because of that :/
Report
dglent
11 years ago
http://www.mandrivalinux.gr/rpm/2009.1/i586/plasma-applet-weatherforecast-1.2-1mdv2009.1.i586.rpm
Report
paran0id
11 years ago
Because I have to use a proxy to connect to the internet version 1.2 of the plasmoid would not work for me at first. However, I took a look at the source code, reenabled the proxy support together with one small change to it and the plasmoid did work again (through my proxy and at least for me).
I have attached a copy of the diff at the end of this comment, but you can also just download the file from my Mediafire acount: http://www.mediafire.com/?xugymvdoyew
Maybe you find it useful:
--- plasma-weatherforecast-1.2-kde-4.2.orig/plasma-simpleweatherforecast.cpp 2009-04-01 15:58:26.000000000 +0200
+++ plasma-weatherforecast-1.2-kde-4.2/plasma-simpleweatherforecast.cpp 2009-04-01 02:08:26.000000000 +0200
@@ -99,24 +99,26 @@
// proxy support
// proxy support
// proxy support
-// QString proxy_xml_file = "http://weather.yahooapis.com/forecastrss?p=" + zip;
-// if(tempType == "C")
-// {
-// proxy_xml_file.append("&u=c");
-// }
+ QString proxy_xml_file = "http://weather.yahooapis.com/forecastrss?p=" + zip;
+ if(tempType == "C")
+ {
+ proxy_xml_file.append("&u=c");
+ }
//The next line clears cache for the file
-// KIO::http_update_cache(proxy_xml_file, true, 0);
+ KIO::http_update_cache(proxy_xml_file, true, 0);
// proxy support: for some crazy reason the update does not happen properly !
// so I have enabled both wget and proxy support
// FIX ME
KIO::file_delete(QDir::homePath() + "/.weather.xml", KIO::HideProgressInfo );
-// KIO::file_copy(proxy_xml_file, QDir::homePath() + "/.weather.xml", -1, KIO::Overwrite | KIO::HideProgressInfo);
+ KUrl src(proxy_xml_file);
+ KUrl dst(QDir::homePath() + "/.weather.xml");
+ KIO::file_copy(src, dst, -1, KIO::Overwrite | KIO::HideProgressInfo);
//
// Now the normal wget...
// Now the normal wget...
// Now the normal wget...
- QProcess* process = new QProcess(this);
+/* QProcess* process = new QProcess(this);
QString wget_xml_command = "wget -q -t 4 --random-wait -O " + QDir::homePath() + "/.weather.xml http://weather.yahooapis.com/forecastrss?p=" + zip;
if(tempType == "C")
{
@@ -125,6 +127,7 @@
process->start(wget_xml_command);
process->waitForFinished();
delete process;
+*/
}
void Plasma_Weather::parseData()
Report
ilpianista
11 years ago
thanks!!
Report
biophysics
11 years ago
Report
mwhitlock
11 years ago
http://www.mattwhitlock.com/yahoo_weather_icons.svg
Report
mwhitlock
11 years ago
12: shower -> rain
37: storm -> storm-day
38: storm -> storm-day
39: storm -> shower-day
40: shower -> rain
45: shower -> shower-night
47: shower -> storm-night
Download location is the same.
Report
biophysics
11 years ago
Report
mwhitlock
11 years ago
Perhaps it would be less odious to distribute a script that fetches the images from the Yahoo! web server and builds the SVG. Then it would be up to each end user as to whether they want to use the Yahoo! images in the Simple Weather Forecast plasmoid.
Report
TotoKid
11 years ago
Report
TotoKid
11 years ago
Report
L3x
11 years ago
Report
biophysics
11 years ago
I am using kde 4.2 from kubuntu and it is fine.
may be you can try changing:
#!/bin/sh
to
#!/bin/bash
before installing.
Sorry but I do not know what is causing the problem.
Report
TotoKid
11 years ago
Report