Branches
Comments
[»]
v1.7 uninitialized value error?
by sylvan - Oct 19th 2007 10:08:06
Messes up the display with:
''uninitialized value in multiplication (*) at ./weatherspect line
525''
Been running 1.7 for a few days and this morning was the first I've seen
of that. $set is empty after the $entity->name() . 'set' operation.
I'm on debian sid, with 'perl, v5.8.8 built for
i486-linux-gnu-thread-multi' and freshly installed (via cpan) animation and
wunderground modules.
I added a bit of debug code before line 525:
...
$set .= ' set';
dlog("\$set=$set");
if ( $set eq ' set') { return undef; }
my ($set_hr, $set_min, $set_am_pm) = ...;
dlog("set hr=$set_hr, min=$set_min,
am=$set_am_pm");
my $set_time = ...;
...
Which after a few minutes leaves a debug log:
$set= set
$set=6:55 PM MDT set
set hr=6, min=55, am=PM
$set=6:55 PM MDT set
set hr=6, min=55, am=PM
$set= set
$set=6:55 PM MDT set
set hr=6, min=55, am=PM
$set= set
fun program, thanks!
[reply]
[top]
[»]
Re: v1.7 uninitialized value error?
by Kirk Baucom - Nov 3rd 2007 13:29:34
The new release (1.8) should resolve this problem.
Thanks for the bug report!
[reply]
[top]
[»]
Problems with Geo::Weather
by Kirk Baucom - Oct 27th 2003 14:13:17
Please note that there is currently a problem with
the Geo::Weather perl module (version 1.41) that
weatherspect depends on. If you run it as-is, you
will get all of the data except the temperature.
weather.com has inserted a comment that confuses
the module. I've contacted the maintainer of
Geo::Weather, but haven't gotten a response. You
can work around the problem by commenting out a
couple of lines in Weather.pm. Locate the string
"obsTempTextA" in Weather.pm, and put a # before
the if statement: if({!$results{temp}) { and before
the associated } 4 lines later. In version 1.41, they
are lines 482 and 486. If anyone knows of another
source of weather data that isn't likely to be
disrupted by the whims of a webmaster, let me
know. For weatherspect to work, I at least need
windspeed, temperature and general condition.
[reply]
[top]
[»]
Re: Problems with Geo::Weather
by Kirk Baucom - Nov 10th 2003 06:21:49
Note that this is no longer an issue, since
WeatherSpect doesn't use Geo::Weather any more.
[reply]
[top]
|