Skip to content
MagicMirror module for displaying real-time estimations for public transport stops in Bratislava, Slovakia
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.
img
translations
.gitignore
LICENSE
MMM-imhdsk.css
MMM-imhdsk.js
README.md
node_helper.js
package-lock.json
package.json

README.md

MMM-imhdsk

This is a module for the MagicMirror² to display real time estimations for public transport stops in Bratislava, Slovakia.

screenshoot

Installation

Go to your MagicMirror's modules folder and execute git clone https://github.com/Adman/MMM-imhdsk.git.

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-imhdsk',
            header: '<name of the stop> stop',
            position: 'bottom_right',   // You can specify the region
            config: {
                stopId: id, // Id of the stop (parameter "z" in stop's livetable url)
                /* other configurations */
            }
        }
    ]
}

Configuration options

Option Description
stopId Required Id of the stop (parameter "z" in stop's livetable url).

Type: int
Default value: none
maximumEntries Optional The maximum entries shown.

Type: int
Default value: 10
refreshInterval Optional How often to check for the next lines.

Type: int
Default value: 30000 milliseconds (30 seconds)
minimumTimeLeft Optional Show only lines departing at least in x seconds.

Type: int
Default value: 0 seconds (turned off)
ignoredLines Optional Do not display lines specified.

Type: array of strings
Default value: []
onlyPlatforms Optional Display only lines departing from specific platforms. If left empty, the module shows everything.

Type: array of ints
Default value: []
fade Optional Fade the future lines to black. (Gradient)

Type: boolean
Default value: true
fadePoint Optional Where to start fade?

Type: float
Default value: 0.25 (start on the 1/4 th of the list)
blinkingUnder Optional Time for blinking alarm. Start blinking when the arrival is in less than x seconds.

Type: int
Default value: 60 seconds
displaySymbol Optional Whether to display bus/tram symbols.

Type: boolean
Default value: true
displayLineNumber Optional Whether to display line number.

Type: boolean
Default value: true
displayDestination Optional Whether to display destination stop.

Type: boolean
Default value: true

Beware that by using this you might be violating imhd.sk ToS

You can’t perform that action at this time.