orobouros Posted September 11, 2016 Report Share Posted September 11, 2016 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. Quote Link to comment Share on other sites More sharing options...
SkilledPilotA320 Posted October 29, 2016 Report Share Posted October 29, 2016 Thanks Quote Link to comment Share on other sites More sharing options...
TennShadow Posted October 30, 2016 Report Share Posted October 30, 2016 Thanks - I just added this to my hub module and it works great! Quote Link to comment Share on other sites More sharing options...
JackPlumb Posted October 31, 2016 Report Share Posted October 31, 2016 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}"); ?> Quote Link to comment Share on other sites More sharing options...
TennShadow Posted November 1, 2016 Report Share Posted November 1, 2016 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");?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.