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

kalaschnikow

12 years ago

same problem here. fonts worked nice in version 0.2

maybe you should add the possibility to change fonts+size manually (like in "adjustable clock" plasmoid)

Report

patkoscsaba

12 years ago

I don't think it's becouse the font size. More likely becouse the font dpi. I think the only difference between the Mandriva 2009 I have on the laptop and on the desktop computers is the font dpi. On the desktop I use 100dpi fonts, on the laptop the default 75dpi fonts.
If anyone needs my version, leave me a private message with your email address, i'll mail it to you.

I don't want to put it here, becouse it would not be fair for the author ... it is his credit, I marely made small modifications.

Report

patkoscsaba

12 years ago

Never mind!

E edited your code to better align things and to use "+" sign for positive temperatures.

If you would like to have the modified version, leave me a private message here on kde-look.org.

Report

Yannig

12 years ago

To remove the call of wget within the plasmoid, add a new include in top of plasma-weatherforecast.cpp :
...
#include <kio/job.h>
...

And change collectData method with the one bellow :

void Plasma_Weather::collectData()
{
//retrive the weather file
QString url = "http://weather.yahooapis.com/forecastrss?p=" + zip;

if(tempType == "C")
{
url.append("&u=c");
}

KIO::file_copy(url, QDir::homePath() + "/.weather.xml", -1, KIO::Overwrite | KIO::HideProgressInfo);
}

In CMakeList.txt, change the line target_link_libraries with the following one :
target_link_libraries(plasma_applet_weatherforecast
${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})


Now, the plasmoid do not need wget anymore and as a nice side effect, you get proxy support.

You can retrieve the diff here : http://pastebin.com/m3ef324e5

Regards,

Yannig

Report

C

biophysics

12 years ago

Thanks a lot.

I will add it in next release.

Report

gerrysw11

12 years ago

Great work, looks really nice. Thank you

Do you have any plans to expand it (e.g., sunrise, sunset, wind speed)?

Report

voidpl

12 years ago

I was really looking forward to see the plasmoid that would be something like Liquid Weather - and your work is very nice :)


Yet, I've noticed one tiny issue: If I'm offline at startup, it looks weird - I can see the entire iconsets drawn on the plasmoid, probably because weather data cannot be downloaded, so maybe it would be possible to handle such situation in some way (displaying some message or displaying last available weather data )
Anyway, I don't find this issue important, but only letting you know about it :)

Great job!
Regards,

Report

footer

12 years ago

My fonts look really crummy compared to yours. They're all jagged, not smooth at all. I'd provide a screenshot if that was possible here. :-)

Any suggestions? I'm using Kubuntu 8.10. Great plasmoid though, much better than the standard one!

Thanks!

Report

C

biophysics

12 years ago

try oxygen theme. and post screenshot at imagebin

How do the other plasmoids look ? also crummy ?

Report

footer

12 years ago

I was using oxygen theme. Now I'm using the silicon theme which I think is the theme in the author's screenshot. However, my problem was not the theme but the anti-aliasing settings:

System Settings --> Appearance --> Fonts

I had to enable anti-aliasing and under the configure button, I have checked both exclude range (8-15p) and use sub-pixel rendering (RGB/Full).

This seemed to solve the problem of ugly fonts in this weather plasmoid as long as I have it large enough (since I have the range excluded checked). I like to have some of the smaller fonts excluded because they look better in the rest of the system and in Firefox.

Thanks for the reply!

Report

footer

12 years ago

I was using oxygen theme. Now I'm using the silicon theme which I think is the theme in the author's screenshot. However, my problem was not the theme but the anti-aliasing settings:

System Settings --> Appearance --> Fonts

I had to enable anti-aliasing and under the configure button, I have checked both exclude range (8-15p) and use sub-pixel rendering (RGB/Full).

This seemed to solve the problem of ugly fonts in this weather plasmoid as long as I have it large enough (since I have the range excluded checked). I like to have some of the smaller fonts excluded because they look better in the rest of the system and in Firefox.

Thanks for the reply!

Report

lfoss

12 years ago

Nice Plasmoid. Working fine in Kubuntu 8.10, Thanks!

Report

jackfalstaff

12 years ago

CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/jon/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)


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.

-- Configuring incomplete, errors occurred!

Report

hakova

12 years ago

