
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 screenlet is based off the ClearWeather screenlet by Whise. My goal is to create a screenlet that has increased user configuration options, while still staying somewhat simplistic. I intend to make SmoothWeather a single application that you can go to for your weather needs.
In this package I have included the Blue theme for ClearWeather as well as one I made which is based off of the Blue theme, but uses the Shiny icons. Those are the icons you can see in the screenshot.
I am not a python expert or anything, so if there are issues let me know here in the comments. Thanks!
Installation:
- extract the contents of the archive to the .screenlets directory under your home directory
- if you want to share the screenlet with other users on the same system extract the contents of the archive to /usr/local/share/screenlets/
Update:
- close the SmoothWeather screenlet if you have it running
- delete the SmoothWeather directory from your .screenlets or /usr/local/share/screenlets/ directory
- extract the contents of the updated version to the screenlets directory that you just removed the old version from
Upcoming Features:
NOTE: These are features that are being worked on for the future releases. These do not indicate that they will be incorporated in the next release.
- Audible/Visual alerts for severe/warning weather conditions
- Audible description of current conditions
- Condition description when mousing over a day weather icon
13 years ago
v0.3.1 12/12/07
Fixed a stability issue
v0.3 12/11/07
Added toggle on menu for weather radar
Cannot go from mini to radar or radar to mini
Adjusted graphics slightly for better alignment
Added custom background functionality to screenlet
Still allows for "standard" themes to work
Localized most options to external XML file
Cleaned up some unneeded code
Added radar map functionality to screenlet
Made radar map more eye pleasing
Put radar map gatherer into a seperate module
v0.2 11/24/07
Added descriptions to themes in properties
Added "Shiny Ocean" theme for this release
Modified alignment of daily weather icons to better line up under day name
Changed default location to a working location
Changed default theme and default to non-metric format
Made "Use Metric" a toggle option on main menu when screenlet is "right-clicked"
Added "f" or "c" next to current temp to indicate standard or metric units
Added "realtime" updates of options on screenlet
Added "Layout" tab to options for better organization for future
Added windspeed and direction to screenlet with layout option
Added visibility to screenlet with layout option
Adjusted size of current high/low/humid/wind text to be less bold
Adjusted scale of current weather icon
Fixed screenlet icon in properties and manager, and made it's background transparent
Fixed zip code dialog box to default to OK if you just press enter/return key
Fixed cancel button on zip code dialog box
v0.1 11/19/07
I have repackaged the changes I made to the screenlet into my own named SmoothWeather. This was per Whise who wanted to bring diversity to the screenlets.
13 years ago
v0.3.1 12/12/07
Fixed a stability issue
v0.3 12/11/07
Added toggle on menu for weather radar
Cannot go from mini to radar or radar to mini
Adjusted graphics slightly for better alignment
Added custom background functionality to screenlet
Still allows for "standard" themes to work
Localized most options to external XML file
Cleaned up some unneeded code
Added radar map functionality to screenlet
Made radar map more eye pleasing
Put radar map gatherer into a seperate module
v0.2 11/24/07
Added descriptions to themes in properties
Added "Shiny Ocean" theme for this release
Modified alignment of daily weather icons to better line up under day name
Changed default location to a working location
Changed default theme and default to non-metric format
Made "Use Metric" a toggle option on main menu when screenlet is "right-clicked"
Added "f" or "c" next to current temp to indicate standard or metric units
Added "realtime" updates of options on screenlet
Added "Layout" tab to options for better organization for future
Added windspeed and direction to screenlet with layout option
Added visibility to screenlet with layout option
Adjusted size of current high/low/humid/wind text to be less bold
Adjusted scale of current weather icon
Fixed screenlet icon in properties and manager, and made it's background transparent
Fixed zip code dialog box to default to OK if you just press enter/return key
Fixed cancel button on zip code dialog box
v0.1 11/19/07
I have repackaged the changes I made to the screenlet into my own named SmoothWeather. This was per Whise who wanted to bring diversity to the screenlets.
Meteorrock
7 years ago
Report
zetavu
11 years ago
Report
Karstaag
12 years ago
Are there any plans to fix these problems? I noticed the screenlet hasn't been updated in awhile.
Report
elizabethsarah
12 years ago
Report
excitari
12 years ago
Quote:CachingBackend: Loading <SmoothWeather12>
Creating new entry for SmoothWeatherScreenlet in /tmp/screenlets/screenlets.andre.running
Loading instances in: /home/andre/.config/Screenlets/SmoothWeather/default/
File: SmoothWeather1.ini
Creating new instance:
Traceback (most recent call last):
File "./SmoothWeatherScreenlet.py", line 693, in <module>
screenlets.session.create_session(SmoothWeatherScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 451, in create_session
session.start()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 233, in start
if self.__load_instances():
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 372, in __load_instances
sl = self.create_instance(id=filename[:-4], enable_saving=False)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 139, in create_instance
sl = self.screenlet(id=id, session=self, **keyword_args)
File "./SmoothWeatherScreenlet.py", line 74, in __init__
screenlets.Screenlet.__init__(self, width=int(self.width * self.scale), height=int(self.height * self.scale),uses_theme=True, **keyword_args)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 518, in __init__
self.register_service(service_class)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1004, in register_service
self.service = service_classobj(self, self.get_short_name())
File "/usr/lib/python2.5/site-packages/screenlets/services.py", line 64, in __init__
bus=dbus.SessionBus(), do_not_queue=True), self.objpath)
File "/var/lib/python-support/python2.5/dbus/service.py", line 127, in __new__
raise NameExistsException(name)
dbus.exceptions.NameExistsException: Bus name already exists: org.screenlets.SmoothWeather
Report
obiwankamote
13 years ago
Quote:--- modified/SmoothWeatherScreenlet.py 2008-01-22 12:40:19.000000000 +0800
+++ SmoothWeatherScreenlet.py 2007-12-13 03:53:50.000000000 +0800
@@ -18,7 +18,6 @@
import gobject
import weatherradar
import gtk
-import os
from gtk import gdk
@@ -157,10 +156,7 @@
unit = 'm'
else:
unit = 's'
- proxy=None
- if 'http_proxy' in os.environ.keys():
- proxy = {'http': os.environ['http_proxy']}
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit,proxies=proxy).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit).read()
forecast = []
dcstart = data.find('<loc ')
@@ -182,10 +178,7 @@
unit = 'm'
else:
unit = 's'
- proxy=None
- if 'http_proxy' in os.environ.keys():
- proxy = {'http': os.environ['http_proxy']}
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit,proxies=proxy).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12').read()
hforecast = []
for x in range(8):
Report
obiwankamote
13 years ago
Quote:--- modified/SmoothWeatherScreenlet.py 2008-01-22 14:08:39.000000000 +0800
+++ SmoothWeatherScreenlet.py 2007-12-13 03:53:50.000000000 +0800
@@ -19,7 +19,6 @@
import weatherradar
import gtk
from gtk import gdk
-import gconf
class SmoothWeatherScreenlet(screenlets.Screenlet):
@@ -157,11 +156,7 @@
unit = 'm'
else:
unit = 's'
- proxy=None
- client=gconf.client_get_default()
- if client.get_bool('/system/http_proxy/use_http_proxy')==True:
- proxy = {'http': 'http://'+client.get_string('/system/http_proxy/host')+':'+str(client.get_int('/system/http_proxy/port'))+'/'}
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit,proxies=proxy).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit).read()
forecast = []
dcstart = data.find('<loc ')
@@ -183,11 +178,7 @@
unit = 'm'
else:
unit = 's'
- proxy=None
- client=gconf.client_get_default()
- if client.get_bool('/system/http_proxy/use_http_proxy')==True:
- proxy = {'http': 'http://'+client.get_string('/system/http_proxy/host')+':'+str(client.get_int('/system/http_proxy/port'))+'/'}
- data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit,proxies=proxy).read()
+ data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit+'&hbhf=12').read()
hforecast = []
for x in range(8):
Report
obiwankamote
13 years ago
By the way to set the proxy I modified the SmoothWeatherScreenlet.py
by changing all calls to the urlopen method, adding the proxy.
proxies = {'http': 'http://proxy.dlsu.edu.ph:80'}
data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit, proxies=proxies).read()
Report
swiftfeet
13 years ago
Report
udolf
13 years ago
but good job
Report
swiftfeet
13 years ago
Report
swiftfeet
13 years ago
Report
hammergom
13 years ago
Might I ask, will this work with screenlets version 0.7?
If not, is there a guide or documentation for me to make it work?
Thanks in advance,
HaMMeR=GoM=iPwN
Report
swiftfeet
13 years ago
Report
hammergom
13 years ago
This is what I get:
ADD: SmoothWeatherScreenlet
import_and_create_screenlet: SmoothWeatherScreenlet
Unable to load '/usr/local/share/screenlets/SmoothWeather/SmoothWeatherScreenlet .SmoothWeatherScreenlet' - cannot import name ListOption
Class SmoothWeatherScreenlet not found.
I installed it to /usr/local/share/sreenlets
Thanks,
HaMMeR=GoM=iPwN
Report
swiftfeet
13 years ago
Report
sousuke
13 years ago
Report
swiftfeet
13 years ago
http://iqshvaku.deviantart.com/art/Vista-Starter-Edition-Walls-11-39489047
Report
swiftfeet
13 years ago
http://iqshvaku.deviantart.com/art/Vista-Starter-Edition-Walls-11-39489047
Report
tommohawk
13 years ago
Command line output:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
Report
swiftfeet
13 years ago
Report
swiftfeet
13 years ago
Report
swiftfeet
13 years ago
Report
Whise
13 years ago
change its name give it a new skin and youll be providing more diversity
Report
swiftfeet
13 years ago
Report