Code Monkey home page Code Monkey logo

mmm-emt's Introduction

EMT MagicMirror² module

This module shows estimated arrival times for bus lines in Madrid, in MagicMirror².

It uses the official EMT API so, to install this module you will need to register yourself on the EMT OpenData platform here. Once registered, you need to "create an application" to obtain your clientId and passKey.

EMT Module 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: "MMM-emt",
        position: "top_left", // Best results in left or right regions.
        config: {
            // See 'Configuration options' for more information.
        }
    }
]

Configuration options

The following property is required:

Option Description
busStops List to query about all lines defined. It should be an array of stop codes.

EMT authentication options:

These two options are required:

Option Description
clientId ClientId provided by EMT open-data platform.

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

Default value: ""

UI options:

All of these are optional:

Option Description
highlightInterval Interval, in minutes, that is optimum. Busses in that interval will show highlighted.

Possible values: an array of two values in 0-20
Default value: [5, 10]
updateInterval Time between requests EMT platform in miliseconds.

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

Possible values: true or false
Default value: true

mmm-emt's People

Contributors

jirsis avatar gezeta-id avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.