[ phpweather-Bugs-808981 ] the weather reports don't work on the main site
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2003-09-30 14:48:06
|
Bugs item #808981, was opened at 2003-09-19 01:15 Message generated for change (Comment added) made by gimpster You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=808981&group_id=23245 Category: None Group: None Status: Open Priority: 5 Submitted By: Etienne Tourigny (etienne_t) Assigned to: Nobody/Anonymous (nobody) Summary: the weather reports don't work on the main site Initial Comment: It seems that the main site is misconfigured for fetching METAR data. All I get is: Sorry! There's no data available for Coventry Airport, United Kingdom. I've tried other stations and languages and I never get a report. Everything is fine in my local copy. ---------------------------------------------------------------------- >Comment By: Martin Geisler (gimpster) Date: 2003-09-30 16:48 Message: Logged In: YES user_id=104098 Yes, you're right, we could perhaps go through a proxy. The problem is just that all network related functions in PHP seam to fail. I've just played with the popen() function because I wanted to use the GET program available on SF. When I do a 'GET http://foo.bar/' in a shell it works as it should, but then I do it from PHP I get nothing in return. I can open other programs with popen() but the GET programs doesn't work?! My test is in /home/groups/p/ph/phpweather/htdocs/test.php if you want to play with it... ---------------------------------------------------------------------- Comment By: pavlos kairis (kairis) Date: 2003-09-30 02:38 Message: Logged In: YES user_id=246218 martin phpweather has the capability to go thru a proxy. Could you simply add proxy info so that METAR data comes across? Pavlos ---------------------------------------------------------------------- Comment By: Martin Geisler (gimpster) Date: 2003-09-19 03:16 Message: Logged In: YES user_id=104098 Yes, you're perfectly correct. This is an both embarrassing and annoying problem --- it's embarrassing because it's been like this for way too long, and it's annoying because the solution isn't all trivial. The problem is that SourceForge employ a strict firewall around the webservers running www.phpweather.net. The firewall makes it impossible for PhpWeather to contact the NWS directly and fetch new weather reports, we have no access to the outside world from PHP on the webserver. I've tried to setup a system where the data were downloaded from the NWS once an hour by an external cron job and then uploaded to SF via SCP, but it never fully worked. If you want to work on this (and the website in general) then please let me know and I'll help you as I can. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=808981&group_id=23245 |