Skip to content

A module for the MagicMirror² it displays the next departure times and delays (with details) of Trains from any station in germany.

Notifications You must be signed in to change notification settings

Helpi90/MMM-DBF

Repository files navigation

MMM-DBF (Deutsche Bahn Frontend)

This is a module for the MagicMirror².

It displays the next departure times and delays (with details) of Trains from any city and station in germany.

App Theme

App Detail (after click on a train)

Table

Installing the module

Clone this repository in yours ~/MagicMirror/modules/:

git clone https://github.com/Helpi90/MMM-DBF

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: 'MMM-DBF',
            position: 'top_right',
            config: {
                showApp: false,
                station: "Düsseldorf Hbf",
                height:"600px",
                width:"400px",
                timeOption: "time+countdown",
            }
        }
    ]
}

Configuration options for App and table

Option Default Description
station "Düsseldorf Hbf" Required
German Station Name (Check possible name)
updateInterval 60000 Optional
How often should the data be fetched.
platform ' ' Optional
Only show platform. Supports multiple strings, separated by comma (",")
via ' ' Optional
Only show routs via. Supports multiple strings, separated by comma (",")
onlyArrivalTime false Optional
Boolean to show only ArrivalTime (at Station)
hideLowDelay false Optional
Boolean to hide delay smaller 5 min

Configuration options only for App view

Option Default Description
showApp false Required
Activate app view
height 600px Optional
The height of the App
width 400px Optional
The width of the App
showArrivalTime false Optional
Boolean to show arrival time too.
showRealTime false Optional
Boolean to show real-time information instead of timetable data

Configuration options only for table view

Option Default Description
numberOfResults 10 Optional
Number of results to be displayed
withoutDestination '' Optional
Show results without destination. Supports multiple strings, separated by comma (","). (e.g. "Duisburg Hbf,Venlo" )
onlyDestination '' Optional
Only show results wit destination. Supports multiple strings, separated by comma (","). (e.g. "Duisburg Hbf,Venlo" )
train '' Optional
Only show trains that start with the given string. Supports multiple strings, separated by comma (","). (e.g. "RB33,S" )
setTableWidth '' Optional
Sets the width of the table in pixel (e.g. "400px" )
timeOption time Optional
Changes the type of time
(Options : time , time+countdown and countdown)
showDelayMsg false Optional
Boolean to show delay massages or not.

About

A module for the MagicMirror² it displays the next departure times and delays (with details) of Trains from any station in germany.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published