WookieFPV / MMM-vvsDeparture

A MagicMirror² (https://magicmirror.builders) Module for public transport in Stuttgart, Germany

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MMM-vvsDeparture

A MagicMirror2 Module for public transport in Stuttgart, Germany

Installation

Run these commands at the root of your magic mirror install.

cd modules
git clone https://github.com/niklaskappler/MMM-vvsDeparture

Using the module

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

var config = {
    modules: [
        {
            module: 'MMM-vvsDeparture',
            config: {
                // See below for configurable options
            }
        }
    ]
}

Note that a position setting is not required.

Configuration options

The following properties can be configured:

Option Description
station_id A value which represents the station id of the station. Here is a full list of all station within the VVS public transport network you can find out yours (https://efa-api.asw.io/api/v1/station/).

Possible values: integer
Default value: 5002201
station_name The displayed name for your station.

Possible values: string
Default value: Libanonstraße
maximumEntries Number of departure entries which will be shown.

Possible values: integer
Default value: 6
reloadInterval The refresh rate departure entries will be updated in milliseconds.

Possible values: integer
Default value: 1 * 60 * 1000 e.q. one minute
colorDelay Define if the delay value should be colorized.

Possible values: boolean
Default value: true
colorNoDelay Define if the no delay value should be colorized.

Possible values: boolean
Default value: true
number Define the lane number which should be displayed. With this you can hide numbers you don't wont to see.

Possible values: String / Array / Function
Default value: undefined
direction Define the lane direction which should be displayed. With this you can hide numbers you don't wont to see.

Possible values: String / Array / Function
Default value: undefined

About

A MagicMirror² (https://magicmirror.builders) Module for public transport in Stuttgart, Germany

License:MIT License


Languages

Language:JavaScript 92.9%Language:CSS 7.1%