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'}},
OptionDescription
apiKeyThe API key, which can be obtained here.

This value is REQUIRED
originThe start location.

Example:Mannheim HBF
This value is REQUIRED
destinationThe target location.

Example:Frankfurt HBF
This value is REQUIRED
maxConnectionsHow many connections should be displayed?

Default value:3
updateIntervalHow often does the content needs to be fetched? (Minutes)

Default value:5
absoluteTimeIf true displays the departure time as 'at hh:mm', if false displays 'in xx mins'

Default value:false
showDurationIf true displays the trip duration following the departure time

Default value:false
animationSpeedSpeed 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

  • JavaScript87.5%
  • CSS12.5%