Warning: session_start(): open(/tmp/sess_bq9knbpq6lflo4uo7v85ql4cu4, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
plasma_pyweather openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (6) .- Knowledge Base  . 

plasma_pyweather

   1.7  

Plasmoid Script

Score 90%
plasma_pyweather
zoom


plasma_pyweather
zoom


plasma_pyweather
zoom


Link:  Link
Downloads:  7004
Submitted:  Aug 12 2009
Updated:  Jul 9 2010

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.




Changelog:

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.




LicenseGPL
(plasma_pyweather.plasmoid)
Send to a friend
Subscribe
Other  Content  from rangalo
Report inappropriate content



goto page: prev   1  2  3  4 

-
.

 No settings retention

 
 by brucew on: Oct 4 2009
 
Score 50%
brucewbrucew
Alcohol Justice
Home

Using Kubuntu 9.10. Installed using Plasma installer without any problem.

It loses all the settings at every reboot.

Please advise.


Reply to this

-

 Re: No settings retention

 
 by jmatter on: Nov 17 2009
 
Score 50%

If you're comfortable monkeying around with code, it's pretty simple to change the default location from Munich to wherever you are. http://github.com/rangalo/plasma_pyweather has the source code. Go to /rangalo-plasma_pyweather-1c000f3/contents/code and open up the file main.py in your favorite text editor, go to line 44 or so, and change the default settings. You'll have to change the name of the plasmoid so it doesn't conflict with the original version when you install this, and I forget how I did that, but I have faith in you. If you need more clarification, I'll gladly try to make my explanation more straightforward.


Reply to this

-

 Re: Re: No settings retention

 
 by rangalo on: Nov 17 2009
 
Score 50%

You are correct.

It is easy to change the default location.

Moreover, you should have a file .weather.cfg file in you home folder. You can also edit the file manually and set the location there.

Meanwhile, I am now back from vacation and try to fix the issue permanently. Actually, I use debian and I haven't had this problem.

Thanks,
Hardik


Reply to this

-

 New version 1.3

 
 by rangalo on: Nov 18 2009
 
Score 50%

I have fixed the but with Kubuntu. Now it is possible to save settings.

Also added new conditions for overcast, fog, snow and smoke.


Reply to this

-

 Can´t install!!

 
 by DevilMayCry on: Nov 22 2009
 
Score 50%

As I´m trying to install the plasmoid, there´s an error message: The installation failed /home/xxxxx/plasma_pyweather.plasmoid
(It´s translated from German into English)


Phenom II 945 95W
HIS HD4670 iSilence4 1024MB
Tyan Tomcat n3400b, 4GiB DDR2 800
Samsung SyncMaster 2433BW
OpenSUSE 11.1 KDE 4.3.3, Win 7 x64

Reply to this

-

 Re: Can´t install!!

 
 by rangalo on: Nov 22 2009
 
Score 50%

Try to install with plasmapkg command like following.

1. download the plasmoid file.

2. plasmapkg -i <path_to_plasmoid_file>

Make sure you don't have the older version of the plasmoid.

plasmapkg -l | grep weather

Above command will give list of weather plasmoids installed.

plasmapkg -r plasma_pyweather

above command will remove the older version if already installed.

Then reinstall.


Reply to this

-

 Re: Re: Can´t install!!

 
 by DevilMayCry on: Nov 23 2009
 
Score 50%

Thank you for the quick reply but it still doesn´t work! It´s not already installed and the error message is still shown. Do I need root privileges to install?


Phenom II 945 95W
HIS HD4670 iSilence4 1024MB
Tyan Tomcat n3400b, 4GiB DDR2 800
Samsung SyncMaster 2433BW
OpenSUSE 11.1 KDE 4.3.3, Win 7 x64

Reply to this

-

 Re: Re: Re: Can´t install!!

 
 by rangalo on: Nov 24 2009
 
Score 50%

Generally you don't need root access for installing a plasmoid.

I don't have any clue why the installation fails in your case from the error message.


Reply to this

-

 Re: Re: Re: Re: Can´t install!!

 
 by DevilMayCry on: Nov 24 2009
 
Score 50%

Perhaps it´s a KDE-Bug and I guess I should wait for a new KDE 4.3 release.
Thanks for your help!


Phenom II 945 95W
HIS HD4670 iSilence4 1024MB
Tyan Tomcat n3400b, 4GiB DDR2 800
Samsung SyncMaster 2433BW
OpenSUSE 11.1 KDE 4.3.3, Win 7 x64

Reply to this

-

 Can't get weather of Hong Kong

 
 by pariah2707 on: Jan 12 2010
 
Score 50%

Hi.

Thanks for your great work, I love its simplicity.

My problem is that a message of "This object could not be created for the following reason: Script initialization failed" would appear if I want to set my location to Hong Kong.

It worked flawlessly for other locations like Munich, Beijing or Macau. I tried "Hong Kong,Hong Kong", "HongKong,HongKong", "HongKong," and "HongKong" in google, i.e.
http://www.google.com/ig/api?weather=mylocation, all seems to give correct result. But if I have these setting in the configuration, it just wouldn't work.

Hard-coding my location into main.py and weatherConfig.py gives the same error.

I'm using Kubuntu 9.10. Thanks.


Reply to this

-

 Re: Can't get weather of Hong Kong

 
 by rangalo on: Jan 13 2010
 
Score 50%

This was due to wrong format of wind condition for certain cities.

Raffaele has submitted a nice patch and the bug has bin fixed in the latest version 1.4 of the plasmoid.


Reply to this

-
.

 Invalid Temperatures

 
 by mattheyu on: Feb 6 2010
 
Score 50%

I'm located in Waco, TX, running Kubuntu 9.10. I have the units set to imperial.

It currently states the the high for tomorrow is 127 F. I know it gets pretty warm in Texas, but not quite that hot.

I assume the applet is fetching the temperature in Celsius and then converting it, but there is an error in the formula. I'd fix it myself, but I'm not sure where to start.


Thanks,
Mattheyu

Reply to this

-

 Re: Invalid Temperatures

 
 by tuxmm on: Mar 3 2010
 
Score 50%

Having the same problem in openSuse 11.2 KDE 4.2.5. I would look into the source too, but don't have much time these days. However, I will provide the necessary formula in case you need it:

Fahrenheit= [(9/5)*Celsius + 32]

Example: Fahr.= [(9/5)*6 +32]= 42.8 I think the plasmoid was giving somewhere around 83.

Good luck fixing this code! Your weather applet is the best I've tried, so I look forward seeing the Imperial temperatures fixed.

Best to you!


Ernõ
Reply to this

-

 Re: Re: Invalid Temperatures

 
 by rangalo on: Mar 4 2010
 
Score 50%

Hi Guys,

There is a bug !

I just fixed it locally and will upload the fixed version soon.

Actually, I was using the same formula, but the change of the names of the units (Metric and Imperial) introduced this bug.

With the new upload the bug should be fixed.

Thanks and sorry for the annoyance.


Reply to this

-

 cant install

 
 by XZaka on: Oct 5 2010
 
Score 50%

hello, cant install it, i m using debian squeeze with kde 4.5.1
this is the installation process:

zaka@debian:~/Downloads$ plasmapkg -i plasma_pyweather.plasmoid
"KConfigIni: In file /tmp/kde-zaka/plasmapkgEpVWz4/metadata.desktop, line 1: " Invalid entry (missing ']')
"KConfigIni: In file /tmp/kde-zaka/plasmapkgEpVWz4/metadata.desktop, line 2: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-zaka/plasmapkgEpVWz4/metadata.desktop, line 3: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-zaka/plasmapkgDiLASf/metadata.desktop, line 1: " Invalid entry (missing ']')
"KConfigIni: In file /tmp/kde-zaka/plasmapkgDiLASf/metadata.desktop, line 2: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-zaka/plasmapkgDiLASf/metadata.desktop, line 3: " Invalid entry (missing '=')
plasmapkg(18071)/libplasma Plasma::Package::installPackage: Package plugin name not specified
Installation of /home/zaka/Downloads/plasma_pyweather.plasmoid failed.


Reply to this

-

 Re: cant install

 
 by rangalo on: Oct 7 2010
 
Score 50%

Hi,

Looks like you have hit the following bug:

https://bugs.kde.org/show_bug.cgi?id=249980


They have also suggested a workaround in the comment #2.

Here the link to the workaround.
https://bugs.kde.org/show_bug.cgi?id=249980#c2

Please try and let me know, if it works.


Reply to this

goto page: prev   1  2  3  4 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team