Skip to content
Display upcoming trains between 2 NMBS/SNCB stations (Belgium)
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots
translations
.gitattributes
LICENSE
MMM-NMBS-Connection.css
MMM-NMBS-Connection.js
README.md
package.json

README.md

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

You can’t perform that action at this time.