Code Monkey home page Code Monkey logo

mmm-wienerlinien's Introduction

MMM-WienerLinien GitHub license Build Status Code Climate Known Vulnerabilities

Public Transport of Vienna/Austria Module for MagicMirror2

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.

  2. Configure your ~/MagicMirror/config/config.js:

    {
        module: "MMM-WienerLinien",
        position: "top_right",
        config: {
            api_key: "xxxxxxxxxxx",
            stations: ["2545", "1668"],
            ...
        }
    }
    
  3. Run command npm install --productive in ~/MagicMirror/modules/MMM-WienerLinien directory.

Config Options

Option Default Description
api_key REQUIRED Get an API key for free access to the data of www.wienerlinien.at here.
stations REQUIRED Insert here the station ids you want to display data from How to find an ID?.
max 5 How many departures should be displayed.
shortenStation false After how many characters the station name should be cut. Default: show full name.
shortenDestination false After how many characters the destination name should be cut. Default: show full name.
rotateInterval 20000 (20 sec) How fast should be switched between the stations.
updateInterval 300000 (5 mins) How often should the data be fetched.
elevatorStations EMPTY Insert the station ids where you would like to know elevator disruptions
incidentLines EMPTY Insert the line names for which you would like to know disruptions
incidentShort false If true, also the changes to lines are displayed (AZBLinienspezialtext see documentation), otherwise only current disruptions

mmm-wienerlinien's People

Contributors

fewieden avatar bblaha 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.