3 latest NOTAMs in your flightbriefing

This addon shows the 3 latest NOTAMs of both your departure and arrival airport. A readme is included in the zip file. Its possible to display more NOTAMs than 3, for this, just check out the code of notamdep/arr.tpl.. Its self explaining. Download here

Works Great Thanks. I put the two tpl files in my skins folder and also copied the schedules_briefing.tpl folder in to my skins folder and it worked great

you did what ? well, as long as it works

you did what ? well, as long as it works

I just hate to mess with the core tpl files so I usually add any new addons to my skins folders. but the notamarr.tpl, notamdep.tpl and the schedule_briefing.tpl must all be in the same folder to get it to work right.

ahhh okay, i just wondered

Just added that to my site, with a bit of modding

Thanks for the addition.

Thanks for this addition, it works very well!

Cheers,

Stu

I have just been checking all my flights, and one seems to be throwing up errors:

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.ourairports.com/airports/EGHI/notams.rss:139: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0x86 0x20 0x50 0x4C in /customers/britair.net/britair.net/httpd.www/core/templates/notamdep.tpl on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: CLIMB TO 3000 VIA TR 201 DEG, THEN CONT AS DIRECTED. † PLANVIEW - ADD in /customers/britair.net/britair.net/httpd.www/core/templates/notamdep.tpl on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /customers/britair.net/britair.net/httpd.www/core/templates/notamdep.tpl on line 5
Fehler beim Einlesen der XML Datei

It’s for EGHI (Southampton, UK).

All other ICAO codes seem to be working fine.

Seems like when you pull the XML, before you load it into simplexml, it needs a utf8_encode() call

Thanks!

I have been googling utf8_encode, and tried various methods I found with no joy A clue would be great

EDIT: It seems that some of the RSS feeds from the site have errors in them, and that’s what’s causing the problem.

http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.ourairports.com%2Fairports%2Feghi%2Fnotams.rss

i also tried to put it on my site but not working getting this error

Warning: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration in /home/tntvirtua/domains/tnt-virtual.be/public_html/lib/skins/tnt_ver2.0/notamdep.tpl on line 5

Warning: simplexml_load_file(http://www.ourairports.com/airports/EBBR/notams.rss) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /home/tntvirtua/domains/tnt-virtual.be/public_html/lib/skins/tnt_ver2.0/notamdep.tpl on line 5

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://www.ourairports.com/airports/EBBR/notams.rss” in /home/tntvirtua/domains/tnt-virtual.be/public_html/lib/skins/tnt_ver2.0/notamdep.tpl on line 5

Fehler beim Einlesen der XML Datei

tebin anny sugestions?

hmm it looks like you have a wrong server configuration..

check out this link:

http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html

maybe it works

ps: Toyuko: for me everything works :S sorry i dont know whats wrong there

1 Like

hmm it looks like you have a wrong server configuration..

check out this link:

http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html

maybe it works

ps: Toyuko: for me everything works :S sorry i dont know whats wrong there

ok will ask the host on this

gr joeri

that got it working thanks

+1 for you tebinu

I still haven’t got this working on my site. How and where would I place the utf8_encode() call please?

thanks joeri

I still haven’t got this working on my site. How and where would I place the utf8_encode() call please?

could you send me your schedules_briefing.tpl ? then i can check it. and a link to your va would also be good so i can see whats wrong

To fix the URL fopen error:

In notamdep.tpl, replace:

if (!$xml = simplexml_load_file ($stream)) { 
die("Fehler beim Einlesen der XML Datei"); 
}

With:

$file = new CodonWebService();
$contents = @$file->get($stream);
$xml = @simplexml_load_string($contents);

And then in notamarr.tpl do the same thing. This uses the CodonWebService class to pull the stream via cURL, and load it that way. This is the safer way since alot of hosts (including mine) disable url_fopen.

1 Like

To fix the URL fopen error:

In notamdep.tpl, replace:

if (!$xml = simplexml_load_file ($stream)) {
die(“Fehler beim Einlesen der XML Datei”);
}

With:

$file = new CodonWebService();
$contents = @$file->get($stream);
$xml = @simplexml_load_string($contents);

And then in notamarr.tpl do the same thing. This uses the CodonWebService class to pull the stream via cURL, and load it that way. This is the safer way since alot of hosts (including mine) disable url_fopen.

That did the trick.

Thanks!

I wonder… Maybe it’s a stupid question.

Does it work with IATA codes ??

Thanks

Will