Git Product home page Git Product logo

mmm-mkastner-oebb-station-board's Introduction

ÖBB Station Board

Show arrivals and departures of a specific ÖBB station

Screenshot of the module in Action. Shows the name of the station and the next 4 connections.

Thanks to @mymro for creating the oebb-api which is used the get information for the stations.

Installation

  1. Clone the Repo into your MagicMirror modules folder git clone [email protected]:mscharl/MMM-oebb-station-board.git
  2. Install some node dependencies cd MMM-oebb-station-board && npm install --production
  3. Configure and enjoy

Configuration

Property Description
stationNumber The number of the station. Can be determined with the helper script.
direction The number of the station in which the shown connection are heading. Can be determined with the helper script.
boardType Switch between dep for departure or arr for arrival. Default is dep.
maxConnections The maximum number of connections to show. Default is 4.
connectionTypes Filter the shown transportation types. See Connection Types for more. Shows all connections by default.

Example

{
    modules: [
        {
            module: 'MMM-oebb-station-board',
            position: 'top_right',
            config: {
                stationNumber: 1130401,
                direction: 1290401,
                connectionTypes: {
                    Railjet: true,
                    ECandICE: true,
                    DandEuronightAndNightjet: true,
                    Regional: true,
                    SBahn: true,
                    Bus: true,
                    Subway: true,
                    Tram: true,
                    Westbahn: true,
                    AST: true,
                },
            },
        },
    ],
}

Get a station ID

To load data for you desired station you first need the ID of the station. The module includes a little helper to get this ID.

  1. Run npm install --production if you did not already.
  2. Run npm run stationFinder.
  3. Follow the instructions.

Connection Types

The connectionTypes property can be undefined to show all connections. To show only specific types pass an object with one or more of the following flags.

Property Description
Railjet Shows Railjet trains when true.
ECandICE Shows EC and ICE trains when true.
DandEuronightAndNightjet Shows D, Euronight and Nightjet trains when true.
Regional Shows regional trains when true.
SBahn Shows Schnellbahn trains when true.
Bus Shows Buses when true.
Subway Shows Subways when true.
Tram Shows Trams when true.
Westbahn Shows Westbahn trains when true.
AST Shows AST when true.

Planned Features

  • Combine multiple stations in one board
  • Combine multiple directions per station

mmm-mkastner-oebb-station-board's People

Contributors

mscharl 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.