Skip to content

This is a module for Magic Mirror 2, http://magicmirror.builders . It provides departure times relevant to now for any stations which are supported by MVG, www.mvg.de .

License

Notifications You must be signed in to change notification settings

trgraglia/MMM-MVG-LocalTransport

Repository files navigation

Module: MMM-MVG-LocalTransport

The MMM-MVG-LocalTransport module is a module for MagicMirror2 which displays departures time for public transport in Munich, Germany.

Install

  • Clone repo into your MagicMirror modules folder.
cd ~/MagigMirror/modules/
git clone https://github.com/trgraglia/MMM-MVG-LocalTransport
  • Install npm packages
cd MMM-MVG-LocalTransport
npm install

Using the module and Setup

{
  module: 'MMM-MVG-LocalTransport',
  position: 'bottom_right',
  header: '<name property from above>',
  config: {
    id: '<id property from above>'
  }
},

Configuration options

The following properties can be configured:

Option Description
initialUpdateInterval The delay before the first API call. (Milliseconds)
Default value: 15000 (15 Seconds)
retryUpdateInterval The delay before calling the API again after the API returns an error. (Milliseconds)
Default value: 10000 (10 Seconds)
dataUpdateInterval The interval between API calls. (Milliseconds)
Default value: 60000 (60 Seconds)
domUpdateInterval The interval for updateing the dom when not explicitly triggered. (Milliseconds)
Default value: 20000 (20 Seconds)
apiBaseStation The REST API url up to the station id.
Default value: ''
id The station ID according to MVG.
Default value: ''
perLineDepartureLimit The number of departures to show per line per direction.
Default value: 3

About

This is a module for Magic Mirror 2, http://magicmirror.builders . It provides departure times relevant to now for any stations which are supported by MVG, www.mvg.de .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages