[RELEASE] Weather Underground (default xbmc weather addon)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sector72 Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Post: #161
Since animated maps are no longer free, I'm curious... How about shifting the animation responsibilities onto the script? That is: let script to construct its own animated maps by downloading the static map every 15-30 minutes and assembling the last 7-10 static images into an animated image?
find quote
ronie Offline
Team-XBMC Member
Posts: 8,259
Joined: Jan 2009
Reputation: 108
Post: #162
weather.wunderground-0.1.6.zip

fixed:
- removed the 128x128 from the weather icon location
- added temp unit for the hourly feels-like value
- 36 hour heading and temp for certain languages

added:
- provide 3 day weekend forecast <- just to get everyone off my back ;-p
- keep 4 hours worth of satellite images to create an animation



@pkscuot: sorry, you'll have to adjust the weekend code in your mod again...

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
ronie Offline
Team-XBMC Member
Posts: 8,259
Joined: Jan 2009
Reputation: 108
Post: #163
weather.wunderground-0.1.7.zip

fixed:
- delete cached images when user changes weather location
- clear alert properties when there are no more alerts

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
nessus Offline
Skilled Skinner
Posts: 584
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #164
Ronie... i get an error with latest version. Do you need a full debug log ?
Code:
05:07:16 T:3192  NOTICE: -->Python Interpreter Initialized<--
05:07:19 T:3192   ERROR: JSONRPC: Failed to parse '{ "jsonrpc" : "2.0" , "method" : "Files.GetDirectory" , "params" : { "directory" : "C:\Users\User\AppData\Roaming\XBMC\userdata\addon_data\weather.wunderground\map​" , "sort" : { "method" : "file" } } , "id" : 1 }'
05:07:19 T:3192   ERROR: Error Type: <type 'exceptions.KeyError'>
05:07:19 T:3192   ERROR: Error Contents: ('result',)
05:07:19 T:3192   ERROR: Traceback (most recent call last):
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 544, in <module>
                                                forecast(location)
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 144, in forecast
                                                properties(data,loc)
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 490, in properties
                                                if (json_response['result'] != None) and (json_response['result'].has_key('files')):
                                            KeyError: ('result',)

P.S. cheers for the 3 day weekend.
(This post was last modified: 2012-05-06 04:13 by nessus.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,259
Joined: Jan 2009
Reputation: 108
Post: #165
should be fixed in:
weather.wunderground-0.1.8.zip

- fixed: escape slashes in path

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
nessus Offline
Skilled Skinner
Posts: 584
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #166
Sorry. No. I have almost the same error...
Code:
05:35:07 T:4556  NOTICE: -->Python Interpreter Initialized<--
05:35:10 T:4556   ERROR: Error Type: <type 'exceptions.TypeError'>
05:35:10 T:4556   ERROR: Error Contents: 'NoneType' object is not iterable
05:35:10 T:4556   ERROR: Traceback (most recent call last):
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 544, in <module>
                                                forecast(location)
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 144, in forecast
                                                properties(data,loc)
                                              File "C:\Users\User\AppData\Roaming\XBMC\addons\weather.wunderground\default.py", line 491, in properties
                                                for item in json_response['result']['files']:
                                            TypeError: 'NoneType' object is not iterable

Also, maybe is from the above error but the day labels in weekend are mixed up

[Image: ek4z6e.jpg]
(This post was last modified: 2012-05-06 04:46 by nessus.)
find quote
Martijn Offline
Team-XBMC
Posts: 7,715
Joined: Jul 2011
Reputation: 115
Location: Dawn of time
Post: #167
I get the same error and I think I know how to fix.

Change line 490 of default.py to:
PHP Code:
if json_response['result']['files']: 

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-05-06 12:15 by Martijn.)
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #168
I see many different screens pass by but i'm not getting them on my system?

I'm using MQ3 skin and eveytime i select weather i'm getting a popup to select a location instead of the screens shown here.
Selecting that location doesn't do anything then.

Any ideas?

[Image: watched-clearlogo.jpg]
(This post was last modified: 2012-05-06 12:28 by schumi2004.)
find quote
Martijn Offline
Team-XBMC
Posts: 7,715
Joined: Jul 2011
Reputation: 115
Location: Dawn of time
Post: #169
You already have your location setup i guess?
Try another skin and see if that one does work.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
nessus Offline
Skilled Skinner
Posts: 584
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #170
(2012-05-06 11:27)Martijn Wrote:  I get the same error and I think I know how to fix.

Change line 490 of default.py to:
PHP Code:
if json_response['result']['files']: 

Martijn... that worked. No script error any more although i still have the mixed up day labels in weekend page and some weird high/low temp info in 36hour page if i select "English (US)" in XBMC International settings...

[Image: 30mmtsj.jpg]
(This post was last modified: 2012-05-06 13:58 by nessus.)
find quote
Post Reply