Git Product home page Git Product logo

mmm-wienerlinien's Introduction

MMM-WienerLinien GitHub license Build Status Code Climate Known Vulnerabilities

Public Transport of Vienna/Austria Module for MagicMirror2

Example

Station 1 Station 2 Incidents

Dependencies

Installation

  • Clone this repo into ~/MagicMirror/modules directory.
  • Configure your ~/MagicMirror/config/config.js:
{
    module: 'MMM-WienerLinien',
    position: 'top_right',
    config: {
        stations: ['2545', '1668'],
        // Place the other config options here
    }
}
  • Run command npm install --production in ~/MagicMirror/modules/MMM-WienerLinien directory.

Config Options

Option Default Description
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 flo80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

flo80 bblaha mxr0

mmm-wienerlinien's Issues

incidentLines filter is not working

@bblaha: incidentLines was - from my understanding - supposed to act as a filter for which lines to show in the Incidents section. Upon filling the variable, ALL incidents showed up unfiltered, thus cluttering the screen.

@fewieden: @bblaha would you mind showing your config without the API key? This should already be handled in the node helper

options.url = `${this.baseUrl}trafficInfoList?sender=${this.config.api_key}${type}&relatedLine=${this.config.incidentLines.join('&relatedLine=')}`;

@bblaha: Sure:

                {
                    module: "MMM-WienerLinien",
                    position: "top_left",
                    config: {
                        api_key: "XXX",
                        stations: ["1266", "1259"],
                        updateInterval:"60000",
                        rotateInterval:"5000",
                        incidentLines:["35A","39A","U4","U6"],
                        shortenDestination:"12",
                    }
                },

Without my change the above config shows ALL incidents of all line. I have tried entering the line name, the line ID according to the Wiener Linien API and everything else I could think of (Documentation is not really clear on what it expects here). Output was always ALL incidents.

Extracted from #12

Missing Station IDs

I just saw that some of the S-Bahn lines are not available (no Station ID). After contacting the opendata team from wienerlinien I was told that those are ÖBB stations and therefore they can't provide those.
ÖBB declared that they also want to open up there API in a opendata movement last year. Will you try to include them?

I am trying to get it as iframe since they provide the html for it but not quite as beautiful as your module

how to get the data

Hi! How do you get the data from die Wiener Linien Server? I've played around for days but with JavaScript I always fail with the damn CORS error. Thanks for helping. Peter

Sort by Departure Time

Platform (Hardware/OS): Raspberry PI 4 / Raspberry PI OS

Node version: 2.6.1

MagicMirror version: 2.13.0

Module version: 2.0.0

Description of the issue:
Somehow the departures on my screen are not sorted by departure, but by line. Is it possible to sort by departure? Reason: different lines go same direction and it doesn't matter which line I take.
I guess this works as designed, right? If not , please let me know if you need any screenshots.

Only shows "Loading..."

Platform (Hardware/OS): Pi3 B+

Node version:

MagicMirror version: MM2

Module version: Latest

Description of the issue:
Sorry, im a completley newbe...
I got the API Key and configured the station, but it only shows "Loading..."
What did I wrong?

DOESN'T WORK ANYMORE

Since a few days the module doesn't work anymore. It show "lade..." but no informations.

Module is flashing (reloading?)

The module flashes at different intervals. Sometimes every 3 seconds, then not for longer...

I checked it: it's every time when he fetches http://myip/modules/MMM-WienerLinien//templates/MMM-WienerLinien.njk?s=1638776447287

But I don't know, why he sometimes fetches this URL so often.

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.