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.
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",
}
}
]
}
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 |
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 |
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. |