• 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 30.4k 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 @Klinge
    last edited by Feb 20, 2018, 9:56 AM

    @Klinge The problem lies in your settings. First you listed timeToStation twice. The last setting will apply which is 60. Next you state that you only want to see departures within the next 10 minutes (timeInFuture). That will lead to only unreachable departures. Of course it is a bug that the module crashes. I will fix that with the next update.

    But for now you can bring your mirror to work if you set timeInFuture to a higher value. Maybe you should use 60. That way the module has enough departures to choose from.

    1 Reply Last reply Reply Quote 0
    • K Offline
      Klinge
      last edited by Feb 20, 2018, 11:04 AM

      Damn it! So a Layer 8 problem ;-) Now it works. Thank you, for your quick help.

      R 1 Reply Last reply Feb 20, 2018, 11:05 AM Reply Quote 1
      • R Offline
        raywo Module Developer @Klinge
        last edited by Feb 20, 2018, 11:05 AM

        @Klinge There is now also an update available which will prevent this “layer 8 problem“. ;)

        1 Reply Last reply Reply Quote 0
        • D Offline
          djsunrise19
          last edited by djsunrise19 Feb 20, 2018, 2:44 PM Feb 20, 2018, 11:40 AM

          @raywo In my config i set maxUnreachableDepartures: 2,, timeToStation: 15, and timeInFuture: 90, . This morning (8:00 o’clock) there were two trains within maxUnreachableDepartures. 7:54 +0, and 8:05 +2. I think the 7:54 shouldn’t be there. Yes, the train is unreachable (15), but he is gone already :).

          1 Reply Last reply Reply Quote 0
          • K Offline
            Klinge
            last edited by Feb 20, 2018, 12:26 PM

            @raywo
            Thank you. Now it can be configured by someone like me ;-)

            1 Reply Last reply Reply Quote 1
            • P Offline
              pinsdorf Module Developer
              last edited by Feb 20, 2018, 1:58 PM

              Thanks, @raywo Works like a charm. Well done also w.r.t documentation, the convenience script for retrieving stationID, and customization! Awesome work.

              1 Reply Last reply Reply Quote 1
              • I Offline
                Iseknutz
                last edited by Iseknutz Feb 21, 2018, 8:39 AM Feb 21, 2018, 8:37 AM

                @raywo Thank you for the module! It works great. Since I used the MMM-PublicTransportDB and there I had some issues with delay-calculation and excluding from busses. But here everything is working fine. Thanks a lot!

                1 Reply Last reply Reply Quote 1
                • O Offline
                  onkelbobby
                  last edited by Feb 22, 2018, 7:50 PM

                  Thanks also from my side… this is exact the module I was looking for. Is there a way to change the “STR” into “Tram”? Thanks for your help.

                  R 1 Reply Last reply Feb 22, 2018, 8:02 PM Reply Quote 1
                  • R Offline
                    raywo Module Developer @onkelbobby
                    last edited by Feb 22, 2018, 8:02 PM

                    @onkelbobby If your mirror displays "STR" your transport provider sends it that way.

                    One way to suppress that would be to set the option showOnlyLineNumbers to true and providing a custom css file with a rule like so:

                    .str11:before {
                      content: "Tram ";
                    }
                    
                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      onkelbobby
                      last edited by Feb 22, 2018, 9:04 PM

                      @raywo said in MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn:

                      .str11:before {
                      content: "Tram ";
                      }

                      works perfectly…
                      thank you for the prompt support :-)

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        11/42
                        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