This a module for the MagicMirror. It can display the departues of trains and busses of the SWU region in Ulm, Germany.
In terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/ChrwagnerTHU/MMM-PublicTransport-SWU
In terminal, go to the Module's folder and pull the latest version from GitHub:
cd ~/MagicMirror/modules/MMM-PublicTransport-SWU
git pull
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 |
To use this module, add it to the modules array in the ~/MagicMirror/config/config.js
file.
{
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.
- Michael Teeuw for creating the awesome MagicMirror2 project that made this module possible.