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-PGA

    Scheduled Pinned Locked Moved Sport
    48 Posts 7 Posters 48.1k Views 7 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.
    • mumblebajM Offline
      mumblebaj Module Developer @swvalenti
      last edited by

      @swvalenti I will have a look in the morning. It is almost midnight where I am. :-(

      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
      • mumblebajM Offline
        mumblebaj Module Developer @swvalenti
        last edited by

        @swvalenti Seems like there was a major upgrade in the JSON return data. Loads of changes. Not going to be an easy task to work through them all. I do not have easy fixes for it. I will see if I have time to work through them.

        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

        swvalentiS 1 Reply Last reply Reply Quote 0
        • swvalentiS Offline
          swvalenti Project Sponsor @mumblebaj
          last edited by swvalenti

          @mumblebaj any easy way for me to figure this out, if I comment out that line it works.

          [18.04.2023 11:31.09.632] [LOG]   MMM-PGA retrieving Tournament Data
          [18.04.2023 11:31.09.633] [ERROR] Whoops! There was an uncaught exception...
          [18.04.2023 11:31.09.633] [ERROR] TypeError: Cannot read properties of undefined (reading 'displayName')
              at Request._callback (C:\Users\CCU Forensic Machine\MagicMirror\modules\MMM-PGA\ESPN.js:49:99)
              at self.callback (C:\Users\CCU Forensic Machine\MagicMirror\modules\MMM-PGA\node_modules\request\request.js:185:22)
              at Request.emit (node:events:513:28)
          [18.04.2023 11:38.48.117] [LOG]   MMM-PGA retrieving FedEx Cup Standings
          [18.04.2023 11:38.48.185] [ERROR] Whoops! There was an uncaught exception...
          [18.04.2023 11:38.48.185] [ERROR] TypeError: Cannot read properties of undefined (reading 'querySelectorAll')
              at Request._callback (C:\Users\CCU Forensic Machine\MagicMirror\modules\MMM-PGA\FEDEXCUP.js:33:38)
          
          mumblebajM 1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @swvalenti
            last edited by

            @swvalenti Can you show me what you changed? Did you comment out displayName in ESPN.js or the line with querySelectorAll in FEDEXCUP.js?

            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

            swvalentiS 1 Reply Last reply Reply Quote 0
            • swvalentiS Offline
              swvalenti Project Sponsor @mumblebaj
              last edited by

              @mumblebaj just the espn.js sir

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

                @swvalenti Does you line 49 look like the following? tournament.defendingChamp = event.defendingChampion ? event.defendingChampion.displayName :

                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

                swvalentiS 1 Reply Last reply Reply Quote 0
                • swvalentiS Offline
                  swvalenti Project Sponsor @mumblebaj
                  last edited by

                  @mumblebaj said in MMM-PGA:

                  tournament.defendingChamp = event.defendingChampion ? event.defendingChampion.displayName :

                  tournament.defendingChamp = event.defendingChampion ? event.defendingChampion.athlete.displayName : ""
                  
                  mumblebajM 1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @swvalenti
                    last edited by

                    @swvalenti Thanks for the above. Seem the data has changed. Change it to the following:
                    tournament.defendingChamp = event.defendingChampion ? event.defendingChampion.displayName : ""

                    I will make a change and deploy but there is more data that changed. Need to check the others as well.

                    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

                    swvalentiS 1 Reply Last reply Reply Quote 0
                    • swvalentiS Offline
                      swvalenti Project Sponsor @mumblebaj
                      last edited by

                      @mumblebaj said in MMM-PGA:

                      tournament.defendingChamp = event.defendingChampion ? event.defendingChampion.displayName : “”

                      changed it but still stuck on loading

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

                        @swvalenti Yeah, seems like it is a team tournament hence there is no individual athlete information. Busy looking at it.

                        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

                        swvalentiS 1 Reply Last reply Reply Quote 0
                        • swvalentiS Offline
                          swvalenti Project Sponsor @mumblebaj
                          last edited by

                          @mumblebaj No worries bro appreciate the time let me know if I can be of help

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

                            @swvalenti OWGR is broken as well. Website changed and the code in there is completely out dated. So much issues I am not sure if I can fix them. It needs a complete re-write.

                            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

                            swvalentiS 1 Reply Last reply Reply Quote 0
                            • swvalentiS Offline
                              swvalenti Project Sponsor @mumblebaj
                              last edited by

                              @mumblebaj oh man that sucks its my favorite module…I can pay ya…ha

                              swvalentiS 1 Reply Last reply Reply Quote 0
                              • swvalentiS Offline
                                swvalenti Project Sponsor @swvalenti
                                last edited by

                                @mumblebaj randomly started working again but def missing some stuff

                                1 Reply Last reply Reply Quote 0
                                • S sdetweil referenced this topic on
                                • D Offline
                                  dathbe
                                  last edited by

                                  Just FYI, I’ve taken over primary maintenance of this module. It is now available at https://github.com/dathbe/MMM-PGA, with a handful of bug fixes.

                                  1 Reply Last reply Reply Quote 1

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