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

Scheduled Pinned Locked Moved Education
59 Posts 12 Posters 31.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.
  • L Offline
    lavolp3 Module Developer
    last edited by lavolp3 Feb 7, 2019, 12:41 PM Feb 7, 2019, 12:40 PM

    Well…
    “Eureka!”

    Apparently the problem is solved using this hack. There seems to be an issue with the google-translate-api npm module that some users solved with a fork.
    @cowboysdude look at it and let me know what you think.
    If the issue/solution is confirmed a workaround would be to have a working fork installed via npm.

    (need to get back to work now!!..)

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

    1 Reply Last reply Reply Quote 1
    • L Offline
      lavolp3 Module Developer
      last edited by lavolp3 Mar 26, 2019, 8:12 AM Mar 26, 2019, 8:12 AM

      It’s odd that noone else seems to have the translation problem.

      However, I have just pushed a PR including a promise.catch function in case translation does not work.
      This module still only works with the “manipulated” google-translate-api" for me.

      Love your module, @cowboysdude . Many great facts received in recent months.

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

      1 Reply Last reply Reply Quote 0
      • L Offline
        lavolp3 Module Developer @cowboysdude
        last edited by Apr 20, 2020, 8:03 AM

        @cowboysdude
        I’m afraid the link is broken in your module.
        Directly visiting http://www.fayd.org/api/fact.xml redirects to a facebook page.

        Node_helper.js returns a promise rejection because there’s no body element to be fetched.
        Can you please check?

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

        C 2 Replies Last reply Apr 20, 2020, 12:43 PM Reply Quote 0
        • C Offline
          cowboysdude Module Developer @lavolp3
          last edited by cowboysdude Apr 20, 2020, 12:49 PM Apr 20, 2020, 12:43 PM

          @lavolp3 Thank you!! That is very interesting and I will look into that right now!!! Will let you know.

          I looked…looks like I’ll have to rewrite parts of it and I will and repost as soon as it’s done…later tonight :)

          1 Reply Last reply Reply Quote 0
          • C Offline
            cowboysdude Module Developer @lavolp3
            last edited by Apr 21, 2020, 1:36 AM

            @lavolp3 I have it working… it’ll be a day or so to upload it as I do have one very strange error that I want to correct :)

            1 Reply Last reply Reply Quote 0
            • C Offline
              cowboysdude Module Developer
              last edited by Apr 21, 2020, 8:59 PM

              @lavolp3

              https://github.com/cowboysdude/MMM-rfacts

              New api, tested and working :)

              C S 2 Replies Last reply Apr 22, 2020, 3:25 PM Reply Quote 2
              • C Offline
                chassain 0 @cowboysdude
                last edited by Apr 22, 2020, 3:25 PM

                @cowboysdude hello,

                Sorry but nothing to display after new install. Only “obtenir un fait…” (french)

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Stoffbeuteluwe Project Sponsor @cowboysdude
                  last edited by Apr 22, 2020, 4:19 PM

                  @cowboysdude Sorry nothing is showing… only (Eine Tatsache bekommen) German

                  C 1 Reply Last reply Apr 23, 2020, 12:59 AM Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer @Stoffbeuteluwe
                    last edited by Apr 23, 2020, 12:59 AM

                    @Stoffbeuteluwe Not sure why it’s working here… so if you can PM me and I’ll have you try something to see if it’s the api or something else. Thanks

                    C 1 Reply Last reply Apr 23, 2020, 7:56 AM Reply Quote 0
                    • C Offline
                      chassain 0 @cowboysdude
                      last edited by Apr 23, 2020, 7:56 AM

                      @cowboysdude hello,

                      what can we do to check ? thanks…i have update (latest and stable) npm and the same result

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