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

Scheduled Pinned Locked Moved Sport
277 Posts 60 Posters 414.0k Views 63 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.
  • S Offline
    Spankythemusical
    last edited by Jul 21, 2017, 11:12 AM

    Jeff,

    I have a question/huge favor. I’m trying to add NCAAF to this module. Unfortunately, I have exactly 0.2% experience with js. I can parse the website with Python and get the information I’m looking for, but I do not know how to translate that to js. I have taken your NBA.js and changed it in an attempt to make it work, but I’m sure I’m not even close to where I need to be. When you have a few free moments (i.e. this is not at all an important endeavor), could you look over where I am and point me closer to the right direction? I cannot tell you how much I would appreciate it. (I’ve realized that I cannot upload the text file, but I can copy/paste the code here)

    J 1 Reply Last reply Jul 22, 2017, 1:13 AM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Spankythemusical
      last edited by Jul 22, 2017, 1:13 AM

      @Spankythemusical I’m travelling this week, but I’ll have a look when I get back next week. Is the Fred a public JSON feed or are you scraping the NCAA website?

      S 1 Reply Last reply Jul 22, 2017, 11:21 PM Reply Quote 0
      • P Offline
        P-Bo726
        last edited by Jul 22, 2017, 9:07 PM

        Love this module! Does this module allow more than one module to run at a time. I can’t seem to get more than one to run. Config file errors out. Could this feature be added? Why would I need this? I’d like to have one league down the right hand side and one down the left hand side.

        J 1 Reply Last reply Jul 23, 2017, 12:52 AM Reply Quote 0
        • S Offline
          Spankythemusical @j.e.f.f
          last edited by Jul 22, 2017, 11:21 PM

          @j.e.f.f Thank you. Like I said, it’s not a big thing that needs immediate attention. The feed is a public JSON feed from ESPN.

          J 1 Reply Last reply Jul 23, 2017, 12:43 AM Reply Quote 0
          • J Offline
            j.e.f.f Project Sponsor Module Developer @Spankythemusical
            last edited by Jul 23, 2017, 12:43 AM

            @Spankythemusical all of the current sports my module supports use public JSON feeds. If you want, take a look at, say, NBA to get an idea how it works.

            S 1 Reply Last reply Jul 23, 2017, 9:05 PM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @P-Bo726
              last edited by Jul 23, 2017, 12:52 AM

              @P-Bo726 it does not. Since the module takes care of dividing up the sports for you I didn’t see a reason for multiple instances.

              P 1 Reply Last reply Jul 24, 2017, 1:00 AM Reply Quote 0
              • S Offline
                Spankythemusical @j.e.f.f
                last edited by Jul 23, 2017, 9:05 PM

                @j.e.f.f I actually used the MBA section as the template. Unfortunately, I do not have close to enough experience with js to ensure that it is correct. Is there a section of code that controls if the section is hidden or showing? If I could make the section how even without an upcoming game, then I could see if what I’ve done so far is successful.

                J 2 Replies Last reply Jul 24, 2017, 6:32 AM Reply Quote 0
                • P Offline
                  P-Bo726 @j.e.f.f
                  last edited by Jul 24, 2017, 1:00 AM

                  @j.e.f.f I’m in the process of building an all sports dashboard and could use multiple instances. I’d benefit from that feature and other may see a use for it as well. Please, Please :)

                  J 2 Replies Last reply Jul 24, 2017, 6:33 AM Reply Quote 0
                  • J Offline
                    j.e.f.f Project Sponsor Module Developer @Spankythemusical
                    last edited by Jul 24, 2017, 6:32 AM

                    @Spankythemusical you won’t have to touch the front end logic. Your NCAA extension file handles what the front end will receive. Typically the way the other sports work is that the sport is configured with the teams you wish to follow. Then you’ll query for all of “today’s” games, then filter what gets returned to the list of teams to follow. There is a README under the sports directory that goes into more detail about all of this.

                    You’ll also need to add your sport to the list of supported sports in node_helper.js. It’s an array near the top of the file.

                    Lastly, in case there are any special CSS requirements for your sport you may need to add some rules to MMM-MyScoreboard.css. But it should look pretty good right out of the box.

                    In any case I’ll lend a hand when I get back next week.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      j.e.f.f Project Sponsor Module Developer @P-Bo726
                      last edited by Jul 24, 2017, 6:33 AM

                      @P-Bo726 I’m travelling all this week but I’ll see what I can do when I get back.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 27
                      • 28
                      • 1 / 28
                      1 / 28
                      • First post
                        9/277
                        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