Viewing Flight departures & arrivals

Flight departures & arrivals



User: Ante L. 3 years ago
Hi,
I would like to show the flight departures and arrivals, at the local airport, on my website. Is there any way to do this. A widget or RSS or any other way?
Brgds
Ante
User: James G. 3 years ago
The easiest way would probably be to embed something. Try a search for 'embeddable flight info' or 'embeddable flight times'. You may be able to find one that lets you customize it. Try to see if the local airport has a website and if they offer a RSS feed or similar.
Once you find something you like, get the code, copy it, open EW, drag HTML Snippet widget onto page and paste into sidebar for widget.
If you find an RSS feed, then use the RSS widget.
You may need to publish the page to see the results and go back and mess with it to get it right size.
User: Ante L. 3 years ago
Hi,
Thanks and I found an embedded site that I work with to trim a bit. I also found a RRS from my airport, but it does not work for me. I do not think I use the appropriate URL. It is http://www.ana.pt/anacontrols/i9afeedrss.aspx?List=78a844c7-5773-4594-8974-7e4cd77b25db&area=Algarve#sthash.baqbKM7H.dpuf
What do you think?
Thanks, Ante
User: Jumbo T. 3 years ago
Searched for :

http://www.google.com/search?q=rss+flight+info+algarve+airport

Found this :

http://www.faro-airport.com/departures.php

Looked at source and saw this :

http://www.flightstats.com/go/weblet?guid=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&weblet=status&action=AirportFlightStatus&airportCode=FAO

Used HTML Snippet with iframe. Result :

http://trotter.hol.es/flights/

More info here :

https://developer.flightstats.com/
User: Ante L. 3 years ago
HI Jumbo T,
Looks very good. Thanks.
My problem is then that when I use the same code and the standard HTML snippet in Everweb it only show the code when pre-viewing. I assume I need to get the HTML snippet with iframe. Right?
User: James G. 3 years ago
RSS and HTML snippets usually need to be published to see the end result. They have to connect, be 'live' and get dependencies.
The default HTML Snippet widget should work fine, it always has for me.
User: Ante L. 3 years ago
I tried to publish and still it does not work for me. I am new to this and thought I got it right.
I take the source code you sent above and paste it into the widget as HTML code, then apply and publish (as pre view)
All I get is the source code copied both before and after publishing. What have I missed?
User: James G. 3 years ago
Here is the entire code to paste into HTML Snippet:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta name="robots" content="noindex"/>
<style>
body
{
margin: 0px;
padding: 2px;
color: black;
font-family: Arial, Verdana, sans-serif;
font-size: 8pt;
background: #FFFFFF;
}
td
{
font-family: Arial, Verdana, sans-serif;
font-size: 8pt;
padding:0px;
border:0px;
}
input
{
font-family: Arial, Verdana, sans-serif;
font-size: 8pt;
}
select
{
font-family: Arial, Verdana, sans-serif;
font-size: 8pt;
}
.header
{
font-family: Times New Roman, sans-serif;
font-size: 14pt;
color: #282f42;
}
.subheader
{
font-family: Hallmarke Condensed Light, Arial, Verdana, sans-serif;
font-size: 11pt;
font-weight:bold;
}
.subheader2
{
font-family: Hallmarke Condensed Light, Arial, Verdana, sans-serif;
font-size: 11pt;
font-weight:bold;
margin-bottom:0px;
}
.label
{
font-weight:bold;
}
hr
{
height: 1px;
color: #E8E8E8;
background: #E8E8E8;
border-style: solid;
}
.grayHR
{
height: 1px;
color: #EBEBEB;
background: #EBEBEB;
border-style: solid;
}
.condensedhr
{
padding-top:0px;
margin-top:0px;
}
.tableListingTable
{
border-collapse: collapse;
text-align: center;
}
.tableListingTable td
{
border:1px solid #EBEBEB;
padding: 2px;
font-family: Arial, Verdana, sans-serif;
font-size: 8pt;
}
.tableListingTable .tableListingTableNoBorderNoPadding
{
border: 0px;
padding: 0px;
}
.tableListingTable .tableListingHeader
{
border-bottom:0px;
padding: 2px;
text-align: center;
}
.tableListingTable .tableListingHeader2
{
border-top:0px;
padding: 2px;
}
.tableListingTable .tableListingHeader2NoBorder
{
border-right:0px;
border-top:0px;
padding: 2px;
}
.tableListingTable .header
{
background: #D5D5D5;
}
.error
{
color:red;
}
.label
{
font-weight:bold;
}
.codeshareIndicator
{
font-weight: bold;
font-size:9pt;
color:#000000;
}
.delayedOrCancelled
{
color:red;
}
</style> <link rel="stylesheet" type="text/css" href="http://www.barcelona-airport.com" />
<script type="text/java script">
</script>
<script language='java script' type='text/java script' src='//dem5xqcn61lj8.cloudfront.net/java script/x_all_non_drag.js'></script>
<script language='java script' type='text/java script' src='//dem5xqcn61lj8.cloudfront.net/java script/java scriptFunctions.js'></script>
<script language='java script' type='text/java script' src='//dem5xqcn61lj8.cloudfront.net/java script/java scriptFunctionsForWeblets.js'></script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-382334-25', 'auto');
ga('require', 'linkid', 'linkid.js');
ga('set', 'dimension1', 'Free');
ga('set', 'dimension2', 'true');
ga('set', 'dimension3', 'English');
ga('set', 'dimension4', 'orange');
ga('set', 'dimension5', 'US');
ga('set', 'dimension6', 'North America');
ga('set', 'dimension6', 'North America');
ga('set', 'dimension7', '49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3');
ga('set', 'dimension8', '16798');
ga('set', 'dimension9', '1561386');
ga('send', 'pageview');
</script>
</head>
<body onload="correctPNG();">

