I got this when I enable site-wide weather block. Any hints?

* warning: file_get_contents() [function.file-get-contents]: connect() failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\xampp\htdocs\drupalsix\sites\all\modules\weather\weather.module on line 1697.
* warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/WIII.TXT) [function.file-get-contents]: failed to open stream: FTP server reports RETR in D:\xampp\htdocs\drupalsix\sites\all\modules\weather\weather.module on line 1697.

Thanks

Comments

d.sibaud’s picture

Version: 6.x-2.1 » 5.x-6.1
Priority: Normal » Critical

same problem with stations: LIRZ (Italy/Perugia):

# warning: file_get_contents() [function.file-get-contents]: connect() failed: Connection timed out in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1512.
# warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/LIRZ.TXT) [function.file-get-contents]: failed to open stream: Success in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1512.
# warning: fsockopen() [function.fsockopen]: unable to connect to weather.noaa.gov:80 (Connection timed out) in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1537.

I tried to contact the ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/LIRZ.TXT via browser and it works fine:

2008/07/29 21:50
LIRZ 292150Z 35007KT CAVOK 23/17 Q1017 RMK VIS MIN9999

and also i tried to contact weather.noaa.gov:80 and obtain the data for this location and it works!!!

thks in advance.

d.sibaud’s picture

pardon, I was operating with my server ftp port closed :-(, now it works perfectly!

toddy’s picture

Assigned: Unassigned » toddy
Status: Active » Closed (fixed)