Additional Module for MagicMirror² https://github.com/MichMich/MagicMirror/tree/v2-beta
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Bangee44 Update MMM-swisstransport.js
Works now with node_helper.js to get the data from local.ch
Latest commit 9f3c638 Dec 18, 2017

README.md

MMM-swisstransport

Additional Module for MagicMirror² https://github.com/MichMich/MagicMirror/tree/v2-beta

Module: SwissTransport

This module displays traindepartures from your favourit trainstation.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
    {
		module: 'MMM-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/v1/locations?query=Basel%20SBB Replace query=...... with your stationname.

Base API

This Modul is using the opendataCH/Transport API https://github.com/OpendataCH/Transport as apiBase