Hello,
if you want to add METAR & TAF IVAO on your homepage, you can add this litlle part of code :
<center><b>
METAR: </b>
<?php
echo file_get_contents("http://wx.ivao.aero/metar.php?id=xxxx");
?>
<br>br>
<b>
TAF: </b>
<?php
echo file_get_contents("http://wx.ivao.aero/taf.php?id=xxxx");
?>
<br>
</b></center>
Replace just the xxxx with the ICAO you want to display.
Thanks - I just added this to my hub module and it works great!
You can use the code below to automatically pull it on the schedules page (change “arricao” to “depicao” for depature airport):
<?php echo file_get_contents("http://wx.ivao.aero/metar.php?id={$schedule->arricao}"); ?>
For those of you that use the Strider Hub Module. Use the below code.
<?php echo file_get_contents("http://wx.ivao.aero/metar.php?id=$hubs->icao");?>
<?php echo file_get_contents("http://wx.ivao.aero/taf.php?id=$hubs->icao");?>