Read the statement by Michael Teeuw here.
MMM-PublicTransportHafas: Service Temporarily Unavailable
-
Hello everyone
I have been using the tool MMM-PublicTransportHafas for a few years now. So far, I have had no problems with it. But since yesterday, the gadget no longer works. Only the heading and the message “Service Temporarily Unavailable” are displayed.
A few days before I updated to the latest Raspbian version and the latest MM version. After that, however, MMM-PublicTransportHafas still worked. Only a few days without change did the problem occur.
Restarting the system did not bring any change. Connection to the internet is available - at least my other modules work.
Does anyone have an idea why this is?
Here is my configuration:
module: "MMM-PublicTransportHafas", position: "top_right", config: { stationID: "954693", stationName: "Georg-Schwarz-Str./Merseburger-Str. ", direction: "", ignoredLines: [], excludedTransportationTypes: [], timeToStation: 5, showColoredLineSymbols: false, useColorForRealtimeInfo: true, showTableHeadersAsSymbols: true, maxUnreachableDepartures: 0, maxReachableDepartures: 3, customLineStyles: "", showOnlyLineNumbers: true, marqueeLongDirections: false, showAbsoluteTime: false, fadeUnreachableDepartures: false, fadeReachableDepartures: false, }
Thank you :-)
-
I cannot help you, as I do not have a solution.
BUT: I have the exact same problem{ module: "MMM-PublicTransportHafas", position: "top_right", config: { stationID: "000405041", // Replace with your stationID! stationName: "Höfchen/Listmann", // Replace with your station name! direction: "", // Show only departures heading to this station. (A station ID.) ignoredLines: [], // Which lines should be ignored? (comma-separated list of line names) excludedTransportationTypes: [], // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: StN for > timeToStation: 10, // How long do you need to walk to the next Station? showColoredLineSymbols: true, // Want colored line symbols? useColorForRealtimeInfo: true, // Want colored real time information (timeToStation, early)? showTableHeadersAsSymbols: true, // Table Headers as symbols or text? maxUnreachableDepartures: 0, // How many unreachable departures should be shown? maxReachableDepartures: 10, // How many reachable departures should be shown? customLineStyles: "", // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive) showOnlyLineNumbers: false // Display only the line number instead of the complete name, i. e. "11" instead of "STR 11" } }, { module: "MMM-PublicTransportHafas", position: "top_right", config: { stationID: "008003816", // Replace with your stationID! stationName: "Römisches Theater", // Replace with your station name! direction: "", // Show only departures heading to this station. (A station ID.) ignoredLines: [], // Which lines should be ignored? (comma-separated list of line names) excludedTransportationTypes: [], // Which transportation types should not be shown on the mirror? (comma-separated l$ timeToStation: 5, // How long do you need to walk to the next Station? showColoredLineSymbols: true, // Want colored line symbols? useColorForRealtimeInfo: true, // Want colored real time information (timeToStation, early)? showTableHeadersAsSymbols: true, // Table Headers as symbols or text? maxUnreachableDepartures: 0, // How many unreachable departures should be shown? maxReachableDepartures: 10, // How many reachable departures should be shown? customLineStyles: "", // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitiv$ showOnlyLineNumbers: false // Display only the line number instead of the complete name, i. e. "11" instead of$ } },
-
Seems that DB made the service, as used by Hafas, unavailable.
https://reiseauskunft.bahn.de
503 Service Temporarily UnavailableAlso other programs using it have this problem.
Can only hope that there is or there will be an alternative source.
It is the one of the 3 most used MagicMirror modules in our household. -
Possible work-around.
Needs travelling via Austria :-)To check if your station is available:
$ cd ~/MagicMirror/modules/MMM-PublicTransportHafas $ npm run query oebb > mmm-publictransporthafas@2.1.13 query > node ./convenience/query_stations.mjs oebb Using hafas-client profile: oebb Enter an address or station name:
This will give you a station Id.
Update config.js:
$ vi ~/MagicMirror/config/config.js : : hafasProfile: "oebb", stationID: "<ID>", stationName: "<Stop>", : :
For me the list appears again, although I do not see the real-time times, meaning it shows the ⚠ symbol (as set in
noRealtimeDelayString: "⚠",
).One can try different hafas-client profiles, listed in:
https://github.com/public-transport/hafas-client/blob/main/p/readme.md
When you are lucky there is a good alternative to db.
-
@othomys said in MMM-PublicTransportHafas: Service Temporarily Unavailable:
Georg-Schwarz-Str./Merseburger-Str.
For you I found this one:
$ npm run query insa Enter an address or station name: Georg-Schwarz Stops found for 'Georg-Schwarz': > Stop: Leipzig, Georg-Schwarz-/Merseburger Str. ID: 12555 Transport product(s): Tram, Bus
So your config will be:
hafasProfile: "insa", stationID: "12555", stationName: "Georg-Schwarz-Str./Merseburger-Str.",
-
@p1lspeda said in MMM-PublicTransportHafas: Service Temporarily Unavailable:
Höfchen/Listmann
For you, try this:
$ npm run query rmv Using hafas-client profile: rmv Enter an address or station name: Höfchen/Listmann Stops found for 'Höfchen/Listmann': > Stop: MZ Höfchen/Listmann ID: 3029051 Transport product(s): Bus
Config:
hafasProfile: "rmv", stationID: "3029051", stationName: "Höfchen/Listmann",
-
@evroom what folder to be in??
-
$ cd ~/MagicMirror/modules/MMM-PublicTransportHafas
-
@othomys I have a solution, just need a bit time to implement it properly. I’ll try to bring out a new release at the weekend :-)