Skip to content

Commit

Permalink
Merge pull request #636 from waynieack/WeatherNOAA
Browse files Browse the repository at this point in the history
WeatherNOAA - Fix for some local offices not issuing an RWR
  • Loading branch information
hollie authored Oct 23, 2016
2 parents e96c86f + 9e5cea4 commit 751628a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/site/Geo/WeatherNOAA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,17 @@ sub get_city_hourly {
#print STDERR "Getting data from $URL\n";
my $data = get_data( $URL, $filename, $fileopt, $UA );
my $datalength = length($data);
if ( $data =~ /None issued/ ) {
$URL =
$URL_BASE
. $zone
. '&issuedby='
. $state
. '&product=RWR&format=txt&version=1&glossary=0';

$data = get_data( $URL, $filename, $fileopt, $UA );
$datalength = length($data);
}

#print STDERR "Got data ($datalength)\n";

Expand Down

0 comments on commit 751628a

Please sign in to comment.