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

Scheduled Pinned Locked Moved Sport
24 Posts 12 Posters 8.9k Views 13 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.
  • M Offline
    my_nerdy_account
    last edited by Jul 5, 2019, 8:52 AM

    I love this module! Thanks so much for sharing it.

    I’ve modified the css and .njk template to something I really like. What I need now is for the leagues to rotate through in a specific order. It seems like they load in a random order every time I restart MM.

    0_1562316738999_standings.jpg

    F V 2 Replies Last reply Jul 5, 2019, 12:08 PM Reply Quote 1
    • F Offline
      FLhT @my_nerdy_account
      last edited by Jul 5, 2019, 12:08 PM

      These are Cool! I’m inspired to (eventually) adapt this to display FIRST Tech Challenge and FIRST Robotics Competition Stats.

      1 Reply Last reply Reply Quote 1
      • A Offline
        alecbalec
        last edited by Aug 20, 2019, 6:44 PM

        Great module, I forked it on github and added the English Premier League.

        V 1 Reply Last reply Sep 19, 2019, 2:55 AM Reply Quote 0
        • V Offline
          vinp Module Developer @my_nerdy_account
          last edited by Sep 19, 2019, 2:54 AM

          @my_nerdy_account that looks awesome! Care to share your branch in GitHub?

          1 Reply Last reply Reply Quote 0
          • V Offline
            vinp Module Developer @alecbalec
            last edited by Sep 19, 2019, 2:55 AM

            @alecbalec I’m testing out the ability to add many more soccer leagues… stay tuned for an update

            1 Reply Last reply Reply Quote 0
            • V Offline
              vinp Module Developer
              last edited by Sep 20, 2019, 3:53 PM

              I’ve added NCAAM Basketball and lots of different Soccer leagues from ESPN. It should be able to handle all the soccer leagues that have standings/tables available. I looked at how MMM-MyScoreboard did the soccer leagues and used the same naming. Have a look at my code (get latest) and let me know how it goes. thanks!

              1 Reply Last reply Reply Quote 0
              • N Offline
                Newtothis
                last edited by Sep 20, 2019, 6:38 PM

                @vinp Hi

                Thanks for the module, really enjoying it and thanks for updating it. I was just wondering if it is possible to have two leagues showing at the same time?

                I tried using two instances of the configuration (One for NBA and one for Premier League) in the config.js but this didn’t work. Very new at all of this, so please excuse me if it is really obvious answer

                Thanks!

                V 1 Reply Last reply Sep 20, 2019, 6:58 PM Reply Quote 2
                • V Offline
                  vinp Module Developer @Newtothis
                  last edited by Sep 20, 2019, 6:58 PM

                  @Newtothis I dont think this module supports that. I think I read on this forum that if the module uses a node_helper.js it wont be possible. Otherwise you could try copying and renaming a similar folder and setup the MM config with both names. There is a issue logged on my github with your same suggestion. I just haven’t had the chance to look to see how much effort it would take to implement.

                  S 1 Reply Last reply Sep 20, 2019, 7:20 PM Reply Quote 0
                  • S Away
                    sdetweil @vinp
                    last edited by sdetweil Sep 20, 2019, 7:29 PM Sep 20, 2019, 7:20 PM

                    @vinp said in MMM-MyStandings:

                    that if the module uses a node_helper.js it wont be possible

                    it IS possible… just have to think thru the choices of the solution…

                    there is only ONE node_helper loaded for all instances of the module.

                    any sendSocketNotification from the helper to the module (instances) goes to ALL instances at once.

                    so, one could send the module identifier from the module.js to the node_helper, and use THAT as a key into a storage area saved by module instance (config from module _1, module_2, etc)…
                    config: {},
                    this.config[module_id].config_variable

                    and then on the send BACK, return the module identifier as part of the data, and the module checks to see if the response is for that instance…

                    another way, to avoid the storage, is for the module to send config every time, and the identifier, and
                    the node helper send back the identifier as part of the response… and module checks… same as before…

                    I created a module that does option 2 , never stores any module instance data in node_helper
                    https://github.com/sdetweil/NewBusTimes

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    N 1 Reply Last reply Sep 28, 2019, 5:43 PM Reply Quote 1
                    • C Offline
                      cowboysdude Module Developer
                      last edited by Sep 21, 2019, 1:31 AM

                      Excellent!

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