Subject: | Change in weather.com API? |
A couple days ago, a script of mine that has been using
Weather::Com::Simple (and Weather::Simple before that) mysteriously
started crashing with the error:
Weather::Com::Cached: ERROR Bad or missing query parameters in request.
Has weather.com changed something about their API?
Here's a simple code snippit that demonstrates the error:
use Weather::Com::Simple;
my %weather_args = (
'cache' => 'weathercache',
'partner_id' => '**********',
'license' => '****************',
place => '15626',
);
my $weather = Weather::Com::Simple->new( %weather_args );
my $result = eval {
$weather->get_weather();
};
if ( $@ ) { die "Died with '$@'" }