Re: The "missing" year 2024 in the Weather 34 template
Posted: Fri Jan 03, 2025 4:16 pm
Hello Toto the checkwx API output is short so do this
goto edit file metar34get.php
find the two lines
$metar34vismiles = number_format($metar34visibility*0.000621371,1) ;
$metar34viskm = number_format($metar34visibility*0.001,1) ;
and basically do this put two // at beggining of each line so it ends up like this
// $metar34vismiles = number_format($metar34visibility*0.000621371,1) ;
// $metar34viskm = number_format($metar34visibility*0.001,1) ;
screenshot of code in file
ends up like this

i will look into it further to see if its a permanent solution which is quick and remove the visibility string in the display.
edit: found it the API string change in Visibility from numerical to text , so used the float string in the output and converted the miles to km where required..
see Paul wilmans site should be showing ok now with visibility..brian
have a nice evening..brian