• 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-OlympicGames

Scheduled Pinned Locked Moved Sport
olympic games2022olympic winter gamesolympiabeijing
41 Posts 15 Posters 17.9k Views 15 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.
  • K Offline
    KristjanESPERANTO Module Developer @justdreambig
    last edited by Feb 4, 2022, 10:47 PM

    I also had the “invalid json response” problem. After I upgraded node-fetch to 3.x, it works fine.

    M 1 Reply Last reply Feb 5, 2022, 12:10 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer
      last edited by Feb 5, 2022, 7:50 AM

      In the beginning, I had the same issues with the invalid response. But I never had to click the link in order to fix it, I just started using the fake user agent in the module. Every time I restart the mirror it’s loading the data for me.

      The module is not using an official API. Everything else I found is charging money for it or does not return data.

      I was hoping once the games are starting that some other APIs start spitting out some data, so I could potentially switch.

      I’m open to links from free JSON APIs that would solve your issues.

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 1
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by Feb 5, 2022, 9:00 AM

        Most sport news sites including the official olympic games website still show 0 medals.

        medals.png

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 1
        • M Offline
          mlhote @KristjanESPERANTO
          last edited by Feb 5, 2022, 12:10 PM

          @kristjanesperanto Couldyou explain how to upgrade ?

          K 1 Reply Last reply Feb 5, 2022, 8:09 PM Reply Quote 0
          • K Offline
            KristjanESPERANTO Module Developer @mlhote
            last edited by Feb 5, 2022, 8:09 PM

            @mlhote In the meantime it works also with node-fetch v2 for me, so an upgrade seems not to be necessary.

            One assumption is that this occurs when you restart the mirror several times. Then the API is often queried in a short time and therefore you are blocked.

            1 Reply Last reply Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by Feb 6, 2022, 9:41 AM

              Link to module https://github.com/fewieden/MMM-OlympicGames

              [1.2.0]

              Added

              • Added another data source, see new config option provider.

              Changed

              • Countries with same medals share the same rank

              [card:fewieden/MMM-OlympicGames]

              Please create a github issue if you need help, so I can keep track

              1 Reply Last reply Reply Quote 0
              • S Offline
                SirFM
                last edited by SirFM Feb 6, 2022, 4:21 PM Feb 6, 2022, 4:15 PM

                I’ve specified the en-US locale but the country names seem to be in Catalan.

                Capture d’écran 2022-02-06 111322.png

                Here is my config file

                {
                                        module: "MMM-OlympicGames",
                                        position: "top_left",
                                        config: {
                                                // all your config options, which are different$
                                                locale: "en_US",
                                                highlight: "CA",
                                                maxRows: "10",
                                                reloadInterval: "3600000",
                                                provider: "nbc"
                                                }
                                }
                ```Edited to fix locale typo
                S 1 Reply Last reply Feb 6, 2022, 4:18 PM Reply Quote 0
                • S Away
                  sdetweil @SirFM
                  last edited by sdetweil Feb 6, 2022, 4:18 PM Feb 6, 2022, 4:18 PM

                  @sirfm I think the option is locale

                  u have local

                  computers are picky

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Feb 6, 2022, 4:20 PM Reply Quote 0
                  • S Offline
                    SirFM @sdetweil
                    last edited by Feb 6, 2022, 4:20 PM

                    @sdetweil Just saw that after posting and made the correction. Unfortunaly I get the same result with the typo corrected.

                    K 1 Reply Last reply Feb 6, 2022, 4:22 PM Reply Quote 0
                    • K Offline
                      KristjanESPERANTO Module Developer @SirFM
                      last edited by Feb 6, 2022, 4:22 PM

                      @sirfm locale has to be direcly under config not in the module config: https://github.com/fewieden/MMM-OlympicGames/blob/master/.github/global.png

                      S 1 Reply Last reply Feb 6, 2022, 4:28 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        29/41
                        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