Badan Meteorologi, Klimatologi, dan Geofisika

Metar/Speci

[insert_php]
$metar_url = ‘http://aviationweather.gov/adds/metars/?station_ids=wimm&std_trans=standard&chk_metars=on&hoursStr=past+3+hours’;
$metar_file = file_get_contents($metar_url);
$dom = new DOMDocument;
@$dom->loadHTML($metar_file);
$elems = $dom->getElementsByTagName(‘font’);
foreach ($elems as $elem){
echo ‘

‘;
echo $elem->nodeValue . ‘=

‘;
}
[/insert_php]

Selengkapnya>>>