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 26.8k 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer
      last edited by strawberry 3.141

      Description:

      Olympic Games Module for MagicMirror2

      Screenshots:

      51fc75c9-4511-4bf1-82ef-ac7c90939e14-image.png

      Download:

      [card:fewieden/MMM-OlympicGames]


      Initial Version

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

      1 Reply Last reply Reply Quote 5
      • P Offline
        plumcraft
        last edited by

        Good Idea,Great module, thanks :)

        1 Reply Last reply Reply Quote 1
        • I Offline
          iwaldrum
          last edited by

          Will this work for the 2018 Olympics? Tried loading it up and got some errors.

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @iwaldrum
            last edited by

            @iwaldrum sadly the api doesnt exist anymore, i will have a look after the olympic games have started for a new one

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

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              dnks23 @strawberry 3.141
              last edited by

              @strawberry-3.141 check this out: https://sportradar.us/2017/12/2018-winter-olympics-api/

              strawberry 3.141S 1 Reply Last reply Reply Quote 1
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @dnks23
                last edited by

                @dnks23 I’d prefer a different source, as sport radar needs an api key and is usually a paid service, not sure how much details the trial key allows access to. also the registration could take a while until the people get their keys

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

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  dnks23 @strawberry 3.141
                  last edited by

                  @strawberry-3.141 Can you tell me what the original data source you used in the module? I can’t figure it out from the MMM-OlympicGames.js file.

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    doubleT Module Developer @dnks23
                    last edited by

                    @dnks23 http://www.medalbot.com/api/v1/medals, it’s in the node_helper.js

                    1 Reply Last reply Reply Quote 1
                    • O Offline
                      onetwankyfive
                      last edited by

                      +1 for updating this module!

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        doubleT Module Developer
                        last edited by doubleT

                        There doesn’t seem to be an official API. Without one, a website with an up-to-date medal table would have to be called and parsed regularly. There’s at least one API that can be found by reverse engineering, but solutions like these are not really legal (often it’s against the terms of use) and thus can’t/shouldn’t be shared/adviced on a public forum. Even if you get an API, the code that parses the JSON would have to be rewritten - more or less from zero, depending on the differences.

                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer @doubleT
                          last edited by

                          @doubleT I just uploaded a new version with a different data source, pls keep in mind that the new data source works with 3 letter country codes in case you want to use the highlight option

                          [card:fewieden/MMM-OlympicGames]

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

                          1 Reply Last reply Reply Quote 2
                          • C Offline
                            cbo
                            last edited by

                            I tried using the new version of the MMM-OlympicGames and the module only shows “Loading”

                            strawberry 3.141S 1 Reply Last reply Reply Quote 0
                            • strawberry 3.141S Offline
                              strawberry 3.141 Project Sponsor Module Developer @cbo
                              last edited by

                              @cbo do you have any errors to report? terminal or electron? I just spinned up the module and got my data

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

                              StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                              • StoffbeuteluweS Offline
                                Stoffbeuteluwe Project Sponsor @strawberry 3.141
                                last edited by

                                @strawberry-3-141Hi, does the module still work?

                                1 Reply Last reply Reply Quote 0
                                • strawberry 3.141S Offline
                                  strawberry 3.141 Project Sponsor Module Developer
                                  last edited by strawberry 3.141

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

                                  [1.1.0]

                                  MagicMirror² version >= 2.15.0 required.

                                  Fixed

                                  • Installation instructions

                                  Added

                                  • Nunjuck template
                                  • Dependency: node-fetch
                                  • Dependency: lodash
                                  • Github actions: build and changelog
                                  • Github config files

                                  Changed

                                  • Data source
                                  • Preview image
                                  • Config options
                                  • Country names are now translated with the Intl object
                                  • Translations

                                  Removed

                                  • Dependency: request
                                  • Travis-CI integration

                                  d2483796-1e10-4308-9349-72aaeee13b2f-image.png

                                  [card:fewieden/MMM-OlympicGames]

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

                                  W 1 Reply Last reply Reply Quote 2
                                  • W Offline
                                    Wenike @strawberry 3.141
                                    last edited by

                                    @strawberry-3-141 Thank you for updating this!

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mlhote
                                      last edited by

                                      Hello, great job !!!
                                      I update the module but It’s stay “Loading”
                                      The log

                                      0|MagicMirror | [02.02.2022 10:24.38.381] [ERROR]
                                      0|MagicMirror | Error getting olympic game medals FetchError: invalid json response body at https://www.bloomberg.com/tosv2.html?vid=&uuid=eeef6240-8409-11ec-a0ac-73657468704e&url=L2dyYXBoaWNzL2JlaWppbmctMjAyMi1vbHltcGljcy1kYXRhL2N1cnJlbnQuanNvbg== reason: Unexpected token < in JSON at position 0
                                      0|MagicMirror | at /home/pi/MagicMirror/modules/MMM-OlympicGames/node_modules/node-fetch/lib/index.js:273:32
                                      0|MagicMirror | at runMicrotasks (:null:null)
                                      0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:93:5)
                                      0|MagicMirror | at Class.getCountryMedals (/home/pi/MagicMirror/modules/MMM-OlympicGames/node_helper.js:54:36)
                                      0|MagicMirror | {
                                      0|MagicMirror | type: ‘invalid-json’
                                      0|MagicMirror | }

                                      What I have to do to repair ?
                                      Sorry for my poor English
                                      Mat

                                      mumblebajM strawberry 3.141S 2 Replies Last reply Reply Quote 0
                                      • mumblebajM Offline
                                        mumblebaj Module Developer @mlhote
                                        last edited by

                                        @mlhote Did you run npm install in the MMM-OlympicGames folder?

                                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                        Check my blog-post: https://mumblebaj.xyz/
                                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          mlhote
                                          last edited by

                                          Yes
                                          it’s write on the github

                                          mumblebajM 1 Reply Last reply Reply Quote 0
                                          • mumblebajM Offline
                                            mumblebaj Module Developer @mlhote
                                            last edited by

                                            @mlhote I just clicked the link in your Error and it directs to the below.

                                            c64f6338-23f3-41f6-bf3d-6cd61dc2ad19-image.png
                                            29030dd3-d77e-450e-9319-c3988157667d-image.png

                                            It seems to be working fine for me though

                                            Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                            Check my blog-post: https://mumblebaj.xyz/
                                            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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