You need to obtain your API key by sending Hochbahn an email. Visit https://www.hvv.de/de/fahrplaene/abruf-fahrplaninfos/datenabruf and see the information at the bottom of the page.
- Clone repository
cd modules
git clone https://github.com/skuethe/MMM-HH-LocalTransport.git
- Install dependencies
cd MMM-HH-LocalTransport/
npm install
- Find your specific Station ID by running
node findStation.js apiKey apiUser stationName
- Add the module to your MagicMirror config
{
module: 'MMM-HH-LocalTransport',
position: 'bottom_right',
header: 'HVV - Connections',
config: {
id: '', // Trainstation ID
apiKey: '', // Add your apiKey
apiUser: '', // Add your apiUser
maximumEntries: '10' // Max departures displayed
}
},
For all config options check here.