data
Brought to you by:
iridium
|
From: Adam F. <ad...@da...> - 2002-07-13 04:15:13
|
I got PHP Weather running very quickly without any problem. But I have
no idea how to access the information as variables. Here's what the
documentation provided.
<?
$metar = get_metar('KIND'); // Indianapolis, IN - my home
$data = process_metar($metar);
$temp = $data['temp_f'];
?>
so I attempted to loop through the $data array and echo out the values,
surprisingly no values came out what-so-ever. using the pretty
function, that returned absolutely nothing as well. I read through
the .inc files hoping to find something there. And I can do it, but it
would probably take me a full day of staring at it to acquire the list
that I'm looking for. What I would like to have is:
temp in farenheit
temp in celsius
clouds - (party cloudy, clear skies, etc.)
visibility (in km and miles)
etc, etc, etc, the more info I could have the better.
I spent several hours trying to find documentation to tell me this.
But couldn't come up with anything. Any help would be very much
appreciated.
-Adam Fitch
ad...@da...
|