Projects / weatherspect

weatherspect

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

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  03 Nov 2007 17:30
  • Rrelease-after

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

  • Rrelease-mid
  •  19 Dec 2006 09:28
  • Rrelease-after

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.

  • Rrelease-mid
  •  18 Nov 2005 10:45
  • Rrelease-after

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.

  • Rrelease-mid
  •  19 Jul 2005 08:14
  • Rrelease-after

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

  • Rrelease-mid
  •  06 Aug 2004 06:53
  • Rrelease-after

Changes: This release adds several new random animated creatures and fixes a bug that prevented clouds from being white in good weather.

Rss Recent comments

Rcomment-before 03 Nov 2007 13:29 Rcomment-trans kbaucom Rcomment-after

Re: v1.7 uninitialized value error?
The new release (1.8) should resolve this problem.
Thanks for the bug report!

Rcomment-before 19 Oct 2007 10:08 Rcomment-trans sylvan Rcomment-after

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!

Rcomment-before 10 Nov 2003 06:21 Rcomment-trans kbaucom Rcomment-after

Re: Problems with Geo::Weather
Note that this is no longer an issue, since
WeatherSpect doesn't use Geo::Weather any more.

Rcomment-before 27 Oct 2003 14:13 Rcomment-trans kbaucom Rcomment-after

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.

No-screenshot

Project Spotlight

WebDraw

A demonstration of server-side mouse tracking using AJAX over HTTP.

93989cd8616dd616a503acb16e8e92b3_thumb

Project Spotlight

Fire.fm

A Firefox extension to access Last.fm.