<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MMM-PublicTransportHafas brings up ERRORs &#96;fetchDepartures&#96;]]></title><description><![CDATA[<p dir="auto">Installed and configured <a href="https://github.com/raywo/MMM-PublicTransportHafas" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-PublicTransportHafas</a> and it shows the same infos I get with the Bahn-App or <a href="http://bahn.de" target="_blank" rel="noopener noreferrer nofollow ugc">bahn.de</a>. 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?</p>
<pre><code>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
</code></pre>
<p dir="auto">sometimes there’s only 3 ERRORs, sometimes there’s more. They don’t show after the appear on (re)start.</p>
<pre><code>		{
			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"
			}
		},

</code></pre>
<p dir="auto"><em>PS: stationID is correct, just marked for privacy</em></p>
]]></description><link>https://forum.magicmirror.builders/topic/7261/mmm-publictransporthafas-brings-up-errors-fetchdepartures</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 17:18:44 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7261.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 May 2018 08:47:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PublicTransportHafas brings up ERRORs &#96;fetchDepartures&#96; on Mon, 27 Aug 2018 18:31:54 GMT]]></title><description><![CDATA[<p dir="auto">I got the same issue. But there are other errors as well since I installed PublicTransportHafas.</p>
<p dir="auto">Is there any clue why this happens?</p>
<p dir="auto">Best,</p>
<p dir="auto">Jan</p>
]]></description><link>https://forum.magicmirror.builders/post/43842</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43842</guid><dc:creator><![CDATA[janth]]></dc:creator><pubDate>Mon, 27 Aug 2018 18:31:54 GMT</pubDate></item></channel></rss>