orobouros Posted September 11, 2016 Report 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
TennShadow Posted October 30, 2016 Report Posted October 30, 2016 Thanks - I just added this to my hub module and it works great! Quote
JackPlumb Posted October 31, 2016 Report 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
TennShadow Posted November 1, 2016 Report 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
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.