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 504.2k 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 @j.e.f.f
      last edited by

      @j.e.f.f I believe that division 1 is the one that’s followed by the most people. I don’t even know f it’s possible to get info from the other divisions through the major sites.

      Thank you for doing this. I’m curious to see how far off my attempt is from what you come up with.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        j.e.f.f Project Sponsor Module Developer @Spankythemusical
        last edited by

        @Spankythemusical Actually now that I look at the feed I’m using, it appears that it’s only returning games for FBS (1-A) teams, not FCS (1-AA) unless they are playing a FBS team. This is the feed I found. Is this the same feed you’re using?

        http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?dates=20170907&limit=100

        (value for dates is specified to query for a specific day limit sets a maximum number of returned games)

        In the above example, one game gets returned for September 7 – Idaho State Bengals vs Utah State Aggies – which corresponds to the one FBS game scheduled for that date. However, if I switch the schedule (say on ESPN’s website) I see four games scheduled, one of which is an overlap with the single FBS game, as Utah is an FBS team, but Idaho State is FCS.

        So it appears that FBS teams play FCS teams, and such games will show up in the ESPN feed. However games that feature FCS-only games do not. It appears that FCS teams play games against Division II or III – I see one game on Sept 7: West Alabama Tigers vs Samford Bulldogs. West Alabama is a Division II team.

        I have learned from this Wiki that FBS teams don’t play Division II/III teams, only FCS teams, as victories against anything below FCS don’t count for bowl eligibility.
        https://en.wikipedia.org/wiki/NCAA_Division_II

        Is this a hard and fast rule? I wouldn’t want to go through the effort of sourcing Div II/III logos if they will never appear against FBS teams.

        In any case, it appears that I can only support FBS (1-A) games at the moment. Is this good enough for the college football fans?

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          Spankythemusical @j.e.f.f
          last edited by

          @j.e.f.f Code written for FBS, but also having FCS logos in the folder (for overlapping game types), should work for 99.9% of the people. If that’s possible.

          I’ll have to look in morning to see if that’s the website that I’ve been using. It does seem about right.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            j.e.f.f Project Sponsor Module Developer @Spankythemusical
            last edited by

            @Spankythemusical yeah certainly doable. I have already sourced all the FBS and FCS team logos. So if the feed only covers FBS games then we should be covered for all team logos.

            I’ve learned so much about American college football over the last few days!

            O 1 Reply Last reply Reply Quote 0
            • O Offline
              onetwankyfive @j.e.f.f
              last edited by

              @j.e.f.f This excites me! Div 1 is what I was looking for

              1 Reply Last reply Reply Quote 0
              • S Offline
                Spankythemusical @j.e.f.f
                last edited by

                @j.e.f.f just FYI, that is the site I’ve been using, minus the date and limit items.

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer
                  last edited by

                  NFL support has been added. To install the update, first go into the MMM-MyScoreboard and execute git pull, the type npm install as there are new dependencies you’ll need.

                  I monitored games over last week and this week and everything looks pretty good, but I haven’t seen a game go into overtime yet. So I’m not 100% positive things won’t go wonky for an overtime game yet.

                  Also, there is a new view style added: smallLogos. It’s layout is similar to the default, but each row is the same height as the oneLine view style.

                  0_1502660518728_viewStyle_smallLogos.png

                  Have fun! And let me know if something looks weird.

                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    j.e.f.f Project Sponsor Module Developer @Spankythemusical
                    last edited by

                    @Spankythemusical FYI I’ve got the basic plumbing in place for NCAAF, but I need to wait for some in progress games to test it. Won’t be able to do that until the first week of September, as I’m traveling at the end of August, which appears to be then first week of play.

                    In any case, what’s interesting is that by manipulating the URL, it’s possible to get scores for all sorts of sports. I’ll easily be able to repurpose this for NCAA basketball and MLS (YAY! I thought this wasn’t going to be possible).

                    I also might use this feed for NFL, since NFL’s native feed seems to be a bit flaky AND it’s XML (I f***ing hate working with XML). I’ll monitor it over the next few days to see if it performs better.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Spankythemusical
                      last edited by

                      Thank you very much for all your work. I’m sure that you have much more important things to do. I can always wait for live games in order to test. In the mean time I can parse things with python. No biggie.

                      1 Reply Last reply Reply Quote 0
                      • emloweE Offline
                        emlowe Module Developer
                        last edited by

                        @j.e.f.f

                        You can use xml2js and convert the XML to JSON for processing. A few other modules do this. As long as the XML isn’t overly complex, you get somewhat reasonable JSON

                        -Earle

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