Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

scot (6695)

  (email not shown publicly)

Perl hacker
"apprentice" sysadmin for ASP running Sparc-Solaris-Java-Oracle stack

Journal of scot (6695)

Wednesday June 13, 2007
04:47 PM

Automated downloading of NOAA radar images

[ #33516 ]
Inspired by Develop your own weather maps and alerts with Perl and GD, I have put together a script which downloads the base radar image from a specific site at a specified interval.

use strict;
use LWP::Simple;
use POSIX;
my $refresh = 1800;
do {
   my $base="";
my $timestring = strftime( "%Y%m%d_%H%M%S", gmtime() );
my $savefilename = "SLCRadar_".$timestring.".gif"; my $status = getstore($base,$savefilename);
print $status."\n" ;
sleep $refresh;
} while ($refresh);

See my Standard Code Disclaimer

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.