Read the statement by Michael Teeuw here.
Problems with MMM-PublicTransportDB
-
Hi. I installed the module and get the following errormessage in the log:
Transportation fetcher created. (Station ID: 8001586)
(node:18193) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property ‘name’ of undefined
0|mm | (node:18193) 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.My config looks like:
{
module: ‘MMM-PublicTransportDB’,
position: ‘top_right’,
classes: ‘default everyone’,
config: {
stationId: “8001586”,
name: “Düsseldorf-Derendorf”,
//stationId: “20018285”,
hidden: false,
//ignoredStations: [9100003,2342,1337],
//excludedTransportationTypes: ‘bus,suburban,subway’,
delay: 10,
interval: 120000,
departureMinutes: 300,
maxDepartures: 15,
marqueeLongDirections: false,
showColoredLineSymbols: true,
useColorForRealtimeInfo: true,
showTableHeadersAsSymbols: true,
maxUnreachableDepartures: 3,
maxReachableDepartures: 7,
fadeUnreachableDepartures: true,
fadeReachableDepartures: true,
fadePointForReachableDepartures: 0.25
}
},What am I doing wrong ?
Hope that this is the right place for my question.
Thx in advance for your help.
Regards
Jan -
Hi Jan,
This type of error is well known. Please have a look at the git. There it is being discussed in the issues section. Dont know if it has been resolved completely.Greetings from Moers! :-)
-
Thx @lavolp3 . I am a newbie using git - your advice helped so much! Greetings from Duesseldorf to Moers ;-)
-
Perhaps someone can answer another question concerning that module. Does the config parameter “excludedTransportationTypes” have any effect ? Doesn’t matter what I set, it always shows all transportation types…