Skip to content

CommanderB/MagicMirror-LocalTransport-Module

 
 

Repository files navigation

MagicMirror-LocalTransport-Module

License

This module display the next local transport connection between an origin and destination.

Sonos Module

Installation

Go to your MagicMirror folder.

cd MagicMirror

Clone the repository.

git clone https://github.com/CFenner/MagicMirror-LocalTransport-Module.git modules/localtransport

Configuration

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 HBF
This value is REQUIRED
destination The target location.

Example: Frankfurt HBF
This 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 time

Default value: false
animationSpeed Speed of the update animation. (Seconds)

Default value: 1

Special Thanks

Thanks to SamLewis0602 for his module MMM-Traffic by SamLewis0602 on which this one is based on.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.5%
  • CSS 12.5%