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

TotoKid

12 years ago

And, please, remove that "Data from Yahoo weather"! There's no need to print it on the plasmoid. :)

Report

C

biophysics

12 years ago

Yahoo terms and conditions state that "for using their feed " the user have to put it. If you do not want it you can look in the .cpp file and comment that line. Put a "//" in front. line 359: in file plasma-simpleweatherforecast.cpp

Report

TotoKid

12 years ago

Thank you for this hint!

Report

hobie

12 years ago

Build and install completed successfully. I can see the files in /usr/lib/kde4, but the applet doesn't show up in Add Widgets. I executed kbuildsycoca4, but it didn't help.

Report

C

biophysics

12 years ago

can you just logout and login.
what is your
kde4-config --prefix ?

Report

hobie

12 years ago

I'm not sure what you mean, but if I run that as a command, I see /opt/kde-nightly

Report

C

biophysics

12 years ago

try

cmake --release -DCMAKE_INSTALL_PREFIX=/opt/kde-nightly --debug-output ..

You should have the plasmoid files inside /opt/kde-nightly/lib/kde4


Report

gracca

12 years ago

It works fine in Fedora 10 + KDE 4.2.00, my only problem is the degree symbol. Instead, it appears a diamond with a question mark inside. How can I fix it?

Thank you very much!
German.

Report

C

biophysics

12 years ago

Hmmm... I think it is something to do with locale setting. I am not an expert in this. I will try to google and tell you.

Report

Dimanish

12 years ago

Thanks for plasmoid.
Two small wishes.
1. Set up more than 2 days for showing weather (up to 4 for example).
2. Ability to reload weather by context menu, not await then fetch update time done.

Report

C

biophysics

12 years ago

I am now trying to change the source from Yahoo to BBC using the default kde-plasma-engines and implement wind and other information. I also have a day job... hope it will be done in a few weeks.

Report

Musikolo

12 years ago

Hi,

I would like share an idea I have that could improve this plasmoid a little bit. You could add an "City name" input box and a "Search" button. This could be used to find the city code needed to configure the plasmoid. For instance, if you type "London", the plasmoid would open the default browser at http://weather.yahoo.com and London will be shown. The city name could be submitted in the URL (GET method). Thus, the user will only had to copy and paste the wanted location code.

Maybe the most difficult thing is to find out a way to submit the required parameters, but I think it deserves the effort. Not sure if the GET method would work, but if it wouldn't, local intermidiate page could submit the parameters for us.

I hope you like it! :-)

Report

C

biophysics

12 years ago

OK I will have a look.

Report

st4nd3l

12 years ago

http://standa.schattke.cz/files/packages/plasma/plasma-weatherforecast_1.1-1_i386.deb

Report

alex000090

12 years ago

Saint-Petersburg,RU 190000 (and 19000 too) don't work.

Report

C

biophysics

12 years ago

I assume you mean St. Petersburg Russia.

This is the link:
http://weather.yahoo.com/Saint-Petersburg-Russia/RSXX0091/forecast.html

So, try with RSXX0091. Works for me.

Report

pinguin61

12 years ago

I get this error:
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/mauri/.kde4/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)


Called from: [2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/mauri/plasma-weatherforecast-1.1-kde-4.2/CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

Called from: [1] /home/mauri/plasma-weatherforecast-1.1-kde-4.2/CMakeLists.txt
-- Configuring incomplete, errors occurred!

Report

C

biophysics

12 years ago

you need the debian equivalent of this package:
http://packages.ubuntu.com/intrepid/kdelibs5-dev

Report

pinguin61

12 years ago

yes, thanks
I thought about that ten minutes after posting
plasmoid installed

Report

sbruno

12 years ago

Hi, I just tried your version 1.0 for KDE 4.2 and it worked great. Thanks.

I would like to suggest just two things for the install script:

Change #!/bin/tcsh to #!/bin/sh
It failed in my case because I use bash and have not installed tcsh

And you may change the text

echo "Now run sudo make install "

to
echo "Now run cd build; sudo make install "

or similar, because it will not work in the base directory.

Regards,

Santiago.

Report

C

biophysics

12 years ago

will be fixed in next release.

Thanks

Report

fwells

12 years ago

Forecasts show only block of small weather icons. No actual weather information. However, the current weather is properly displayed.

Report

C

biophysics

12 years ago

I also observed the same problem. This is happening after I included "proxy-support". The code is from Yanning.

Workaround: I found that if you "right-click" -> settings and change the time - it will refresh. Then it shows updates both images.

Yanning, can you fix it please.

Report

Yannig

12 years ago

It seems that my comment just went away ...

But thanks to Klipper, here is my comment back again !

I don't understand where the code goes wrong but anyway, here's the patch against the last version of weather forecast plasmoid :

The diff in pastebin :
http://pastebin.com/d5a6d52c1

The cpp files :
http://pastebin.com/d5f17d631

The header files :
http://pastebin.com/d75658896


I have also hidden the progress bar (KIO::get(proxy_xml_file, KIO::NoReload, KIO::HideProgressInfo);) and clean up the code to get XML data.

Regards,

Yannig (without n before the 'g' ;) )

Report

C

biophysics

12 years ago

Sorry Yannig for "the -n".

Many thanks for the patch. I tried it now and still there is same problem. (the current temp. shows but not below).

Can you patch it like it downloads a .xml file and read it (if you have time).

Many thanks for that...

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