• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-PublicTransportDB empty connections

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 2.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    Jay
    last edited by Apr 10, 2017, 10:19 AM

    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

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jay
      last edited by Apr 14, 2017, 9:47 AM

      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.

      1 Reply Last reply Reply Quote 0
      • T Offline
        Tekki
        last edited by Aug 20, 2017, 3:44 PM

        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
            }
        },
        
        1 Reply Last reply Reply Quote 0
        • C Offline
          CornJ
          last edited by Sep 18, 2017, 5:41 PM

          I have the same problem.
          Did you figure it out?
          Can’t find any errors.
          I am not realy happy with the documentation.

          My config looks like this:

          {
                                 module: 'MMM-PublicTransportDB',
                                 position: 'top_right',
                                 config: {
                                         name: "MMM-PublicTransportDB",
                                         hidden: false,
                                         stationId: 8001005,
                                         ignoredStations: [],              
                                         excludedTransportationTypes: ' ',   
                                         direction: null,                    
                                         marqueeLongDirections: true,
                                         delay: 12,                         
                                         interval: 120000,              
                                         departureMinutes: 300,              
                                         showColoredLineSymbols: true,       
                                         useColorForRealtimeInfo: true,     
                                         showTableHeaders: true,
                                         showTableHeadersAsSymbols: true,  
                                         maxUnreachableDepartures: 3,        
                                         maxReachableDepartures: 7,        
                                         fadeUnreachableDepartures: true,
                                         fadeReachableDepartures: true,
                                         fadePointForReachableDepartures: 0.25
                                 }
          
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy