Skip to content

MagicMirror2 Module to display the departure times for stops in the SWU region

Notifications You must be signed in to change notification settings

ChrwagnerTHU/MMM-PublicTransport-SWU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MM2-PublicTransport-SWU

This a module for the MagicMirror. It can display the departues of trains and busses of the SWU region in Ulm, Germany.

Installation

In terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/ChrwagnerTHU/MMM-PublicTransport-SWU

Updating

In terminal, go to the Module's folder and pull the latest version from GitHub:

cd ~/MagicMirror/modules/MMM-PublicTransport-SWU
git pull

Configuration options

Main config

Option Default Description
stopNumber 1008 ID of stop you want to display.
stopString "Hauptbahnhof" Name of stop you want to display.
limit 10 Number of departures you want to display.
updateInterval 60000 Update interval (in ms)
showDelay false Show delay of departure (in m)
showPlattform [] Array of plattform ids to be displayed.
Examples:
['A'] - only plattform A
['A','B'] - plattforms A and B
[] - all plattforms

Using the module

To use this module, add it to the modules array in the ~/MagicMirror/config/config.js file.

Example

    {
        module: "MMM-PublicTransport-SWU",
        header: "Abfahrtszeiten",
        position: "bottom_left",
        config: {
            stopNumber: 1008,
            stopString: "Hauptbahnhof",
            limit: 5,
            updateInterval: 60000,
        }
    },

To figure out the stop id of the stop you want to display, search the stop at this website.

Screenshot

Screenshot of module

Special Thanks

About

MagicMirror2 Module to display the departure times for stops in the SWU region

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published