[root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` --debug-output ..
Running with debug output on.
-- The CXX compiler identification is unknown
Called from: [2] /usr/share/cmake-2.6/Modules/CMakeDetermineCXXCompiler.cmake
[1] /home/hako/Yazilim/plasma-weatherforecast-0.2/CMakeLists.txt
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Called from: [1] /home/hako/Yazilim/plasma-weatherforecast-0.2/CMakeLists.txt
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/root/.kde4/share/apps;/var/lib/mandriva/kde4-profiles/powerpack/share/apps;/var/lib/mandriva/kde4-profiles/common/share/apps;/usr/share/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/hako/Yazilim/plasma-weatherforecast-0.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/hako/Yazilim/plasma-weatherforecast-0.2/CMakeLists.txt
-- Configuring done

After this, make returns with a complaint about the absence of make file, since targets were not indicated.

Any ideas? I am using Mandriva 2009.

Report

C

biophysics

12 years ago

install cmake* compiler

Report

hakova

12 years ago

OK, I installed cxx libraries and a couple of other stuff Ithought might be related to cmake.

$ cmake --version
cmake version 2.6-patch 1

$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` --debug-output ..
Running with debug output on.
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/hako/.kde4/share/apps;/var/lib/mandriva/kde4-profiles/powerpack/share/apps;/var/lib/mandriva/kde4-profiles/common/share/apps;/usr/share/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/hako/Yazilim/plasma-weatherforecast-0.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/hako/Yazilim/plasma-weatherforecast-0.2/CMakeLists.txt
-- Configuring done

Do I still need more modules or what?

Thanks for the guidance.

Report

hakova

12 years ago

After installing kdeplasma-addons-devel package, successful compilation was achieved. Great tool, more informative than the basic weather applet. Thanks for the help.

Report

moshewe

12 years ago

Works great!
Good job!

I don't want to sound rude, but I have something to add to your TODO list: tracking the city info automatically.

It's also non-trivial to get it via Yahoo!

Report

C

biophysics

12 years ago

sorry but I do not understand. what do you mean by tracking city info ? Many thanks

Report

jimreynold2nd

12 years ago

I think he meant the ability to use some IP tracking service to find where the computer is.

Report

oxi

12 years ago

That'd be great! I shall add however I think this should be included as an option, (maybe the default one,) but either keep the current city code selector, or include a more friendly one.

Maybe you want to know the wheather for another city, so IMO it'd definitely need to be an option.

Regards

Report

C

biophysics

12 years ago

well. Hmmmm. I hope some people might have some privacy concerns.

Anyways, I am having some exams in the next weeks. So hope to code more features soon.

Expect a new release in December.
Many thanks

Report

bmw

12 years ago

Hi! Getting different install errors. Please advise. Here is install stdout:

plasma-weatherforecast-0.2/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` --debug-output ..
Running with debug output on.
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)
Called from: [4] /usr/share/kde4/apps/cmake/modules/FindQt4.cmake
[3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found X11: /usr/lib/libX11.so
Called from: [5] /usr/share/kde4/apps/cmake/modules/FindX11.cmake
[4] /usr/share/kde4/apps/cmake/modules/FindQt4.cmake
[3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found Automoc4: /usr/bin/automoc4
Called from: [4] /usr/share/kde4/apps/cmake/modules/FindAutomoc4.cmake
[3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found Perl: /usr/bin/perl
Called from: [4] /usr/share/cmake-2.6/Modules/FindPerl.cmake
[3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found KDE 4.1 include dir: /usr/include
Called from: [3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found KDE 4.1 library dir: /usr/lib
Called from: [3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
Called from: [3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Found automoc4: /usr/bin/automoc4
Called from: [3] /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
[2] /usr/share/cmake-2.6/Modules/FindKDE4.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:53 (MESSAGE):
Could not find REQUIRED package Plasma
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:11 (find_package)


Called from: [2] /usr/share/kde4/apps/cmake/modules/FindPlasma.cmake
[1] /home/bmw/Downloads/plasmoids/plasma-weatherforecast-0.2/CMakeLists.txt
-- Configuring done

Report

C

biophysics

12 years ago

apt-get install libplasma-dev libplasma2 kdebase-plasma-kde4 kdeplasma-addons-dev libplasma1

Report

bigmac60

12 years ago

Its working great on intrepid but had a couple
of thoughts. Adding a third day or the option
would make it more useful and normally I see
the high temp as the top number or the first.

It looks good and works well for me.

tnx

bob

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