Jump to content

Automatic Weathermap change


hjhjhgjgjh

Recommended Posts

Okay this is what you have at the moment:

a couple of weather maps but only for U.S.

And this is what my script does:

It recognizes, from what country you are flying and will output a weather map for the departure area and same for arrival area so if you fly from EDDF to KJFK, it will show a map of europe and its winds and same for U.S. (And in this case also a NAT map for westbound flights/on return flight, it will show NAT map for eastbound flights). With a bit php knowledge, it should be easy to customize this script to add other maps or whatever is required. I by myself work for a german airline and i try to improve it later so it looks like what we have.

Instructions:

1. remove all the lines related to the original maps in schedules_briefing.tpl (/core/templates/)

2. put this line instead of the old ones: <?php include('weather.tpl'); ?>

3. place the weather.tpl into your /core/templates/ directory

4. thats it, check out your pilot briefing ;)

A screenshot is available here http://tebinulrich.de/files/preview.png

weatherscript.zip

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I need to remove this lines ?

<h3>Tempo</h3>

<div align="center">

<p><img src="http://flightaware.com/resources/wx/us_depiction.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/surface_analysis.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/national_radar.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/severe_outlook_day_1.gif" /></p>

<a href="http://flightaware.com/resources/weather_maps/" target="_blank">Ver mais gráficos de tempo</a>

And substitue for <?php include('weather.tpl'); ?>

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
  • 6 months later...
  • 1 month later...

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...