After having successfully tested phpweather on my localhost, I found
out that wind directions were not decoded on the server I am hosted.
I presume this depends on using different PHP releases.
Anyway, here a the bug fix:

/* old code */ 
$decoded_metar['wind_dir_text_short'] =

/* new code */
$ind = intval(round($regs[1]/22.5));
$decoded_metar['wind_dir_text'] = wind_dir_text_array[$ind];
$decoded_metar['wind_dir_text_short'] =

Kind regards
        Riccardo Cabassi
        Cabassi Riccardo
        via Migliara, 47 - 42034 Casina (RE)
        E-mail: [EMAIL PROTECTED]
        Home page:
        tel.: 0522 604407  /  0339 3481120

Reply via email to