WeatherSpect provides a reasonably accurate simulation of what the weather looks like outside, in ASCII art. It includes rain, snow, lightning, sleet, and hail.
| Tags | Games/Entertainment Utilities Internet |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX |
| Implementation | Perl |
Recent releases


Changes: A bug that generated errors when the weather data did not include sun/moon rise/set time was fixed.


Changes: This release adds snowflakes and a snowman, Santa Claus, a ghost for Halloween, and a few other new random objects. It also includes a new detailed weather info screen.


Changes: This release has been updated to support the latest version of Weather::Underground. It features accurate sun and moon rise times, a blue sky, and moon phases.


Changes: This release supports Term::Animation 2.0. A knight and a dog have been added to the animation.


Changes: This release adds several new random animated creatures and fixes a bug that prevented clouds from being white in good weather.
- All comments
Recent commentsRe: v1.7 uninitialized value error?
The new release (1.8) should resolve this problem.
Thanks for the bug report!
v1.7 uninitialized value error?
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!
Re: Problems with Geo::Weather
Note that this is no longer an issue, since
WeatherSpect doesn't use Geo::Weather any more.
Problems with Geo::Weather
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.