This module display the next local transport connection between an origin and destination.
Go to your MagicMirror folder.
cd MagicMirror
Clone the repository.
git clone https://github.com/CFenner/MagicMirror-LocalTransport-Module.git modules/localtransport
Add module configuration to config.js.
{module: 'localtransport',position: 'ANY_POSITION',config: {api_key: 'YOUR_API KEY',origin: 'YOUR_ORIGIN',destination: 'YOUR_DESTINATION'}},| Option | Description |
|---|---|
apiKey | The API key, which can be obtained here. This value is REQUIRED |
origin | The start location. Example: Mannheim HBFThis value is REQUIRED |
destination | The target location. Example: Frankfurt HBFThis value is REQUIRED |
maxConnections | How many connections should be displayed? Default value: 3 |
updateInterval | How often does the content needs to be fetched? (Minutes) Default value: 5 |
absoluteTime | If true displays the departure time as 'at hh:mm', if false displays 'in xx mins'Default value: false |
showDuration | If true displays the trip duration following the departure timeDefault value: false |
animationSpeed | Speed of the update animation. (Seconds) Default value: 1 |
Thanks to SamLewis0602 for his module MMM-Traffic by SamLewis0602 on which this one is based on.
