XBMC Community Forum
[RELEASE] Weather Underground (default xbmc weather addon) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (/forumdisplay.php?fid=155)
+---- Thread: [RELEASE] Weather Underground (default xbmc weather addon) (/showthread.php?tid=116668)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


RE: [RELEASE] Weather Underground (default xbmc weather addon) - sector72 - 2012-05-04 21:10

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?


RE: [RELEASE] Weather Underground (default xbmc weather addon) - ronie - 2012-05-05 22:06

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...


RE: [RELEASE] Weather Underground (default xbmc weather addon) - ronie - 2012-05-06 03:26

weather.wunderground-0.1.7.zip

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


RE: [RELEASE] Weather Underground (default xbmc weather addon) - nessus - 2012-05-06 04:12

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.


RE: [RELEASE] Weather Underground (default xbmc weather addon) - ronie - 2012-05-06 04:21

should be fixed in:
weather.wunderground-0.1.8.zip

- fixed: escape slashes in path


RE: [RELEASE] Weather Underground (default xbmc weather addon) - nessus - 2012-05-06 04:37

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]


RE: [RELEASE] Weather Underground (default xbmc weather addon) - Martijn - 2012-05-06 11:27

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']: 



RE: [RELEASE] Weather Underground (default xbmc weather addon) - schumi2004 - 2012-05-06 12:26

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?


RE: [RELEASE] Weather Underground (default xbmc weather addon) - Martijn - 2012-05-06 12:29

You already have your location setup i guess?
Try another skin and see if that one does work.


RE: [RELEASE] Weather Underground (default xbmc weather addon) - nessus - 2012-05-06 13:56

(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]