Luxembourg public transport departures in real time. Module for MagicMirror².
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone [email protected]:MarinescuEvghenii/MMM-Luxembourg-Public-Transport.git
Configure the module in your config.js
file.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-Luxembourg-Public-Transport',
config: {
stationId: 0,
apiKey: '<api key>'
}
}
]
Please check this API.
The following property can be configured:
Option | Required | Description | Default value |
---|---|---|---|
stationId | YES | Station ID. Can be found using the Mobiliteit.lu API. Documented on data.public.lu. The key extId includes the stationId |
- |
apiKey | YES | Mobiliteit.lu API Key, can be requested on data.public.lu | - |
duration | NO | Interval size in minutes. Range is from 1 to 1439 minutes. API parameter. | 720 |
fetchInterval | NO | Fetch interval in milliseconds. | 6000 |
maxResults | NO | Maximum items to be displayed in schedule. | 16 |
animationSpeed | NO | Animation speed in milliseconds. | 2000 |