Additional Module for MagicMirror² https://github.com/MichMich/MagicMirror/tree/v2-beta
This module displays traindepartures from your favourit trainstation.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'swisstransport',
position: 'bottom_left',
header: 'Zugverbindungen',
config: {
id: '008503203', // Trainstation ID
maximumEntries: '10', // Max departures displayed
}
},
]
To find your Trainstation ID use http://transport.opendata.ch/examples/stationboard.html
This Modul is using the opendataCH/Transport API https://github.com/OpendataCH/Transport as apiBase