- Template to display a flight information.
This template has some configuration variables as the following table shows:
Variable | Type | Default | Description |
---|---|---|---|
offsetTimeMinutes |
Int | {20,30,40 } | Time to offset render flight data |
maxPageDurationSeconds |
Int | {20,30,40 } | Time to display each page of flights data |
apiKey |
String | xxxxxx-xxxxx | API-KEY to request de flithts data |
arrivalDeparture |
String | {arrival, departure} | The option to show arrivals or departures of a airpoit |
iataCode |
String | {GRU, JFK} | IATA Code of Airpot to be render |
Airline information [...]
Attributes | Type | Example | Description |
---|---|---|---|
airportName |
text | "F.Noronha" | flight list |
lastUpdate |
text | "2024-01-01T02:30" | datetime, iso format |
departuresOrArrivals |
text | "Departures" | Departure or Arrival information |
planePicture |
text | "up" or "down" | plane picture |
flights |
list | [{ destination, flight, airline, departureTime, gate, status }] | flight list and their informations |
Flights [...]
Attributes | Type | Example | Description |
---|---|---|---|
destination |
text | "Nashville" | destinations. |
flight |
text | "0000" | flight number |
airline |
text | "https://www.urlExample.com" | image link |
departureTime |
text | "2023-06-05T10:16" | datetime, iso format |
gate |
text | "Term B - 52" | gate description |
git clone https://github.com/dsplay/template-flight-information.git my-awesome-template
cd my-awesome-template
rm -rf .git
npm install
npm start
To create a release build of the template, ready to be uploaded to DSPLAY, just run:
npm run zip
It will generate a template.zip file ready to be deployed to DSPLAY Web Manager
The see more about DSPLAY HTML Templates, visit: https://developers.dsplay.tv/docs/html-templates