Skip to content

devio-at/MMM-WienerLinien-dv

 
 

Repository files navigation

GitHub license Build Status Code Climate Known Vulnerabilities

MMM-WienerLinien

Public Transport of Vienna/Austria Module for MagicMirror²

The original module has been forked to display stations according to their sequence in the configuration file in Compact View.

Examples

Classic View

Periodically rotates between different stations.

Station 1 Station 2

Compact View

Shows all stations in one view without rotating.

CompactView

Incidents

Shows incident data (classic view only).

Incidents

Dependencies

Installation

  • Clone this repo into ~/MagicMirror/modules directory.
  • Configure your ~/MagicMirror/config/config.js:
{
    module: 'MMM-WienerLinien-dv',
    position: 'top_right',
    config: {
        stations: ['2545', '1668'],
        // all your config options, which are different than their default values
    }
}
  • Run command npm i --production in ~/MagicMirror/modules/MMM-WienerLinien-dv directory.

Config Options

Option Default Description
stations REQUIRED Insert here the station ids you want to display data from How to find an ID?.
view classic Switch between classic and compact view. (See examples)
lines [] Set a filter to only show your favorite lines (e.g. ["U4", "U1"]). Leave empty to show all.
header WienerLinien Set the header above the module. Leave empty to hide the header.
displayIcons true Display or hide the icons above the table.
max 5 How many departures should be displayed.
shortenStation false After how many characters the station name should be cut. Default: show full name.
shortenDestination false After how many characters the destination name should be cut. Default: show full name.
rotateInterval 20000 (20 sec) How fast should be switched between the stations.
updateInterval 300000 (5 mins) How often should the data be fetched.
animationSpeed 300 (300 ms) How fast should the animation on data changes run.
elevatorStations EMPTY Insert the station ids where you would like to know elevator disruptions.
incidentLines EMPTY Insert the line names for which you would like to know disruptions.
incidentShort false If true, also the changes to lines are displayed (AZBLinienspezialtext see documentation), otherwise only current disruptions.

Languages

  • JavaScript 78.9%
  • Nunjucks 19.4%
  • CSS 1.7%