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-Random Fact

    Scheduled Pinned Locked Moved Education
    59 Posts 12 Posters 36.0k Views 11 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
      Ramez @Mykle1
      last edited by Ramez

      @mykle1 yep, it does work ONLY when set to english but other languages has a problem as stated here due to error in promise.all() function Here …please try to change your language to any other to confirm the error and let us know.

      @lavolp3 it’s the same error of mine.

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Ramez
        last edited by

        @ramez

        Ahh ok. I’m sure the author will address the issue when he has time.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer
          last edited by cowboysdude

          Is fixed…git pull…enjoy your weekend. Thanks @Mykle1

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

            I’m getting the same issues.
            entry in config:
            {
            disabled: false,
            module: ‘MMM-rfacts’,
            position: ‘bottom_bar’
            },
            but it only shows “Ein Tatsache bekommen…”. I did “git pull” today and I am up to date.

            Any hint?

            cowboysdudeC 1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @dirkie
              last edited by

              @dirkie Yes…the api is strange… if you hit it too many times they will lock you out for a couple days…

              Give it time and it should work again.

              1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer
                last edited by

                I am still having an Unhandled promise rejection:

                UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): TypeError: Cannot read property 'refs' of undefined
                

                My config is completely stripped down now as the new Readme suggests. No config entries.
                Loading message is in German which is my language.
                However translation still does not seem to work here.

                Any suggestions?

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer
                  last edited by

                  I will look at it again tonight they may have changed the api… stay tuned.

                  1 Reply Last reply Reply Quote 0
                  • cowboysdudeC Offline
                    cowboysdude Module Developer
                    last edited by

                    I just tested mine and it’s working fine… I reuploaded mine to make sure there are no errors in the one on Github…

                    Also here is my config:

                          {
                            disabled: f,
                            module: 'MMM-rfacts',
                            position: 'top_left', 
                           },
                    

                    The language selection is taken directly from your language selected in the config file… I switched mine to ‘de’ and it worked fine. So what I would do if I were you is to delete it all and do the git clone thing and then run npm install in the MMM-rfacts dir …

                    lavolp3L 1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @cowboysdude
                      last edited by

                      @cowboysdude
                      Thanks dude :-), will try it out later today

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

                      1 Reply Last reply Reply Quote 1
                      • lavolp3L Offline
                        lavolp3 Module Developer
                        last edited by

                        Hi guys.
                        I’ve tried to get this module working again and am still failing.
                        I was able to find out the following:
                        My general config is mentioning
                        language: 'de'
                        When I set this to en, the module works.
                        With language de, it does not give a translated fact.

                        Now the above mentioned “unhandled promise rejection” warning is not the problem.
                        You can solve this issue by adding a .catch() phrase after the .this in the promise part to catch and process a rejected promise.

                        Since the translate() function does not properly work, the promise gets rejected, and since there is no rejection handing in the code, we get the “unhandled rejection” warning. I’ll try to set up a solution and send a PR.

                        The translation problem with this module apparently lies in the google-translate-api.
                        I was able to console.log the error message
                        at /home/pi/MagicMirror/modules/MMM-rfacts/node_modules/google-translate-api/index.js:106:17 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) code: 'BAD_REQUEST' }

                        This error is well known for the google-translate-api since 2018.

                        The question is:
                        Does this module work for anyone in another language? (and if yes: WHY?)

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

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