Hi,
On Sun, 2004-01-25 at 17:16, aguevara wrote:
> I started using phpweather on my site, the installation went very
> well; I am not using a db at this point in time.
>
>
>
> The reason I am writing is because my data is not being refreshed and
> I would like to understand how to make sure it is displaying the
> latest and greatest data. I have two(2) questions,
>
I'm afraid I don't understand fully your problem. The data is not the
latest, as in a few hours old? Unfortunately the data from noaa is
sometimes a bit late. Especially in Canada, sometimes the reports are
2-3 hours old.
>
>
> (1) I have isolated the phpweather into its own file (i.e.
> temp.php) and am using an <include> tag. Will this refresh OK ?
>
There should be no problem with that. Again, by refresh what do you
mean? Having the page refresh automatically every x minutes?
> (2) I am only displaying the icons/images on my main page, I also
> have a link which takes you to another page (i.e. temp2.php) where I
> allow the user to select the country, city, etc. which is the default
> behavior. How can I make this second page always display the latest
> and greatest and not cached ?
If you are using the same methods as in the main page (index.php) you
should get the latest data. Again it might not be the most recent data,
but the most recent AVAILABLE from noaa.
If you want to see if the data displayed in the web page is the same
that is available, point your browser to
http://weather.noaa.gov/pub/data/observations/metar/stations/$icao.TXT
where $icao (upper case) is the icao code of the station.
Also, make sure you are using the latest version of phpweather (2.2.1).
cheers,
Etienne
>
>
> Please advise.
>
>
>
> Have a great day,
> Angelo A. Guevara
>
> an...@ca...
>
>
>
>
|