MMM-PublicTransportDB empty connections

  • Hello viewers,
    I am currently using @olexs MMM-PublicTransportDB module, which works fine most of all, but an issue occured after approximately one day of usage. After firing up the magicmirror the connections are displayed correctly, my pi is working 24/7. But every morning after me waking up, the module is empty so just the header is showing up but no connections for my station although there have to be some trains at this time.
    This only happens after a day of usage time, a simple sudo reboot fixes the problem, but just for another day.
    Any ideas what could go wrong here or how to fix this problem permanently?

    Greetz Jay

  • As it seems I´ve found a workaround for this issue, by setting departureMinutes: 300 in the config.js, therefore for my specific station a transport connection is found everytime.
    I recon that the problem ocurred at night because there are less trams and since the module can´t fetch any connection in the specified departure time, it still could not find any in the morning even though there should be some trams.
    This solution works for me right now.

  • Hey Jay,
    Does the module still work in your installation?
    Unfortunately it does not work in my installation.
    Here is the error message I get in the console.

    Transportation fetcher created. (Station ID: 8000105)
    (node:1126) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'name' of undefined
    (node:1126) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    And here my Config.

        module: 'MMM-PublicTransportDB',
        position: 'top_right',
        config: {
            name: "Bahnhof",
            stationId: '8000139',
    	hidden: false,
            ignoredStations: [], 
            excludedTransportationTypes: '',   
            delay: 0,
            interval: 120000,
            departureMinutes: 30,          
            maxDepartures: 15,
            marqueeLongDirections: true,
            showColoredLineSymbols: true,  
            useColorForRealtimeInfo: true,
            showTableHeadersAsSymbols: true,
            maxUnreachableDepartures: 3,    
            maxReachableDepartures: 7,
            fadeUnreachableDepartures: true,
            fadeReachableDepartures: true,
            fadePointForReachableDepartures: 0.25

Log in to reply

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.