Skip to content

A Magic Mirror Module which shows real time Dutch train information

License

Notifications You must be signed in to change notification settings

ItsCrotix/MMM-NsInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module: MMM-OvInfo

Description

This Magic Mirror module shows Dutch train departures requested from the NS API.

Installation

Clone this repository in you modules folder with: git clone https://github.com/mfurious/MMM-NsInfo.git

Configuration

To use this module, add the follwing configuration to your config/config.js file. This is an example for the departure times from Utrecht Central.

modules: [
    {
        module: "MMM-NsInfo",
        position: "top_right",
        config: {
            station: "Utrecht Centraal",
            stationId: "UT",
            apiKey: "YOUR_API_KEY_HERE",
            maxDepartures: 5
        }
    },
}]
Option Description
module Module Name. (See MM Documentation)
position Postion of the module. (See MM Documentation)
header Title displayed. (See MM Documentation)
apiKey Your NS API key.
station The name of your station.
Type: String Default: Utrecht centraal
stationId The ID of your station.
Type String Default: UT
maxDepartures The maximum amout of departures shown on the dashboard.
Type integer Default: 5
updateInterval The amount of time between updates (in minutes)..
Type integer Default: 5

This module is based on the NS API, you can request a key from this website

Looking up Station ID codes

To lookup a Station ID, you can use to stations.js file. Make sure to set you API Key in stations.js itself, as it cannot access the config file variable.

Disclaimer

Neither the author or NS are in any way reliable for inaccuracies and have no liabilities regarding usage of the module in any kind.

Version info

v1.0.1

About

A Magic Mirror Module which shows real time Dutch train information

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published