Opened 10 years ago

Closed 7 years ago

#11950 closed Bug Report - General (Works for me)

Mythweather - Wunderground maps broken

Reported by: g.maus@… Owned by: beirdo
Priority: minor Milestone: 30.0
Component: Plugin - MythWeather Version: 0.27-fixes
Severity: low Keywords: mythweather
Cc: Ticket locked: no

Description

I have upgraded version .27 and just aquired a wonderground.key. Mythweater maps do not work.

I have found the following workaround.

For static maps the source wunderground_maps.pl creates the URL that MythWeather? uses to display data with this code....

my $url = "http://api.wunderground.com/api/$apikey/radar/q/$loc.png?" .

"width=1024&height=768&newmaps=1";

I can get static maps to work if I change the scripT as follows...

my $url = "http://api.wunderground.com/api/$apikey/radar/q/$loc.gif";

Please note that in the modified script, I have changed $loc.png to $loc.gif, AND remvoved the question mark. If the trailing '?' is left in place MythWeather? will not display the map. Also, the map does not dispaly if using png.

Similarily, I can get animated maps to work if I change the lines in wunderground-animaps.pl as follows:

my $url = "http://api.wunderground.com/api/$apikey/radar/q/$loc.png?" .

"width=1024&height=768&newmaps=1";

becomes:

my $url = "http://api.wunderground.com/api/$apikey/radar/q/$loc.png";

note, no '?'

my diagnoses is that Mythweather is choking on the ? in the URL, and it may also have problemes using png formated images.

Change History (5)

comment:1 Changed 10 years ago by kb9vqf@…

Broken here as well; removing the query string allows the radar to appear but in a much lower resolution than desired.

comment:2 Changed 7 years ago by David Hampton <mythtv@…>

I just tested this on 0.28 and master, and I don't have any problem downloading data/maps from Weather Underground.

comment:3 Changed 7 years ago by Stuart Auchterlonie

Milestone: unknown30.0
Status: newinfoneeded_new

David,

Did you apply any patches to get this to work, or is it just working "as is"?

Regards Stuart

comment:4 Changed 7 years ago by David Hampton <mythtv@…>

Its just working "as is".

comment:5 Changed 7 years ago by Stuart Auchterlonie

Resolution: Works for me
Status: infoneeded_newclosed

Reported to be working, so closing

Note: See TracTickets for help on using tickets.