• 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-PublicTransportHafas brings up ERRORs `fetchDepartures`

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 1.0k Views 2 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.
  • B Offline
    binderth
    last edited by May 29, 2018, 8:47 AM

    Installed and configured MMM-PublicTransportHafas and it shows the same infos I get with the Bahn-App or bahn.de. But on startup I regularly receive those ERRORs - can I avoid those as I don’t know if there’s some side effects attached to them?

    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | TypeError: Cannot read property 'fetchDepartures' of undefined
    0|mm       |     at Class.fetchDepartures (/home/pi/MagicMirror/modules/MMM-PublicTransportHafas/node_helper.js:56:12)
    0|mm       |     at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-PublicTransportHafas/node_helper.js:21:14)
    0|mm       |     at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at Socket.emit (events.js:194:7)
    0|mm       |     at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:513:12
    0|mm       |     at _combinedTickCallback (internal/process/next_tick.js:73:7)
    0|mm       |     at process._tickCallback (internal/process/next_tick.js:104:9)
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    

    sometimes there’s only 3 ERRORs, sometimes there’s more. They don’t show after the appear on (re)start.

    		{
    			module: "MMM-PublicTransportHafas",
    			position: "bottom_left",
    
    			config: {
    				stationID: "xxx",						// Replace with your stationID!
    				stationName: "xxx Bahnhof",				// Replace with your station name!
    
    				direction: "yyy",						// Show only departures heading to this station. (A station ID.)
    				ignoredLines: [],							// Which lines should be ignored? (comma-separated list of line names)
    				excludedTransportationTypes: ["BuN"],		// Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: StN for tram, BuN for bus, s for suburban
    				timeToStation: 10,							// How long do you need to walk to the next Station?
    				timeInFuture: 190,
    
    				showColoredLineSymbols: true,				// Want colored line symbols?
    				useColorForRealtimeInfo: true,				// Want colored real time information (timeToStation, early)?
    				showTableHeadersAsSymbols: true,			// Table Headers as symbols or text?
    				maxUnreachableDepartures: 2,				// How many unreachable departures should be shown?
    				maxReachableDepartures: 5,					// How many reachable departures should be shown?
    				showOnlyLineNumbers: false					// Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
    			}
    		},
    
    

    PS: stationID is correct, just marked for privacy

    1 Reply Last reply Reply Quote 0
    • J Offline
      janth
      last edited by Aug 27, 2018, 6:31 PM

      I got the same issue. But there are other errors as well since I installed PublicTransportHafas.

      Is there any clue why this happens?

      Best,

      Jan

      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