You need to obtain your API key here: http://www.hvv.de/fahrplaene/fahrplanauskunft/datenschnittstelle/
- Clone repository into
../modules/inside your MagicMirror folder. - Run
npm installinside../modules/MMM-HH-LocalTransport/folder - Run
node findStation.js apiKey apiUser stationNameto find out your Station ID. - Add the module to the MagicMirror config
{
module: 'MMM-HH-LocalTransport',
position: 'bottom_right',
header: 'Connections',
config: {
id: '', // Trainstation ID
apiKey: '', // Add your apiKey
apiUser: '', // Add your apiUser
customAPI: false, // or true
customUrl: 'http://api/v1/getSignature',
customAPIToken: 'token123',
updateInterval: 60000,
maximumEntries: '10' // Max departures displayed
}
},
For all config options check here.
