Thanks, I just grabbed a copy, and start hacking... btw, this have one other
feature..... I'm using Win32 as server ;-))
Best
Steen
----- Original Message -----
From: "Martin Geisler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:12 PM
Subject: Re: phpweather an nice graphics
> "Steen Rabol" <[EMAIL PROTECTED]> writes:
>
> > I'll give it a try, i'm a programmer not graphics artist, but maybe
> > I can find some nice pictures on the net, the hard thing would be
> > how to figure out when to display what, but I'll try.
>
> Yes, I agree - we should concentrate on the code first, and then
> draw/find some images later.
>
> If you're using the code from CVS (which can be found here:
> <URL:http://phpweather.sourceforge.net/downloads/phpweather-latest.tar.gz>),
> then this code should help you find understand how the information is
> stored when the METAR is decoded:
>
> <?php
> include('phpweather.php');
>
> $obj = new phpweather(array());
>
> $obj->set_icao('EKYT');
> $obj->decode_metar();
>
> print_r($obj->decoded_metar);
> ?>
>
> It should give you something like this:
>
>
> Array
> (
> [remarks] =>
> [clouds] => Array
> (
> [0] => Array
> (
> [condition] => FEW
> [ft] => 3500
> [meter] => 1067
> )
>
> [1] => Array
> (
> [condition] => SCT
> [ft] => 12000
> [meter] => 3658
> )
>
> )
>
> [metar] => EKYT 162050Z 28005KT 9999 FEW035 SCT120 11/10 Q1014
> [location] => Aalborg, Denmark
> [station] => EKYT
> [time] => 995316600
> [wind] => Array
> (
> [deg] => 280
> [knots] => 5
> [meters_per_second] => 2.6
> [miles_per_hour] => 5.8
> )
>
> [visibility] => Array
> (
> [0] => Array
> (
> [prefix] => 1
> [meter] => 10000
> [km] => 10
> [ft] => 32800
> [miles] => 6.2
> )
>
> )
>
> [temperature] => Array
> (
> [temp_c] => 11
> [temp_f] => 52
> [dew_c] => 10
> [dew_f] => 50
> )
>
> [altimeter] => Array
> (
> [hpa] => 1014
> [mmhg] => 760.6
> [inhg] => 29.94
> [atm] => 1.001
> )
>
> [rel_humidity] => 93.5
> )
>
>
> It is this array the functions in locale_common.php works on.
>
> > Best
> >
> > Steen
>
> --
> Best regards,
> Martin Geisler
>
> Checkout http://www.gimpster.com for:
> PHP Weather => Shows the current weather on your webpages.
> PHP Shell => A telnet-connection (almost :-) in a PHP page.
>