Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

RE: RE: OPPS - Grab weather from yahoo (2)

by cei (Monk)
on May 28, 2000 at 00:56 UTC ( #15166=note: print w/replies, xml ) Need Help??

in reply to RE: OPPS - Grab weather from yahoo (2)
in thread OPPS - Grab weather from yahoo (2)

I used one of the CPAN weather grabbers with mixed results.

Often the ports would time out when I used the module as written.

My solution was to dupe the .pm and localize it to pull only from the Los Angeles NOAA station instead of the central/national one. This one had a lot less traffic, and I haven't seen any lost results since I made the switch.

In case anyone is interested, I modified Geo::WeatherNOAA as Geo::LAWeatherNOAA.
In the subroutine get_city_zone I changed my $URL = $URL_BASE . lc $state . '/zone.html'; to my $URL = ''; and that took care of just about everything.

  • Comment on RE: RE: OPPS - Grab weather from yahoo (2)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://15166]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2018-01-17 15:29 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (201 votes). Check out past polls.