Read the statement by Michael Teeuw here.
-
This module displays information published by the FAA on delays and weather conditions at some US airports. The full airport list can be seen here.
This is my first module so please let me know if you find any errors in the code/documentation. It currently covers US airports only, so if you know of other feeds for different regions then let me know and I’ll see if they can be integrated.
I hope you like this and find it useful!
-
-
Seems to be only monitoring 1 airport, how would I go about either showing multiple airports or rotate/transition between multiple airports every couple seconds similar to the newsfeed?
-
@fwood04 If you want to set up multiple airports you can set a series of modules something like:
{
module: 'MMM-FAA-Delay',
position: 'top_left',
classes: 'dimmed medium',
header: 'Airport Delays',
config: {
airport: 'SFO',
interval: 300000 // 5 min updates
}
},
{
module: ‘MMM-FAA-Delay’,
position: ‘top_left’,
classes: ‘dimmed medium’,
config: {
airport: ‘LAX’,
interval: 300000 // 5 min updates
}
},
I hope that helps.
-
@fwood04 I’ve found some time and reworked the code so that you can provide an array of airport codes and display multiple airports correctly.
You will need to re-clone the module and use the new format of configuration.I hope that helps.
-
@nigel-daniels Update to fix a bug where the reported data on an airport can get assigned the wrong airport code. This is to support the updated configuration that allows for multiple airports, for example:
{
module: 'MMM-FAA-Delay',
position: 'top_left',
header: 'Airport Delays',
config: {
interval: 300000, // 5 min updates
airports: ['SFO', 'SJC']
}
},
-
@nigel-daniels Sorry for the long delay, but thanks!
-
This module is great, but how do I get rid of the weather? I already have a weather module, so this wastes valuable space. Thanks.
EDIT: I answered my own questions. I just commented out this line in MMM-FAA-Delay.js:
//wrapper.appendChild(weatherRow);
-
@twosquirrels Glad you sorted it out. I figured the weather is useful if you are monitoring airports some distance away but if you live close to the one you track then I can see it’s redundant information.
-
The FAA have update their API and as a result broke this module. There is an updated version now in the git repository. This update has two features:
- It handles the new API correctly.
- It now has a flag to block the display of the airport weather.
On your magic mirror go into the MMM-FAA-Delay directory in the modules and run the following commands:
git pull npm install
This should update the MMM-FAA-Delay code then update it’s dependancies.