Alvinger / MMM-ResRobot

ResRobot module for Magic Mirror 2 - Display public transport departures
14 stars 14 forks source link

New column with Undefined after update #12

Closed a94marbo closed 3 years ago

a94marbo commented 5 years ago

After update the 2019-05-06, a new colum appears with undefined values. screenshot

        {
        module: "MMM-ResRobot",
        position: "bottom_left",
        header: "Avgångar",
        config: {
            routes: [
                {from: "740061474", to: "740000161"},   // ResRobot Station IDs of starting and destination station(s). At least one route must be defined.
                {from: "740061474", to: "740001524"},   // "from" is required but "to" is optional (set "to" to empty string to indicate all destinations)
            ],
            skipMinutes: 0,     // Skip departures that happens within the next <value> minutes.
            maximumEntries: 6,  // Number of departures to show on screen
            truncateAfter: 0,   // A value > 0 will truncate direction name at first space after <value> characters. 0 = no truncation
            apiKey: "***"       // Your ResRobot apiKey
kling71 commented 4 years ago

fix of line 120 in MMM-ResRobot.js:

depLineCell.innerHTML = departure.track || " ";