Display upcoming trains between 2 NMBS / SNCB stations (Belgium | Belgian Railways)
This module is an extension of the MagicMirror² project.
- Navigate into your MagicMirror's modules folder
- Execute:
git clone https://github.com/Jan-Bart/MMM-NMBS-Connection
- Add config
- Done
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"
}
},
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 hourfalse => 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.
This module is using the iRail API.
You can report bugs here: https://github.com/Jan-Bart/MMM-NMBS-Connection/issues