plasma_pyweather

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

3
6.1
Description:

This is an extremely simple plasmoid written in python. It fetches weather information from google.com. It lets you configure the location and unit of the weather information.

Please feel free to send me bug reports and / or suggestions for improvement.


INSTALL:
$ plasmapkg -i plasma_pyweather.plasmoid

UPDATE:
I used the weather icons from here.
http://www.kde-look.org/content/show.php/Weather+Icons?content=84533

So, the credit goes to the original artist, painkiller10.

Note: I have implemented only for certain number of weather conditions, if you see a question mark image as weather conditions, please let me know, which condition it is and I will add the image for it.
Last changelog:

10 years ago

2010-07-09:
For version: 1.7
- Fixed a typo
- Now doesn't crash when running without internet

2010-03-04:
For version: 1.6

- Fixed the bug with wrong calculation of Imperial units
- Changed the name of the images from *.svgz to *.svg, because the new KDE - 4.4 stupidly considered all *.svgz files as gzip file and showed no images


2010-01-18:
For Version: 1.5
Changed the names of the units from US t Imperial and SI to Metric to be technically correct.

WARNING: If you already have an old config, you will get N/A for all temperatures until you select the proper unit system from the settings.


2010-01-13:
For Version 1.4:
Raffaele kindly submitted a patch for the bug fix. I didn't even know about the bug as it appears only for certain cities. Now the plasmoid can deal with incorrect format of wind condition.


For version 1.3
- Fixed the bug in Kubuntu. Now it is possible to save settings.
- Added new conditions for overcast, smoky and snow

for version 1.2

- Bug Fix:
Although, I could not reproduce the bug reported by many, about th configuration, I hope to have fixed it.

For version 1.1
- Bug Fix:

Now, the parameters are url-encoded to allow city names with spaces, thanks to Virginia Brassesco for pointing out the bug.

eprosen

11 years ago

I created a new user account. That solved the plasmapkg problem. I don't know how it solves the problem but I got this idea after some googling.

Then I manually downloaded your updated plasmoid and installed via the plasmapkg command and then created .weather.cfg manually. Now it remembers my location even after startup. So the problem is solved... but I guess I have to move my files from the other account :)

Cheers !

Report

eprosen

11 years ago

tried the instructions in

https://lists.ubuntu.com/archives/kubuntu-users/2009-June/044403.html

then

~$ apt-cache search plasmapkg

but it returned nothing

Report

C

rangalo

11 years ago

Did you remove the old version with the command

plasmapkg pr plasma_pyweatehr


If not, first remove and then try to install.

Report

eprosen

11 years ago

I did. Here is the result:
~$ plasmapkg -r plasma_pyweather
Plugin plasma_pyweather is not installed.

then tried reinstalling:

$ plasmapkg -i 110137-plasma_pyweather.plasmoid
Installation of /home/username/110137-plasma_pyweather.plasmoid failed.

the command ~$ plasmapkg --list shows the plasmoids. I tried to remove rssnow to see if the removal command works or not:

~$ plasmapkg -r rssnow
Removal of rssnow failed.

So is it a problem with the plasmapkg not working on my machine?

Thanks

Report

eprosen

11 years ago

Hi,
I tried to install the new version via Add widgets> install new widgets utility but getting the following errors:

/tmp/kde-username///110137-plasma_pyweather.plasmoid failed!

and

installation of /tmp/kde-username/// failed

Thanks,

Report

C

rangalo

11 years ago

Download the file and install with the plasmapkg command as mentioned in the description.

The "Add Widget" doesn't work with script plasmoids yet.

Report

eprosen

11 years ago

did that too...but got the error message

Installation of /home/username/110137-plasma_pyweather.plasmoid failed

same with the command
/home/username/plasma_pyweather.plasmoid

i.e.
Installation of /home/username/plasma_pyweather.plasmoid failed.

Thanks

Report

C

rangalo

11 years ago

For me it works after downloading the same file from kde-look.

Please check if you are supplying the correct path.

I didn't receive any such complaint yet.

Paste the exact command line and the result.



[hardik@sidbox: projects ]$ ll ~/dl/soft/110137-plasma_pyweather.plasmoid
-rw------- 1 hardik hardik 150317 2009-08-22 11:50 /home/hardik/dl/soft/110137-plasma_pyweather.plasmoid

Report

eprosen

11 years ago

I saved that file on desktop. The command lines and results are as follows:

~$ cd Desktop
~/Desktop$

~/Desktop$ plasmapkg -i 110137-plasma_pyweather.plasmoid

Installation of /home/username/Desktop/110137-plasma_pyweather.plasmoid failed.

I also tried the sudo

~/Desktop$ sudo plasmapkg -i 110137-plasma_pyweather.plasmoid

to get

Error: "/var/tmp/kdecache-username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-username" is owned by uid 1000 instead of uid 0.
Installation of /home/username/Desktop/110137-plasma_pyweather.plasmoid failed.
--

then, according to
http://ubuntuforums.org/showthread.php?t=1190829

problem may be due to plasmapkg:

~/Desktop$ plasmapkg
plasmapkg: One of install, remove, upgrade or list is required.
plasmapkg: Use --help to get a list of available command line options.

Report

tranceassemblage

11 years ago

I have Kubuntu 9.04 on my pc. and I tried to install "python-plasma" from Synaptic and that's all!!!!

Report

eprosen

11 years ago

sorry for the unintentional multiple posting

Report

eprosen

11 years ago

Hi,
I tried to install the new version via Add widgets> install new widgets utility but getting the following errors:

/tmp/kde-username///110137-plasma_pyweather.plasmoid failed!

and

