Jump to content
Sign in to follow this  
orobouros

METAR and TAF IVAO

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×