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: Service Temporarily Unavailable

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    29 Posts 8 Posters 7.4k Views 9 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.
    • O Offline
      othomys
      last edited by

      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.

      38ec0db8-f4f5-4b2b-867b-7ca0bc8b17ca-image.png

      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 :-)

      evroomE KristjanESPERANTOK 2 Replies Last reply Reply Quote 0
      • P Offline
        p1lspeda
        last edited by

        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$
                                         }
                        },
        
        evroomE 1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom
          last edited by

          Seems that DB made the service, as used by Hafas, unavailable.

          https://reiseauskunft.bahn.de
          503 Service Temporarily Unavailable

          Also 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.

          MagicMirror version: 2.33.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.33.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          evroomE 1 Reply Last reply Reply Quote 0
          • evroomE Offline
            evroom @evroom
            last edited by evroom

            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.

            MagicMirror version: 2.33.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.33.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            1 Reply Last reply Reply Quote 1
            • evroomE Offline
              evroom @othomys
              last edited by

              @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.",
              

              MagicMirror version: 2.33.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.33.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              1 Reply Last reply Reply Quote 1
              • evroomE Offline
                evroom @p1lspeda
                last edited by

                @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",
                

                MagicMirror version: 2.33.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.33.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                S 1 Reply Last reply Reply Quote 1
                • S Do not disturb
                  sdetweil @evroom
                  last edited by

                  @evroom what folder to be in??

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  evroomE 1 Reply Last reply Reply Quote 0
                  • evroomE Offline
                    evroom @sdetweil
                    last edited by

                    @sdetweil

                    $ cd ~/MagicMirror/modules/MMM-PublicTransportHafas
                    

                    MagicMirror version: 2.33.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.33.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    1 Reply Last reply Reply Quote 1
                    • KristjanESPERANTOK Offline
                      KristjanESPERANTO Module Developer @othomys
                      last edited by

                      @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 :-)

                      KristjanESPERANTOK 1 Reply Last reply Reply Quote 2
                      • KristjanESPERANTOK Offline
                        KristjanESPERANTO Module Developer @KristjanESPERANTO
                        last edited by

                        New release 3.0.0 is out 👩‍💻. Please update the module and test it 🚊⏰😀

                        MZ-BERM 1 Reply Last reply Reply Quote 2
                        • MZ-BERM Offline
                          MZ-BER @KristjanESPERANTO
                          last edited by

                          @KristjanESPERANTO thanks for the update but it is still not working. I haven’t checked the log yet but will let you know later the day.

                          KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                          • KristjanESPERANTOK Offline
                            KristjanESPERANTO Module Developer @MZ-BER
                            last edited by

                            @MZ-BER How did you do the update?

                            cd ~/MagicMirror/modules/MMM-PublicTransportHafas
                            git pull
                            npm ci
                            
                            evroomE MZ-BERM 2 Replies Last reply Reply Quote 1
                            • evroomE Offline
                              evroom @KristjanESPERANTO
                              last edited by

                              @KristjanESPERANTO

                              I did the update and it is looking much better now.
                              I reverted back to db (npm run query dbis working again).
                              Only one thing I noticed:

                              MMM-PublicTransportHafas_20250112_001.png

                              On display (last update 11:15)
                              11:08 +1.0333333333333334
                              11:28 +0

                              The 11:08 entry is in the past (maxUnreachableDepartures: 2,).
                              The +1.0333333333333334 is a bit too much :-)

                              MagicMirror version: 2.33.0
                              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                              Raspbian GNU/Linux 12 (bookworm)

                              Test environment:
                              MagicMirror version: v2.33.0
                              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                              Raspbian GNU/Linux 12 (bookworm)

                              KristjanESPERANTOK 1 Reply Last reply Reply Quote 2
                              • MZ-BERM Offline
                                MZ-BER @KristjanESPERANTO
                                last edited by

                                @KristjanESPERANTO I missed the npm ci. Now it is working as expected. Thank you 😊

                                1 Reply Last reply Reply Quote 1
                                • KristjanESPERANTOK Offline
                                  KristjanESPERANTO Module Developer @evroom
                                  last edited by

                                  @evroom said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

                                  The +1.0333333333333334 is a bit too much :-)

                                  I just released version 3.0.1 to fix this 😀

                                  evroomE V 2 Replies Last reply Reply Quote 0
                                  • evroomE Offline
                                    evroom @KristjanESPERANTO
                                    last edited by

                                    @KristjanESPERANTO said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

                                    I just released version 3.0.1 to fix this 😀

                                    At this moment I see an entry in the past with +0.5.
                                    Also saw +0.6.
                                    When turning on debug, I only see delay values of 0, 60 and null, so I wonder where the current 0.5 comes from.
                                    The values for when and plannedWhen all have a difference of 0 or 1 minute.

                                    It seems that it only affects the first entry in the list, which in my case is the first unreachable in the past.
                                    And it does not really bother me, but it still is odd.

                                    MagicMirror version: 2.33.0
                                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                    Raspbian GNU/Linux 12 (bookworm)

                                    Test environment:
                                    MagicMirror version: v2.33.0
                                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                    Raspbian GNU/Linux 12 (bookworm)

                                    1 Reply Last reply Reply Quote 0
                                    • V Offline
                                      Volkae @KristjanESPERANTO
                                      last edited by

                                      @KristjanESPERANTO

                                      I did the update

                                      cd ~/MagicMirror/modules/MMM-PublicTransportHafas
                                      git pull
                                      npm ci

                                      but it still does not work.

                                      Any idea??

                                      V 1 Reply Last reply Reply Quote 0
                                      • V Offline
                                        Volkae @Volkae
                                        last edited by

                                        @Volkae

                                        pi@magicmirror-buero:~/MagicMirror/modules/MMM-PublicTransportHafas $ npm ci
                                        npm warn deprecated vbb-translate-ids@3.1.0: Deprecated. Use vbb-translate-ids@latest.
                                        npm warn deprecated hafas-client@2.10.4: Deprecated. Use hafas-client@latest.

                                        KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                                        • KristjanESPERANTOK Offline
                                          KristjanESPERANTO Module Developer @Volkae
                                          last edited by

                                          @Volkae Looks like you don’t use my fork. I recommend deleting the module and install this: https://github.com/KristjanESPERANTO/MMM-PublicTransportHafas

                                          S V 2 Replies Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @KristjanESPERANTO
                                            last edited by

                                            @KristjanESPERANTO said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

                                            deleting the module and install

                                            I think to be more clear, deleting the module folder

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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