Jump to content

Recommended Posts

Posted

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.

  • 1 month later...
Posted

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}"); ?>

Posted

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");?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...