installation of /tmp/kde-username/// failed

Thanks,

Report

eprosen

11 years ago

Hi,
I tried to install the new version via Add widgets> install new widgets utility but getting the following errors:

/tmp/kde-username///110137-plasma_pyweather.plasmoid failed!

and

installation of /tmp/kde-username/// failed

Thanks,

Report

eprosen

11 years ago

Hi,
I tried to install the new version via Add widgets> install new widgets utility but getting the following errors:

/tmp/kde-username///110137-plasma_pyweather.plasmoid failed!

and

installation of /tmp/kde-username/// failed

Thanks,

Report

eprosen

11 years ago

Hi,
I tried to install the new version via Add widgets> install new widgets utility but getting the following errors:

/tmp/kde-username///110137-plasma_pyweather.plasmoid failed!

and

installation of /tmp/kde-username/// failed

Thanks,

Report

eprosen

11 years ago

Hi,
this is a great plasmoid indeed. However, would it be possible for you to give me a step-by-step guide on how to save the config file. Everytime I login, I get the weather for Munich, Germany.
Also how did you get the transluscent background?

regards,

Report

C

rangalo

11 years ago

Can you check if ~/.weather.cfg file is created after you change the settings ?

And make sure the file is not deleted when you restart the KDE.

The translucent background is achieved by plamsa themes e.g. seamless.

Report

eprosen

11 years ago

I looked into my home folder but there is no .weather.cfg file even just after changing the weather settings.

about seamless: as instructed, I copied the seamless folder in /.kde/share/apps/desktoptheme/ (i have .kde in my home folder and not .kde4), and restarted. But it didnt work. Do I have to include it in startup option somehow?

I am using kubuntu-desktop on ubuntu, macbook machine.

Thank you for your time.

Report

C

rangalo

11 years ago

Then create the file as shown in the following link. Replace the values according to your location and preferred unit.

I installed the seamless theme using the theme installer from kde4.

Report

C

rangalo

11 years ago

sorry forgot to paste the link..

Here

http://gist.github.com/171312

Report

eprosen

11 years ago

I created the file as you said and restarted. But still it shows the weather of Munich Germany. The file does not get deleted with startup. I may be wrong, but my guess is somehow the machine does not see the config files while startup. I had a similar experience before with a .fonts.conf file which still doesnt work.

The seamless theme is working fine now.

Thanks

Report

C

rangalo

11 years ago

I have just uploaded the fixed version, try it and let me know.

Report

GiorgioAllocco

11 years ago

Nice plasmoid, but every time I log in into Kde, it loses the configuration (the location is again Munich, Germany)
Where is the configuration file?

Report

C

rangalo

11 years ago

I tested again on my system and it works.

The config file is ~/.weather.cfg

Make sure it is not deleted every time you restart kde.

Report

prasadae

11 years ago

Nothing fancy.
It would be nice if I could configure the detail of the current prediction.

Like Now I have Temp. Condition, humidity, wind. I should be able to choose what to show.

Condition IMHO, is best to be shown below its symbolic representation (Picture).

I do not know if google's api allows this, but how about configuring how many days forecast I want. ps: In my city, the weather is not really that predictable, so having day after's weather is next to useless! :-)

Report

10 years ago

2010-07-09:
For version: 1.7
- Fixed a typo
- Now doesn't crash when running without internet

2010-03-04:
For version: 1.6

- Fixed the bug with wrong calculation of Imperial units
- Changed the name of the images from *.svgz to *.svg, because the new KDE - 4.4 stupidly considered all *.svgz files as gzip file and showed no images


2010-01-18:
For Version: 1.5
Changed the names of the units from US t Imperial and SI to Metric to be technically correct.

WARNING: If you already have an old config, you will get N/A for all temperatures until you select the proper unit system from the settings.


2010-01-13:
For Version 1.4:
Raffaele kindly submitted a patch for the bug fix. I didn't even know about the bug as it appears only for certain cities. Now the plasmoid can deal with incorrect format of wind condition.


For version 1.3
- Fixed the bug in Kubuntu. Now it is possible to save settings.
- Added new conditions for overcast, smoky and snow

for version 1.2

- Bug Fix:
Although, I could not reproduce the bug reported by many, about th configuration, I hope to have fixed it.

For version 1.1
- Bug Fix:

Now, the parameters are url-encoded to allow city names with spaces, thanks to Virginia Brassesco for pointing out the bug.

12345678910
810
product-maker KAMiKAZOW Sep 14 2014 3 bad
product-maker Chtiland Aug 03 2014 3 bad
product-maker Paradoxe Nov 14 2013 3 bad
product-maker itsjustarumour2 Sep 25 2012 9 excellent
product-maker glewik Jun 24 2012 9 excellent
product-maker MaxEki Mar 26 2012 9 excellent
product-maker mi-schutka Oct 03 2011 9 excellent
product-maker malbec Jun 18 2011 9 excellent
product-maker grubstreet Jun 10 2011 9 excellent
product-maker Roadrunnerbs May 31 2011 9 excellent
product-maker bh21518 May 27 2011 9 excellent
product-maker sllxxe Apr 24 2011 9 excellent
product-maker hoellp Apr 22 2011 9 excellent
product-maker rwbehne1 Dec 09 2010 3 bad
product-maker wneiva Nov 29 2010 3 bad
product-maker felmur Nov 21 2010 3 bad
product-maker AHTOH Nov 20 2010 3 bad
product-maker jusko Oct 25 2010 3 bad
Be the first to comment
rwbehne1
Dec 09 2010
tanghus
Jun 16 2010
xadras
Aug 22 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
1.7
updated Jul 09 2010
added Aug 12 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2