MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Formatting the MMM-EFA Module

    Troubleshooting
    3
    10
    4937
    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
      Dom1n1c last edited by

      There are a few who want to use the MMM-EFA Module (a local Transport departure Monitor, including real-time data)
      https://github.com/Dom1n1c/MMM-EFA-departures

      Maybe there is someone who can help me to avoid the overwritten section:
      0_1491654593772_1488184566581-efa.png

      1 Reply Last reply Reply Quote 1
      • D
        Dom1n1c last edited by

        Thanks to @joda92
        Now the indentation works as expected.

        Feel free to pull the Module from GitHub:
        https://github.com/Dom1n1c/MMM-EFA-departures

        H 1 Reply Last reply Reply Quote 1
        • H
          Hawking @Dom1n1c last edited by

          @Dom1n1c
          thanks for taking care about the broken MMM-EFA module. At the moment I’ve some more general problems using MMM but I’m looking forward to use the module.
          I already have one question: How do I get the station ID?
          On github you link to http://www.eg-blog.de/?p=822 however, their dropbox files seem to be down (and anyway incomplete). I think it makes little sense if we now all start scanning the complete number range?
          Is there a way I can extract the number e.g. from the http://efa.mvv-muenchen.de/mobile/XSLT_DM_REQUEST run?

          D 1 Reply Last reply Reply Quote 0
          • D
            Dom1n1c @Hawking last edited by

            @Hawking I run the EFA departure monitor in the browser and then have a look in the source, this could easily be done with chrome (view-source:url)

            Then you have the station and line ids, without running the crawler.

            H 1 Reply Last reply Reply Quote 0
            • H
              Hawking @Dom1n1c last edited by

              @Dom1n1c
              thanks for your reply.

              If I look at http://efa.vrr.de/standard/XSLT_DM_REQUEST for trains departing from “München Marienplatz” I find in the code
              nameInfo_dm=80000760
              which works fine as a stop ID.

              However, if I e.g. search for München - Friedrich-Hebbel-Straße as a stop it is not found at http://efa.vrr.de/standard/XSLT_DM_REQUEST (as it is only a bus stop?).

              If I look via
              http://efa.mvv-muenchen.de/mobile/XSLT_DM_REQUEST
              I find the Friedrich-Hebbel-Straße stop. However, I don’t find a valid ID in the source code.

              Is this station simply to small or is there a way to also include it in the EFA Module?

              Thanks for your support!

              D 1 Reply Last reply Reply Quote 0
              • D
                Dom1n1c @Hawking last edited by

                @Hawking I Think, that the API Endpoint is not correct.
                You can try using:
                http://efa.mvv-muenchen.de/mobile/XSLT_DM_REQUEST //seems to be wrong
                http://efa-alt.mvv-muenchen.de/mvv/XSLT_DM_REQUEST

                I can find the following stop-ID and line-IDs when using the VRR endpoint.

                80000760
                

                lines:

                DDB:92M01: :H
                DDB:92M01: :R
                DDB:92M02: :H
                DDB:92M02: :R
                DDB:92M03: :H
                DDB:92M03: :R
                DDB:92M04: :H
                DDB:92M04: :R
                DDB:92M06: :H
                DDB:92M06: :R
                DDB:92M08: :H
                DDB:92M08: :R
                
                H 1 Reply Last reply Reply Quote 0
                • H
                  Hawking @Dom1n1c last edited by

                  @Dom1n1c
                  thanks for your quick reply.

                  I took the efaUrl from the description of
                  https://github.com/Dom1n1c/MMM-EFA-departures
                  If it is not working (I am not able to tell) you might update the link.

                  Via http://efa-alt.mvv-muenchen.de/mvv/XSLT_DM_REQUEST I can find the " Friedrich-Hebbel-Straße" bus stop. However, in the source code I don’t see a valid stop id.

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dom1n1c last edited by

                    Maybe you can get in touch with the MVV developers. They might be able to tell you, which api endpoint you can use.
                    Using the vrr endpoint might be a workaround since vrr and mvv worked together with mentz in the past.
                    Regarding the mvv, there were some changes on the webpage. Changing the URL parameter to the one used by vrr will redirect you to the ‘mobile’ homepage of the mvv.
                    Regarding the invisible stop ID:
                    mvv seems to work with cookies, so you are not able to find your stop id, since the conversion is done in the background.
                    I’m not sure if the mvv offers real time data, so if you are happy with the scheduled departures, you can consider using the vrr endpoint.

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      Hawking @Dom1n1c last edited by Hawking

                      @Dom1n1c
                      But I don’t find smaller (bus) stations like the “Friedrich-Hebbel-Straße” I mentioned before in the VRR
                      http://efa.vrr.de/standard/XSLT_DM_REQUEST
                      at all. So I don’t know how I could even use it for static departure times.

                      You mentioned 80000760, however the same number was posted by me before for “München Marienplatz”. Did you maybe mixed something or misunderstood me?

                      1 Reply Last reply Reply Quote 0
                      • W
                        wegar last edited by

                        Hi all.
                        MVV-EFA does not work iin the magic Mirror. (after hours still “loading”…)
                        http://efa.vrr.de/standard/XSLT_DM_REQUEST does work with stopIDs from MVV-Area, and sorry Hawking, i don’t know the ID of your station. My one is a “S-Bahn”-Station and its stopID was in the VRR-List.

                        Thanks Dominic for the Module and i hope, somebody still finds a direct way to the MVV München with all Stop- and Line-IDs.

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy