[RELEASE] Weather Underground (default xbmc weather addon)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pkscuot Offline
Fan
Posts: 598
Joined: Jan 2011
Reputation: 10
Location: Honolulu, HI
Post: #71
(2012-03-26 03:32)ronie Wrote:  
(2012-03-25 05:17)pkscuot Wrote:  In looking through the readme, I'm not sure how to get the videos working
videos?

Sorry, I meant maps. I'm not sure how to get the *maps* working. Blush
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #72
(2012-03-26 03:52)pkscuot Wrote:  
(2012-03-26 03:32)ronie Wrote:  
(2012-03-25 05:17)pkscuot Wrote:  In looking through the readme, I'm not sure how to get the videos working
videos?

Sorry, I meant maps. I'm not sure how to get the *maps* working. Blush
check if any images are downloaded in
...xbmc/userdata/addon_data/weather.wunderground/map

if nothing's there, then that's the main problem :-)

other than that, you just use a multiimage control in the skin
with <imagepath>$INFO[Window.Property(MapPath)]</imagepath>

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
pkscuot Offline
Fan
Posts: 598
Joined: Jan 2011
Reputation: 10
Location: Honolulu, HI
Post: #73
(2012-03-26 03:59)ronie Wrote:  check if any images are downloaded in
...xbmc/userdata/addon_data/weather.wunderground/map

if nothing's there, then that's the main problem :-)

other than that, you just use a multiimage control in the skin
with <imagepath>$INFO[Window.Property(MapPath)]</imagepath>

I was getting a 0K gif file in tmp but nothing else. I deleted my preference file and recreated my locations. Then I started getting the map.gif and all the png files as expected. I've updated the test Confluence skin files mentioned here to include map support now.
find quote
pkscuot Offline
Fan
Posts: 598
Joined: Jan 2011
Reputation: 10
Location: Honolulu, HI
Post: #74
OK, so the map worked fine on my OSX machine (the one I use for development). But after pushing the changes to my Windows 7 box the map never loads. Looking at the log, I see a line indicating that it wasn't able to extract the individual images from the gif. When I look at the image in the tmp directory manually, there is no map that I can, just a "blank" image (but 202K in size). I enabled debugging and logging for the weather plugin and ran it again. The log is available here. It was larger than 500K, so I didn't even try to post it to pastebin.

I am running the PVR branch on my Windows box, and it's the one merged with the Eden release code. I can't imagine why that would matter, but if I need to I can try to find some time to install the stock Eden release and see what happens.

EDIT: I installed the stock Eden build and got the same result. A gif downloads, and it has a size, but no readable information in it.
(This post was last modified: 2012-03-27 21:29 by pkscuot.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #75
(2012-03-27 00:17)pkscuot Wrote:  EDIT: I installed the stock Eden build and got the same result. A gif downloads, and it has a size, but no readable information in it.

thanx pkscuot, i've decided to give windows a shot as well and got the same issue.
after scratching my head for a few hours, i finally found the cause of the bug here:
http://docs.python.org/tutorial/inputout...ting-files

so, easy fix: mapfile = open(tmpfile, 'wb')

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
pkscuot Offline
Fan
Posts: 598
Joined: Jan 2011
Reputation: 10
Location: Honolulu, HI
Post: #76
(2012-03-28 00:11)ronie Wrote:  
(2012-03-27 00:17)pkscuot Wrote:  EDIT: I installed the stock Eden build and got the same result. A gif downloads, and it has a size, but no readable information in it.

thanx pkscuot, i've decided to give windows a shot as well and got the same issue.
after scratching my head for a few hours, i finally found the cause of the bug here:
http://docs.python.org/tutorial/inputout...ting-files

so, easy fix: mapfile = open(tmpfile, 'wb')

Yup. That did it.
find quote
nunz56 Offline
Junior Member
Posts: 26
Joined: Mar 2012
Reputation: 0
Location: USA
Post: #77
Weather Underground is not displaying the correct temperature for any location. Since I installed Eden 11.0 (final release) on my ATV1 the temperature displayed starts at 32 F and if I press refresh it goes to 132 F and continues to increase each time I refresh all the way up to 1324 F. I have three US locations configured and all of them do the same thing. When I try and change the location of any of them, using the location selector and typing a city name I get no results found. I have installed Weather Plus also and it also displays the wrong temp. Also note that the temps have a yellow slash line through them.

Any ideas how to start troubleshooting? Would a log file help?
find quote
snavaro Offline
Member
Posts: 81
Joined: Mar 2012
Reputation: 0
Post: #78
(2012-03-28 03:49)pkscuot Wrote:  
(2012-03-28 00:11)ronie Wrote:  
(2012-03-27 00:17)pkscuot Wrote:  EDIT: I installed the stock Eden build and got the same result. A gif downloads, and it has a size, but no readable information in it.

thanx pkscuot, i've decided to give windows a shot as well and got the same issue.
after scratching my head for a few hours, i finally found the cause of the bug here:
http://docs.python.org/tutorial/inputout...ting-files

so, easy fix: mapfile = open(tmpfile, 'wb')

Yup. That did it.

I want to thank Ronie and pkscuot for all of your hard work on this. I am running Eden Final with pkscout's and Jeez's Confluence Vertical mods, and this skin and weather is looking awesome! This is my noobie question: what file should I make the map fix in?
find quote
pkscuot Offline
Fan
Posts: 598
Joined: Jan 2011
Reputation: 10
Location: Honolulu, HI
Post: #79
(2012-03-28 16:44)snavaro Wrote:  I want to thank Ronie and pkscuot for all of your hard work on this. I am running Eden Final with pkscout's and Jeez's Confluence Vertical mods, and this skin and weather is looking awesome! This is my noobie question: what file should I make the map fix in?

I'm hardly working, just testing, but thanks. Tongue

The file you need to update is default.py in the addon's directory. On Windows it'll be something like C:/Users/<user>/AppData/Roaming/XMBC/addons/weather.wunderground

Just use a text editor and seach for 'mapfile' (without the quotes).
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #80
(2012-03-28 15:09)nunz56 Wrote:  Weather Underground is not displaying the correct temperature for any location. Since I installed Eden 11.0 (final release) on my ATV1 the temperature displayed starts at 32 F and if I press refresh it goes to 132 F and continues to increase each time I refresh all the way up to 1324 F. I have three US locations configured and all of them do the same thing. When I try and change the location of any of them, using the location selector and typing a city name I get no results found. I have installed Weather Plus also and it also displays the wrong temp. Also note that the temps have a yellow slash line through them.

Any ideas how to start troubleshooting? Would a log file help?

make sure this setting is disabled:
Settings > Network > Internet access > Use an http proxy

if that's not the issue, post a debug log.

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