Skip to content

Display upcoming trains between 2 NMBS/SNCB stations (Belgium)

License

Notifications You must be signed in to change notification settings

Jan-Bart/MMM-NMBS-Connection

Repository files navigation

MMM-NMBS-Connection

license

Display upcoming trains between 2 NMBS / SNCB stations (Belgium | Belgian Railways)

This module is an extension of the MagicMirror² project.

Screenshots

Connections

Installation

  1. Navigate into your MagicMirror's modules folder
  2. Execute: git clone https://github.com/Jan-Bart/MMM-NMBS-Connection
  3. Add config
  4. Done

Configuration

Sample minimum configuration entry for your ~/MagicMirror/config/config.js:

{
  module: "MMM-NMBS-Connection",
  position: "bottom_left",
  config: {
    from: "Antwerp-Central",
    to: "Brussels-South"
  }
},

Sample configuration entry for your ~/MagicMirror/config/config.js with optional parameters:

{
  module: "MMM-NMBS-Connection",
  position: "bottom_left",
  config: {
    from: "Antwerp-Central",
    humanizeDuration: false,
    language: "en",
    results: 3,
    showStationNames: true,
    to: "Brussels-South"
  }
},

Configuration options

The following properties can be configured:

Key Description Default Example
from Departure stationname or ID "http://irail.be/stations/NMBS/008893120" "Antwerp-Central"
to Destination stationname or ID "http://irail.be/stations/NMBS/008821196" "Brussels-South"
humanizeDuration Change time format
(1 hour or 01:05)
true true => 1 hour
false => 01:05
language Overwrite language if necessary
Possible options: de, en, fr, nl
"en" "nl"
results Number of rows
Possible options: 1 - 6
3 5
showStationNames Show or hide station names
Possible options: false, true
false true => show stationnames

You can find a list with the stations here.

Dependencies

This module is using the iRail API.

Report bugs

You can report bugs here: https://github.com/Jan-Bart/MMM-NMBS-Connection/issues

About

Display upcoming trains between 2 NMBS/SNCB stations (Belgium)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published