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

Scheduled Pinned Locked Moved Transport
transportdeutsche bahn
42 Posts 13 Posters 25.3k 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.
  • D Offline
    dvbit @dvbit
    last edited by Apr 27, 2018, 9:31 AM

    forget the post above. everything works perfectly…stupid typo

    1 Reply Last reply Reply Quote 0
    • O Offline
      onkelbobby
      last edited by onkelbobby Jun 22, 2018, 9:53 PM Jun 22, 2018, 9:50 PM

      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 Jun 28, 2018, 4:31 PM Jun 25, 2018, 6:25 AM

        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
        • O Offline
          onkelbobby
          last edited by Jul 1, 2018, 5:15 PM

          Now, one week later I can confirm that the module is working perfectly on sundays only…
          The busses from this station are definitely running all week long.
          Any idea what can be the reason for this?

          1 Reply Last reply Reply Quote 0
          • R Offline
            rudibarani Project Sponsor @raywo
            last edited by Sep 4, 2018, 10:57 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • O Offline
              onkelbobby
              last edited by Dec 5, 2018, 9:30 AM

              …finally the module is working like a charm since more than 4 weeks. I think this was an issue with the data provided.

              1 Reply Last reply Reply Quote 0
              • O Offline
                onkelbobby
                last edited by Dec 5, 2018, 9:41 AM

                One more css question popped up while I reconfigured the appearance of the module

                There is a train called Meridian stopping at our station. If I do not add any css style for this train it appears as the 5 digit train-number only that changes depending on the time of day.

                0_1544002777059_Meridian.jpg

                I want the module to show only the name “Meridian” for all of the trains. So is there a possibility to rename all train numbers to “Meridian” only without showing the train number?

                Below please find the css code I’m currently using:

                /* Meridian */
                .m79600:before {
                  content: "Meridian";
                }
                .m79500:before {
                  content: "Meridian";
                }
                // ... and so on for every train number
                

                thank you for yuour help…

                1 Reply Last reply Reply Quote 1
                • O Offline
                  onkelbobby
                  last edited by Dec 10, 2018, 4:23 PM

                  no ideas?

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 5
                  • 4 / 5
                  • 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