• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 51
Broken Weather Underground
Ronie... i think (?) i found a couple bugs in v0.1.4

1. Icons are not showing and i think because of this. When removed the "128x128" from scripts code they show up
before
Code:
WEATHER_ICON     = xbmc.translatePath('special://temp/weather/128x128/%s.png')
after
Code:
WEATHER_ICON     = xbmc.translatePath('special://temp/weather/%s.png')

2. Predefined temp unit for feels like label in hourly page is missing
Code:
set_property('Hourly.%i.Temperature'     % (count+1), item['temp']['english'] + TEMPUNIT)
set_property('Hourly.%i.DewPoint'        % (count+1), item['dewpoint']['english'] + TEMPUNIT)
set_property('Hourly.%i.FeelsLike'       % (count+1), item['feelslike']['english'])

Of course i am not python coder i just saw those, i edit the script, and they work.


Cheers
Nessus

PS. I am not seeing any third day in weekend page yet...Big Grin. (This is not a bug. Just a request Blush)
Reply
(2012-04-30, 00:37)tinybutstrong Wrote: Working fine by now.

Any skin already is supporting new features listed by you in page 7?

ps: you forgot to update version in changelog and description, still 0.1.3.

good catch Smile
will fix!
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2012-04-30, 11:23)nessus Wrote: Ronie... i think (?) i found a couple bugs in v0.1.4

cheers mate Smile
will fix those right away
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2012-04-30, 07:57)Nuka1195 Wrote: @ronie I have a module over at xbmc4xbox that handles conversions of various things. It has some moon phase icons also. Does this weather provider support that.

yup, wunderground provides the current moon phase:

Code:
"moon_phase": {
    "percentIlluminated":"73",
    "ageOfMoon":"10",
    "current_time": {
    "hour":"17",
    "minute":"02"
    }


edit:
see utilities.py, i have some code there that converts the percentIlluminated/ageOfMoon values
to a string (ie. 'full moon'). i guess the same code can be used for icon matching.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2012-04-30, 00:37)tinybutstrong Wrote: Any skin already is supporting new features listed by you in page 7?

I have modified weather pages for Confluence (standard and vertical) that have many of the features (all based on the Weather+ support in Confluence).

https://github.com/downloads/pkscout/ski...eather.zip
Reply
pictures please.

@ronie. i'll see about gathering the modules. i made changes and lost them when i lost my main computer. but one of the ideas i had was (if i understand correctly) don't force weather addons to pass to xbmc as celcius and then have xbmc convert to the proper local. the module takes care of that and then you don't get thos weird glitches. the moon icons are 0.png to 34.png or something like that. i made them in photoshop, based on the old weather icon's clear night. may not match the new icons. but if the skin takes advantage of the moon phases they're ther temporarily.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
Perhaps tree_jammer is interested in doing moon phases that match the icons he did
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
I have a strange behavior with v0.1.4. Labels 36Hour.%i.TemperatureHeading and 36Hour.%i.Temperature they are not showing in some languages selected in XBMC International Settings. For example, "English (US)" and "French" are not working and "English" and "Italian" they are working fine. i didn't test more languages to have a complete list but if i remember correctly this was not happening in previous versions.

Here is a debug log that includes addon's log enabled in settings which is rather big (700kb) and that's why pastebin doesn't accept it.

Cheers
Nessus
Reply
(2012-04-30, 11:23)nessus Wrote: 2. Predefined temp unit for feels like label in hourly page is missing
Code:
set_property('Hourly.%i.Temperature'     % (count+1), item['temp']['english'] + TEMPUNIT)
set_property('Hourly.%i.DewPoint'        % (count+1), item['dewpoint']['english'] + TEMPUNIT)
set_property('Hourly.%i.FeelsLike'       % (count+1), item['feelslike']['english'])

This is the only instance where the temperature unit is dealt with by pkscout's modifications of the Confluence skin rather than the script.

If the tempunit is added to the script as above, the skin mods need to be changed to avoid °C°C appearing
Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
I've played arround with it...

Image

Image

i still get an "error", but the plugin works as it should. mayber a skin-problem (i haven't yet looked into my log)

http://www.xbmcnerds.com - german xbmc community
Reply
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?

Reply
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...
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
weather.wunderground-0.1.7.zip

fixed:
- delete cached images when user changes weather location
- clear alert properties when there are no more alerts
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
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.
Reply
should be fixed in:
weather.wunderground-0.1.8.zip

- fixed: escape slashes in path
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 51

Logout Mark Read Team Forum Stats Members Help
Weather Underground1