<table width="100%">
<tr>
<td class="header">
FAO
DEPARTURES
</td>
</tr>
</table>


<table>
</table>


<table width="100%">
<tr>
<td>
Date:
</td>
<td>
Wed 11-May-2016
</td>
</tr>
<tr>
<td>
Time Period:
</td>
<td>
<form style="padding:0px; margin:0px;" method="post" id="flightStatusByRouteForm"
action="http://www.flightstats.com/go/weblet?guid=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&weblet=status&action=AirportFlightStatus&airportCode=FAO">
<input type="hidden" name="language" value="English"/>
<input type="hidden" name="startAction" value="AirportFlightStatus"/>
<input type="hidden" name="imageColor" value="orange"/>
<select name="airportQueryTimePeriod"
onchange="ga('send', 'event', 'Form', 'Change', 'TimePeriod'); java script:submit();">
<option value="1">12:00 AM - 3:00 AM</option>
<option value="2">3:00 AM - 6:00 AM</option>
<option value="3">6:00 AM - 9:00 AM</option>
<option value="4">9:00 AM - 12:00 PM</option>
<option value="5">12:00 PM - 3:00 PM</option>
<option value="6">3:00 PM - 6:00 PM</option>
<option value="7">6:00 PM - 9:00 PM</option>
<option value="8" selected>9:00 PM - 12:00 AM</option>
</select>
<input type="radio" name="airportQueryType" value="0" checked="checked"
onclick="ga('send', 'event', 'Form', 'Change', 'QueryType', 0); java script:submit();"> Departures
<input type="radio" name="airportQueryType" value="1"
onclick="ga('send', 'event', 'Form', 'Change', 'QueryType', 1); java script:submit();"> Arrivals
</form>
</td>
</tr>
<tr>
<td>
Airport:
</td>
<td>
(<a target="_blank" href="http://www.flightstats.com/go/Airport/airportDetails.do?airportCode=FAO&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet" onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Airport');">FAO</a>) Faro Airport
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
Faro,
PT
</td>
</tr>
</table>


<table class="tableListingTable" width="100%">
<tr>
<td width="17%" class="header">
Flight
</td>
<td width="23%" class="header">
Carrier
</td>
<td width="21%" class="header">
Destination
</td>
<td width="18%" class="header">
Departure
</td>
<td width="18%" class="header">
Status
</td>
</tr>

<tr>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046489&airlineCode=EI&flightNumber=899&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Flight');">
EI 899</a>
</td>
<td>
Aer Lingus
</td>
<td>
(<a target="_blank" href="http://www.flightstats.com/go/Airport/airportDetails.do?airportCode=ORK&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet" onclick="ga('send', 'event', 'ExternalLink', 'Click', 'ArrivalAirportInListing');">ORK</a>) Cork
</td>
<td>
9:35 PM
</td>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046489&airlineCode=EI&flightNumber=899&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Status');">
En Route</a>
</td>
</tr>
<tr>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046468&airlineCode=U2&flightNumber=8930&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Flight');">
U2 8930</a>
</td>
<td>
easyJet
</td>
<td>
(<a target="_blank" href="http://www.flightstats.com/go/Airport/airportDetails.do?airportCode=LGW&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet" onclick="ga('send', 'event', 'ExternalLink', 'Click', 'ArrivalAirportInListing');">LGW</a>) London
</td>
<td>
9:35 PM
</td>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046468&airlineCode=U2&flightNumber=8930&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Status');">
Scheduled</a>
</td>
</tr>
<tr>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046476&airlineCode=U2&flightNumber=2022&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Flight');">
U2 2022</a>
</td>
<td>
easyJet
</td>
<td>
(<a target="_blank" href="http://www.flightstats.com/go/Airport/airportDetails.do?airportCode=LTN&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet" onclick="ga('send', 'event', 'ExternalLink', 'Click', 'ArrivalAirportInListing');">LTN</a>) London
</td>
<td>
9:55 PM
</td>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046476&airlineCode=U2&flightNumber=2022&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Status');">
Scheduled</a>
</td>
</tr>
<tr>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046437&airlineCode=U2&flightNumber=6010&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Flight');">
U2 6010</a>
</td>
<td>
easyJet
</td>
<td>
(<a target="_blank" href="http://www.flightstats.com/go/Airport/airportDetails.do?airportCode=BRS&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet" onclick="ga('send', 'event', 'ExternalLink', 'Click', 'ArrivalAirportInListing');">BRS</a>) Bristol
</td>
<td>
9:55 PM
</td>
<td>
<a target="_blank"
href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?id=712046437&airlineCode=U2&flightNumber=6010&utm_source=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&utm_medium=cpc&utm_campaign=weblet"
onclick="ga('send', 'event', 'ExternalLink', 'Click', 'Status');">
Scheduled</a>
</td>
</tr>
</table>
<br/>
^ = Codeshare Flight
<br/>
<br/>

</body>
</html>
User: Ante L. 3 years ago
Great and thank you very much. Now it works and I figured out where to get the code. All of you have been of fantastic help and I appreciate your patience and effort very much/Ante
User: Jumbo T. 3 years ago
no, you don't copy paste the code of the page in a html snippet.

You use an iframe , like this :

<iframe src="http://www.flightstats.com/go/weblet?guid=49e3481552e7c4c9:6fbd1b7f:126ad2b709d:-3ce3&weblet=status&action=AirportFlightStatus&airportCode=FAO" style="width: 768px; height: 700px; border: none;"></iframe>
✔ Best Answer  
User: James G. 3 years ago
I grabbed the source from your element and the source from their element and they were the same. Didn't see an iframe source.
User: Ante L. 3 years ago
I see what you mean. Yesterday I tried with the iframe, but I see now that I missed a backslash. Might be why it did not work for me. However it worked when I used the full code. Just tried with the correct iframe and works perfectly. Again, many thanks. /Ante


Post Reply
You must login or signup to post.