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 – Public transport information for all stations known to Deutsche Bahn

    Scheduled Pinned Locked Moved Transport
    transportdeutsche bahn
    42 Posts 13 Posters 35.7k Views 13 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.
    • R Offline
      raywo Module Developer @onkelbobby
      last edited by

      @onkelbobby I’ve made an update to the module. It is now possible to provide key-value pair which are used to replace strings in the displayed directions. Use the option replaceInDirections. For more information see the documentation.

      1 Reply Last reply Reply Quote 0
      • O Offline
        onkelbobby
        last edited by

        @raywo Thank’s… best support ever :-)

        1 Reply Last reply Reply Quote 1
        • V Offline
          Vauxdvihl
          last edited by Vauxdvihl

          @raywo
          Thanks for this great module
          Today here in munich we had absolutly chaos with regards to the “sbahn” here.
          I was wondering that the modules displays me…everything is ok.

          So i have been checking the stations from Start Starnberg to End Munich.
          But in the morning (and also till now) the end will be never reached by “sbahn” because of big problems.
          Isnt there a possibilty to check if there are some problems by the choosen start-to-end connection?

          Thanks a lot

          R 1 Reply Last reply Reply Quote 0
          • E Offline
            E3V3A
            last edited by

            @raywo Great Looking module, very professional!

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            1 Reply Last reply Reply Quote 1
            • R Offline
              raywo Module Developer @Vauxdvihl
              last edited by

              @Vauxdvihl Unfortunately I can’t do anything about this. Obviously MVG or DB didn’t update their data accordingly.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jimjay203
                last edited by

                Hey @raywo, is this module able to show cancelled trains?

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  raywo Module Developer @jimjay203
                  last edited by

                  @jimjay203 Actually I don’t know. But I know for sure that the module displays just the data which are given to the HAFAS system. If your provider delivers such information then it would be possible to display them.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jimjay203
                    last edited by

                    The NordWestBahn seems to share this information with Deutsche Bahn, because the DB-Navigator App on my iPhone shows all cancelled trains. I guess i have to wait and see…
                    Is there anyone, who ever saw a train marked as cancelled?

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      djsunrise19 @jimjay203
                      last edited by

                      @jimjay203 Yesterday morning some trains were cancelled in the near of frankfurt / main. Nothing on my mirror, nothing in the DB app (+0). But the RMV app was up do date.

                      E 1 Reply Last reply Reply Quote 0
                      • E Offline
                        E3V3A @djsunrise19
                        last edited by

                        @djsunrise19 Is that on Android? We can reverse the app… or use a VPN based sniffer, such as NetGuard to find the exact URL’s its using.

                        "Everything I do (here) is for free – altruism is the way!"
                        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          djsunrise19 @E3V3A
                          last edited by

                          @E3V3A No, iOS.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            raywo Module Developer @raywo
                            last edited by

                            For all those of you who like this module, it would be nothing without the data from the hafas-client. Please consider supporting the author on his Patreon page.

                            E 1 Reply Last reply Reply Quote 0
                            • E Offline
                              E3V3A @raywo
                              last edited by

                              @raywo Hi goal and standards are noble, but I think trying to get some money via Patreon is a dead end. People hate to sign up for (new) stuff to send some pocket cash here and there. He would probably benefit more from getting a crypto currency account. Or some other big payment chain. That said, those bloody public transportation agencies should donate him some living funds!

                              "Everything I do (here) is for free – altruism is the way!"
                              MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                gekberlin
                                last edited by

                                hi @raywo,
                                it looks like there are no realtime datas avaible for (just) tramstops in Berlin ? Is a general fault or it’s just my one ?
                                Example StationID : 000732980 , the module shows constanly + 0 min and öffi /bvg says +xx mins

                                I Would appreciate any help and /or suggestions

                                Best greetings

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  raywo Module Developer @gekberlin
                                  last edited by raywo

                                  @gekberlin It is possible that no real-time data are shown in my module. But as far as I remember there is a module MMM-PublicTransportBerlin which should give you better information.
                                  If you don’t mind doing a bit of hacking you can alter my source code. Go to line 5 in HafasFetcher.js And change the part after the equal sign to require('hafas-client/p/vbb'). That way you are using the VBB specific queries which may or may not include real-time data.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    phunky2018
                                    last edited by

                                    Thank you for this great module.
                                    At my train station, beside DB rails services we also have some competitors.
                                    e.g. (ag or OPB)
                                    0_1522405593106_trains.PNG
                                    Is it possible to get a similar look for this competitors?
                                    e.g. I want to give every competitors his own color. Is this possible in custom css file or styles.css?
                                    My test so far are not successful.
                                    Thany you in advance.

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dvbit
                                      last edited by

                                      Hello
                                      Thanks for the wonderful module.
                                      Thanks to Hafas international coverage this should work also over here (Italy)
                                      Unfortunately I have not managed to make it work.
                                      this even with the example config provided.
                                      no complaint but nothing shows up.
                                      did something broke in the backend? Just saw an issue in the github…
                                      Does anybody else have the same behaviour?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        dvbit @dvbit
                                        last edited by

                                        forget the post above. everything works perfectly…stupid typo

                                        1 Reply Last reply Reply Quote 0
                                        • O Offline
                                          onkelbobby
                                          last edited by onkelbobby

                                          Hi…

                                          since a few weeks I’m facing a problem that the current bus departures for one specific bus stop in Munich is not working. I’m running the MMM_PublicransportHafas Module 3 times on my mirror and two instances are running perfectly fine - one showing suburban trains “Mittersendling” , and another one for bus station “Heckenstallerstrasse”. But the third instance that is meant to show the bus departures from station “Adunistrasse” only feeds back something like “no reachable departures”.
                                          0_1529704391953_Bildschirmfoto 2018-06-22 um 23.37.50.png

                                          I crosschecked it with DB website and here the next departures are shown.
                                          0_1529704406496_Bildschirmfoto 2018-06-22 um 23.38.15.png

                                          the code used for “Heckenstallerstrasse” and for “Adunistrasse” is absolutely identical except the station numbers.

                                          // MMM-PublicTransportHafas Heckenstallerstr
                                          	{
                                          		module: "MMM-PublicTransportHafas",
                                          		position: "bottom_right",
                                          		
                                          		config: {
                                          			stationID: "000790109",          		// eigene stationID eintragen: Heckenstallerstr
                                          			stationName: "Heckenstallerstrasse",   	// Replace with your station name!
                                          			headerAppendix: "Richtung Harras", 		// wohin es gehen soll - wird nach dem station Name angezeigt
                                          			direction: "008004130",    				// Show only departures heading to this station. (A station ID.) Harras
                                          
                                          			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 tram, BuN for bus, s for suburban
                                          			timeToStation: 0,                		// How long do you need to walk to the next Station?
                                          			showTableHeaders: false,				// ob die Überschriften angezeigt werden sollen
                                          			showColoredLineSymbols: true,     		// Want colored line symbols?
                                          			useColorForRealtimeInfo: true,    		// Want colored real time information (timeToStation, early)?
                                          			showTableHeadersAsSymbols: false,  		// Table Headers as symbols or text?
                                          			maxUnreachableDepartures: 0,      		// How many unreachable departures should be shown?
                                          			maxReachableDepartures: 5,        		// How many reachable departures should be shown?
                                          			customLineStyles: "mvg",             	// Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
                                          			showOnlyLineNumbers: true,       		// Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
                                          			replaceInDirections: {					// Ersetzt gewisse Anzeigen in den Destinations z.B. München durch nix
                                          				"München": "", "\\,": "",
                                          			},
                                          		},
                                          	},
                                          
                                          		// MMM-PublicTransportHafas Adunistr
                                          	{
                                          		module: "MMM-PublicTransportHafas",
                                          		position: "bottom_right",
                                          		
                                          		config: {
                                          			stationID: "000790090",          		// eigene stationID eintragen: Heckenstallerstr
                                          			stationName: "Adunistrasse",		   	// Replace with your station name!
                                          			headerAppendix: "Richtung Harras", 		// wohin es gehen soll - wird nach dem station Name angezeigt
                                          			direction: "000624609",    				// Show only departures heading to this station. (A station ID.) Harras
                                          
                                          			ignoredLines: [],                 		// Which lines should be ignored? (comma-separated list of line names)
                                          			excludedTransportationTypes: ["suburban", "regional"],  		// 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: 0,                		// How long do you need to walk to the next Station?
                                          			showTableHeaders: false,				// ob die Überschriften angezeigt werden sollen
                                          			showColoredLineSymbols: true,     		// Want colored line symbols?
                                          			useColorForRealtimeInfo: true,    		// Want colored real time information (timeToStation, early)?
                                          			showTableHeadersAsSymbols: false,  		// Table Headers as symbols or text?
                                          			maxUnreachableDepartures: 0,      		// How many unreachable departures should be shown?
                                          			maxReachableDepartures: 5,        		// How many reachable departures should be shown?
                                          			customLineStyles: "mvg",             	// Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
                                          			showOnlyLineNumbers: true,       		// Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
                                          			replaceInDirections: {					// Ersetzt gewisse Anzeigen in den Destinations z.B. München durch nix
                                          				"München": "", "\\,": "",
                                          			},
                                          		},
                                          	},
                                          

                                          What am I doing wrong?!

                                          1 Reply Last reply Reply Quote 0
                                          • O Offline
                                            onkelbobby
                                            last edited by onkelbobby

                                            Strange and confusing news:
                                            yesterday (Sunday June 24th) the Module worked perfectly. It also showed all departures from “Adunistrasse”. This morning unfortunately the old behavior was back again: no reachable departures as described above.

                                            Any Ideas?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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