Skip to content

jirsis/emt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMT MagicMirror² module

This module show estimate time arrive for bus lines EMT (Madrid Buses) in MagicMirror². All you need to use this module is register yourself into EMT opendata platform with this form.

EMT Module Screenshot

emt screenshot emt screenshot destination

Using the module

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

modules: [
	{
		module: "emt",
		position: "top_left",	// This can be any of the regions. Best results in left or right regions.
		config: {
            // The config property is optional.
			// If no config is set, an example emt is shown.
            // See 'Configuration options' for more information.
            // Only mandatory configuration are the credential to retrive the information.
		}
	}
]

Configuration options

The following properties can be configured:

Option Description
busStops List to query about all lines defined.

Possible values: [integer value, integer value, …] or single-value
Default value: 5511

EMT authentication options:

Option Description
idClient Id client provied for EMT open-data platform.

Default value: ""
passKey Passkey provided for EMT open-data platform.

Default value: ""

EMT GUI options:

Option Description
fade Enable to fade the table information detail.

Possible values: true or false
Default value: true
fadePoint Item in the table to fade start.

Possible values: float values in [0, 1]
Default value: 0.25
warningTime Minutes estimated to arrive the bus, and visual alarm.

Possible values: integer value in [0, 20]
Default value: 5
colored Enable colored warning alert.

Possible values: true or false
Default value: true
updateInterval Time between requests EMT platform in miliseconds.

Possible values: any integer
Default value: 60 * 1000
showDestination Show the bus destination.

Possible values: true or false
Default value: true