
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 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.
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.
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
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
https://lists.ubuntu.com/archives/kubuntu-users/2009-June/044403.html
then
~$ apt-cache search plasmapkg
but it returned nothing
Report
rangalo
11 years ago
plasmapkg pr plasma_pyweatehr
If not, first remove and then try to install.
Report
eprosen
11 years ago
~$ 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
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
rangalo
11 years ago
The "Add Widget" doesn't work with script plasmoids yet.
Report
eprosen
11 years ago
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
rangalo
11 years ago
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
~$ 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
Report
eprosen
11 years ago
Report
eprosen
11 years ago
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
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
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
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
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
rangalo
11 years ago
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
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
rangalo
11 years ago
I installed the seamless theme using the theme installer from kde4.
Report
rangalo
11 years ago
Here
http://gist.github.com/171312
Report
eprosen
11 years ago
The seamless theme is working fine now.
Thanks
Report
rangalo
11 years ago
Report
GiorgioAllocco
11 years ago
Where is the configuration file?
Report
rangalo
11 years ago
The config file is ~/.weather.cfg
Make sure it is not deleted every time you restart kde.
Report
prasadae
11 years ago
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