[SimBot-commits] CVS: simbot/plugins weather.pl,1.68,1.69
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-05-07 01:05:46
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26685/plugins Modified Files: weather.pl Log Message: OCD Index: weather.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/weather.pl,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -p -r1.68 -r1.69 --- weather.pl 7 May 2005 00:48:22 -0000 1.68 +++ weather.pl 7 May 2005 01:05:29 -0000 1.69 @@ -265,11 +265,6 @@ sub got_station_list { foreach my $cur_station (@{$xml->{'station'}}) { no warnings qw( uninitialized ); -# NOAA seems to be inconsistant with how they represent -# latitude and longitude. It appears to be degrees.minutes.seconds -# but in some cases the number is X.Y . Is that X degrees, Y minutes, -# and 0 seconds, or X.Y degrees? -# I'll figure it out later... most stations just report NA anyway. my ($lat_deg, $lat_min, $lat_sec, $lat_dir); if(($lat_deg, $lat_min, $lat_sec, $lat_dir) = $cur_station->{'latitude'} =~ m/(\d+)\.(\d+)(?:\.(\d+))([NS])/) @@ -289,8 +284,8 @@ sub got_station_list { $cur_station->{'station_name'}, $cur_station->{'state'}, 'United States', - $lat_deg, #$latitude, - $long_deg, #$longitude, + $lat_deg, + $long_deg, $cur_station->{'xml_url'} ); } @@ -335,8 +330,8 @@ sub got_station_name { $name, $state, $country, - $lat_deg, #FIXME: lat - $long_deg, #FIXME: long + $lat_deg, + $long_deg, undef # URL is undef for metar ); } |