
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
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
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
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
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
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
Report
jaegerschnitzel
12 years ago
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
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
Report
jaegerschnitzel
12 years ago
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
Report
tarahmarie
12 years ago
For all the folks having problems with this one and pyqt. There is no solution yet.
Report
naisho
12 years ago
[email protected]:~/Downloads/plasmoids$ make
make: *** No targets specified and no makefile found. Stop.
Report
Bogdan84
12 years ago
same here
Report
naisho
12 years ago
Report
Bogdan84
12 years ago
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
Lenny just got the fix in past 24hrs...
new kdelibs and some other stuff.
Report
manim
12 years ago
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
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
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
Report
mefoster
12 years ago
Report
Yannig
12 years ago
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
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
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
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
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
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