Jump to content

Aviation Weather V1.0


Recommended Posts

  • Moderators

Hi Parkho.

First off, i appreciate your efforts and time you put in for this community and your work on modules. Thank you very much! I installed this module today and showed it to everyone on site and the overall opinion of it is everyone loves it.

We found one minor detail that is no biggie. not sure if this is correct spelling in another language but in common North American English, http://prntscr.com/d5coll Aiviation is spelled Aviation. lol I looked at and admired this module all day and it just now only dawned on me what I was reading. :D

This module is great Parkho. I appreciate your sharing it with us to use.

Ray

lol Ray, thanks for noticing the misspell. Actually, I do know that "Aiviation" is not correctly spelled and since we speak Farsi in Iran and it has nothing to do with English what so ever and as an ESL, I would like to apologize for making these mistakes once in a while and will try to avoid them as much as possible. :D

  • Like 1
Link to post
Share on other sites
  • 3 weeks later...

For all you bootstrap 2 and 3 users, If you search a airport and scroll down to the airports, you will see a wild child bullet from the list. This is not a problem with Parkho's awesome module. it is a bootstrap thing. But not to worry!

Bootstrap a built in un-styled function.

For bootstrap 2 on line 80, find :

<ul>

Change to:

<ul class="unstyled">

For bootstrap 3 change that line to :

<ul class="list-unstyled">

And say goodbye to the wild child bullet.

Awesome module Parkho, great job on it man. I like it more and more as the days go by.

Link to post
Share on other sites
  • 11 months later...

Warning: simplexml_load_file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.phpon line 23

Warning: simplexml_load_file(https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=egcc&hoursBeforeNow=1): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 23

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=egcc&hoursBeforeNow=1" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 23

Warning: simplexml_load_file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.phpon line 41

Warning: simplexml_load_file(https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=egcc): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 41

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=egcc" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 41

Warning: simplexml_load_file(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74

Warning: simplexml_load_file(http://api.aircharts.org/Airport/egcc.xml): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74

Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.aircharts.org/Airport/egcc.xml" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74
 

 

What is this

Link to post
Share on other sites
  • 7 months later...

Hi Parkho!

first thanks for these wunderful addon.

Is there a chance to convert the full skycondition in text? Currently only the first 2 are written and the 3rd one is missing.

i.E.: FEW050 SCT070 BKN080 ->FEW Clouds At 5000 Feet / SCT Clouds At 7000 Feet     -----> means "BKN 8000 is missing

Another questions is if there is any posibillity to show the BARO in HPA iso. Hg

 

Thanks in advance for your answer.

BRGDS

Link to post
Share on other sites
  • Moderators
On 11/13/2017 at 12:32 AM, Michael2015 said:

Warning: simplexml_load_file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.phpon line 23

Warning: simplexml_load_file(https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=egcc&hoursBeforeNow=1): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 23

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=egcc&hoursBeforeNow=1" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 23

Warning: simplexml_load_file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.phpon line 41

Warning: simplexml_load_file(https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=egcc): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 41

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=stations&requestType=retrieve&format=xml&stationString=egcc" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 41

Warning: simplexml_load_file(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74

Warning: simplexml_load_file(http://api.aircharts.org/Airport/egcc.xml): failed to open stream: no suitable wrapper could be found in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74

Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.aircharts.org/Airport/egcc.xml" in /home/vairleas/pilotlounge.vairleasing.net/core/modules/WTHR/WTHR.php on line 74
 

 

What is this

Your php.ini file needs to be configured to "allow_url_fopen". Open php.ini file on your server and change the mentioned option to "ON".

Link to post
Share on other sites
  • Moderators
On 6/24/2018 at 7:47 PM, Thomasha said:

Hi Parkho!

first thanks for these wunderful addon.

Is there a chance to convert the full skycondition in text? Currently only the first 2 are written and the 3rd one is missing.

i.E.: FEW050 SCT070 BKN080 ->FEW Clouds At 5000 Feet / SCT Clouds At 7000 Feet     -----> means "BKN 8000 is missing

Another questions is if there is any posibillity to show the BARO in HPA iso. Hg

 

Thanks in advance for your answer.

BRGDS

If you click the below url, you will see the information they are providing in an XML format. Whatever info they provide can be shown in my module. If you have php knowledge to do so, you're welcome to go ahead and modify the module to your need. If you want me to customize the module for you, then it's gonna cost you a donation to my website at "www.parkho.ir" and clicking on the "Donate" button. 🙂

https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=KSFO&hoursBeforeNow=1

Link to post
Share on other sites
  • 3 weeks later...
  • 1 year later...
On 26.06.2018 at 18:53, Parkho said:

Aşağıdaki URL’yi tıklarsanız, sağladıkları bilgileri XML biçiminde görürsünüz. Sağladıkları her türlü bilgi modülümde gösterilebilir. Bunu yapmak için php bilginiz varsa, devam edip modülü istediğiniz gibi değiştirebilirsiniz. Modülü sizin için kişiselleştirmemi istiyorsanız, web siteme "www.parkho.ir" adresinden bağış yapın ve "Bağış" düğmesine tıklayın. 🙂

https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=KSFO&hoursBeforeNow=1

Hi Parkho ;

aircharts.org web site offline, chart data is not coming because the site is closed. Can you find a different solution

Link to post
Share on other sites
  • 3 weeks later...
  • Moderators
On 12/3/2019 at 2:33 AM, GKT001 said:

Hi Parkho ;

aircharts.org web site offline, chart data is not coming because the site is closed. Can you find a different solution

Well! At this point, I don't have any sources to replace aircharts.org. They may be offline due to maintenance. Try them out again and see what will happen.

Link to post
Share on other sites
  • Administrators

Air Charts has been down for at least several months. Chances are they won't be back - which is too bad. Their service was nice.

I couldn't find another source, so I commented out the aircharts section in the module.

Link to post
Share on other sites
  • 3 months later...
  • Moderators

Dear All,

Some issues have been developed in the module in the past years as follows:

1. Apparently, Airport Charts website is no longer available and there is no alternative for it, so it has to be removed from the module.

2. With SSL certificates being updated every now and then, "simplexml_load_file" function is rejected by the SSL causing the results not being fetched entirely.

Fortunately the second issue is resolved and is being worked on, so keep following the post for further updates.

Cheers

 

  • Like 1
Link to post
Share on other sites
  • Moderators

Okay here it is:

 

Open "WTHR.PHP"(core/modules/WTHR/WTHR.php)

The following function must be added:

public function simplexml_load_file_curl($urlmet) 
	{
		$ch = curl_init($urlmet);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		$xml = simplexml_load_string(curl_exec($ch));
		return $xml;
	}

The following line must be changed from:

$xmlmet = simplexml_load_file($urlmet);

To this:

$xmlmet = $this->simplexml_load_file_curl($urlmet);

Everywhere you see the code line.

 

To remove the charts:

//Charts Section
$url = 'http://api.aircharts.org/Airport/'.$icao.'.xml';
$xml = $this->simplexml_load_file_curl($url);
$charts = $xml->airport;
$count = $xml->airport->chart;
$this->set('charts', $charts);
$this->set('count', $count);
$this->set('icao', $icao);
$title="Aviation Weather";
$this->set("title", $title);
$this->render('weather/results.php');

To this:

$this->set('icao', $icao);
$title="Aviation Weather";
$this->set("title", $title);
$this->render('weather/results.php');

Basically, the first block of above codes need to be removed or commented out.

Let me know if issue is resolved.

Cheers

Link to post
Share on other sites

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