[RELEASE] Weather Underground (default xbmc weather addon)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nessus Offline
Skilled Skinner
Posts: 627
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #151
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)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,346
Joined: Jan 2009
Reputation: 111
Post: #152
(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!

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,346
Joined: Jan 2009
Reputation: 111
Post: #153
(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

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,346
Joined: Jan 2009
Reputation: 111
Post: #154
(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.

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.
(This post was last modified: 2012-05-01 17:16 by ronie.)
find quote
pkscuot Offline
Fan
Posts: 627
Joined: Jan 2011
Reputation: 11
Location: Honolulu, HI
Post: #155
(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
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,938
Joined: Dec 2004
Reputation: 17
Post: #156
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/
(This post was last modified: 2012-05-02 02:11 by Nuka1195.)
find quote
Martijn Online
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 116
Location: Dawn of time
Post: #157
Perhaps tree_jammer is interested in doing moon phases that match the icons he did

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: 627
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #158
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
(This post was last modified: 2012-05-02 11:48 by nessus.)
find quote
dnairb Offline
Member+
Posts: 90
Joined: Dec 2009
Reputation: 4
Post: #159
(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
find quote
donabi Offline
Senior Member
Posts: 295
Joined: Apr 2006
Reputation: 3
Location: germany
Post: #160
I've played arround with it...

[Image: photo-532-4277f93e.png]

[Image: photo-537-b3c8a11a.png]

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
find quote
Post Reply