[mythtv-commits] Ticket #11950: Mythweather - Wunderground maps broken
MythTV
noreply at mythtv.org
Sat Nov 16 21:56:29 UTC 2013
#11950: Mythweather - Wunderground maps broken
--------------------------------------+-------------------------
Reporter: g.maus@… | Owner: beirdo
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeather | Version: 0.27-fixes
Severity: low | Keywords: mythweather
Ticket locked: 0 |
--------------------------------------+-------------------------
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.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11950>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list