[RELEASE] Weather.com Plus Plugin - skinnable via the new Weather Plugin API in XBMC!

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
boyofford Offline
Member
Posts: 61
Joined: Apr 2009
Reputation: 0
Thumbs Up    Post: #51
Great plugin, just sorted it out in transparency (ran in to noobie daft probs, all good now)
find quote
aptalca Offline
The Dude
Posts: 827
Joined: Sep 2009
Reputation: 17
Post: #52
I also have the intermittent python error (default.py) when starting XBMC with weather plus. I don't know what it depends on whether I get it or not. I am using 22516 and transparency 2.11

debug:
http://pastebin.com/m75c6d8ad
find quote
stoli Offline
Skilled Skinner
Posts: 2,405
Joined: Nov 2008
Reputation: 30
Location: Florida
Post: #53
I'm not sure if there is anything that can be done about this, but for some reason my "Feels Like" and "Humidity" values are always 32 for my city. Any other city or town I have tried works fine, so I am guessing it is an issue with weather.com

The weather.com site and rss feed both have the correct values.... If anyone can shed a little light on this, I would appreciate it. The correct city info on weather.com is here: http://www.weather.com/weather/local/USFL0267

Thanks!
find quote
Shalashaska Offline
Member
Posts: 70
Joined: Jun 2009
Reputation: 0
Location: France
Post: #54
aptalca Wrote:I also have the intermittent python error (default.py) when starting XBMC with weather plus. I don't know what it depends on whether I get it or not. I am using 22516 and transparency 2.11

debug:
http://pastebin.com/m75c6d8ad

Me too, same intermittent error ^^, running Transparency 2.01 and XBMC Nightly Build Patched 23060, will post a debug log later
find quote
changeling Offline
Junior Member
Posts: 11
Joined: Oct 2009
Reputation: 0
Post: #55
Nuka,

My XBMC refuses to recognize or load WeatherClient.pyo, nor will python itself import the object.

Code:
00:53:46 T:2547678064 M:1121046528  NOTICE: Traceback (most recent call last):
00:53:46 T:2547678064 M:1121046528  NOTICE:   File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/default.py", line 43, in <module>
00:53:46 T:2547678064 M:1121046528  NOTICE: import resources.lib.WeatherClient as WeatherClient
00:53:46 T:2547678064 M:1121046528  NOTICE: ImportError
00:53:46 T:2547678064 M:1121046528  NOTICE: :
00:53:46 T:2547678064 M:1121046528  NOTICE: No module named WeatherClient
00:53:46 T:2547678064 M:1121046528   ERROR: Scriptresult: Error

Python gives me a bad magic number in pyo. I suspect this is the result of it being an object compiled either on windows or a different architecture than x86. Could you send me the py? I assume you include it as an object for speed of loading and not to prevent reverse-engineering, right?

For what it's worth, I'm running on a linux box. Would love to overcome this little hurdle.

Thanks,

- Chris
(This post was last modified: 2009-10-15 03:56 by changeling.)
find quote
rickx Offline
Senior Member
Posts: 159
Joined: Feb 2009
Reputation: 0
Post: #56
Hi Nuka,
I've been curious to see this plugin in action, but I've never been able to run it yet...
I'm on linux with r22528.

what I get is
Code:
11:56:14 T:2950691728 M:1432535040  NOTICE: Traceback (most recent call last):
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/default.py", line 41, in ?
11:56:14 T:2950691728 M:1432535040  NOTICE: Main()
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 68, in __init__
11:56:14 T:2950691728 M:1432535040  NOTICE: self._fetch_weekend_forecast()
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "/home/xbmc/.xbmc/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 285, in _fetch_weekend_forecast
11:56:14 T:2950691728 M:1432535040  NOTICE: forecasts = self.WeatherClient.fetch_weekend_forecast()
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 830, in fetch_weekend_forecast
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 390, in __init__
11:56:14 T:2950691728 M:1432535040 WARNING: Trying to access old style dir: F:/source/XBMC-Linux/plugins/weather/weather.com plus/resources/lib/WeatherClient.py
11:56:14 T:2950691728 M:1432535040  NOTICE:   File "F:\source\XBMC-Linux\plugins\weather\weather.com plus\resources\lib\WeatherClient.py", line 519, in _get_forecast
11:56:14 T:2950691728 M:1432535040  NOTICE: IndexError
11:56:14 T:2950691728 M:1432535040  NOTICE: :
11:56:14 T:2950691728 M:1432535040  NOTICE: list index out of range
11:56:14 T:2950691728 M:1432535040   ERROR: Scriptresult: Error

After I close the error alert window, xbmc restarts. And it's not intermittent, it's every time. Only choice is remove it.
As suggested, giving the open WeatherClient.py would certainly help - supposing you're busy these days.
I also had a minor issue with the plugin failing to recognize the xbmc svn revision (that string was pre9.10 r22528M) which I solved changing this line in default.py
Code:
xbmc_rev = int( xbmc.getInfoLabel( "System.BuildVersion" ).split( " r" )[ -1 ] )
to
Code:
xbmc_rev = int( xbmc.getInfoLabel( "System.BuildVersion" ).split( " r" )[ -1 ][0:5] )
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #57
rickx Wrote:Hi Nuka,
I've been curious to see this plugin in action, but I've never been able to run it yet...
I'm on linux with r22528.

you could try if a more recent build of xbmc fixes it.
there were some python related issues before, but they should be fixed by now:
http://trac.xbmc.org/ticket/6839
http://trac.xbmc.org/ticket/6430

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Macfionn Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #58
I have version XBMC-9.04.1.
When I go to install weather.com plus (via SVN Repo Installer), it shows in red letters not compatible.
It starts to tell me what version 'is' compatible, but its cut off, thereby unreadable.

So can anyone tell me what version i need pls?
Not for not, I am attempting to install this on Xbox.

Thank you.
Mac.
find quote
Macfionn Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #59
I just noticed that Nuka1195 hasn't posted to this weather.com support thread since the end of August.
Is that a sign that this script is no longer being developed or supported for issues?
(This post was last modified: 2009-12-03 23:24 by Macfionn.)
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #60
Quote:
[weather.com plus]

-changed: version -> 1.1.9b
-fixed: include .py not .pyo for other python platforms

here you go ceros? (i think)

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Post Reply