Automatic Weathermap change

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](< base_url >/applications/core/interface/file/attachment.php?id=91)

Nico Code.I have a doubt how do you fix to show the Charts of the Jappensen ?

Looks great!

Looks great! However id doesn’t show the correct departure/arrival. It shows US map only.  We fly in Alaska and id should map of Alaska if i’m correct.

jea sometimes i didnt find a good map so i added the next possible map. you can change those or if you find a good map i can change it for you

Would this work?

http://www.flyaka.com/downloads/alaska_map.png

yes it would but you dont have any weather there  :-

Awesome addition mate! thanks very much!

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

yes and there is a </div> at the end too of this code

maybe this helps:

Hey Thanks!!

;D ;D ;D ;D

Is there any way to make the maps smaller, ie 700px wide?

Anyone?

1 Like

It’s an <img> tag, so just add the width=“” property to it

OMG that easy!!! i feel a right idiot now lol… Thanks Nabeel.

Hi Everybody,

i Have a problem with the automatic Weather change! Show this pic. Can some one help pls?

Its OK on my server, are you on a free host?

No i am on a pay hoster