Bugs item #808981, was opened at 2003-09-18 23:15
Message generated for change (Comment added) made by iridium
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=377952&aid=808981&group_id=23245
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
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: Max Hammond (iridium)
Date: 2006-09-10 09:36
Message:
Logged In: YES
user_id=81516
Switched main site to use static data for the time being.
Time and arsedness dependent, we could go down this route.
We did try it, but SF server config caused grief.
----------------------------------------------------------------------
Comment By: Jo Wouters (jowouters)
Date: 2004-01-24 13:59
Message:
Logged In: YES
user_id=758006
Not having a working version on the phpweather-homepage is
indeed a little bit embarassing...
I had a simular problem: I couldnt send any http(or other)
requests from a site due to very strict security measures.
To solve that, I had written a quick hack:
- on the 'secure' server, a file is written with a list of all the
icao-codes they want.
- every hour, a script on another server checks for that files,
and processes the requests.
- this script does a call of a special script on the secure site,
and sends the metar-codes via a HTTP POST; which is then
loaded into the database.
Of course this adds some extra delay in the processing, but a t
least you'll have some data; and I only used it to get 1 or 2
metar-codes. Don't know if processing hundreds of them
would work...
I can provide you with a cleaned-up (and more secure) version
of this script (and my webserver can do the metar-requests
for you). Just let me know.
Jo
----------------------------------------------------------------------
Comment By: Martin Geisler (gimpster)
Date: 2003-09-30 14: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 00: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 01: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
|