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.

    Hello everyone, do you know if there is an MM module for rugby

    Scheduled Pinned Locked Moved Requests
    105 Posts 5 Posters 152.6k Views 6 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 @Manu85
      last edited by mumblebaj

      @Manu85 said in Hello everyone, do you know if there is an MM module for rugby:

      {
      module: “MMM-Rugby”,
      position: “top_right”,
      disabled: false,
      config: {
      updateInterval: 10006060*24,
      rotateInterval: 60000,
      sport: “mrs”,
      rankingLimit: 14,
      matchesLimit: 10,
      matchesOlderThan: 7,
      competitions: [“Top 14”,“Six Nations”],
      collectionType: “apiSport”, // api-key required
      apiSports: {
      apiSportStandingLeagueId: 16,
      apiSportKey: “beb4f679043bxxxxxxxxxxxxxxxxxxxx”,
      apiSportTZ: “Europe/Paris”,
      numberofGamesToDisplay: 10,
      apiSportsNumRankings: 10,
      apiSportDaysPast: 7,
      apiSportsDaysFuture: 14
      }
      }
      },

      The competitions are used for free only and not for apiSports. If you want to see six nations on apiSports then you need to specify it’s leagueId in the apiSportStandingLeagueId, which is 51.

      The free api does not have a Top 14 that I could find.

      I will update the example configs for both in a bit.

      Example Config for free

      {
              		module: "MMM-Rugby",
              		position: "top_right",
              		disabled: false,
                      	config: {
                              updateInterval: 1000*60*60*24,
                              rotateInterval: 60000,
                              sport: "mrs",
                              rankingLimit: 14,
                              matchesLimit: 10,
                              matchesOlderThan: 7,
                              competitions: ["Six Nations", "Rugby Europe Trophy 2024"],
                              collectionType: "free" 
                              
                      }
         },
      

      Example Config for apiSports:

      {
              		module: "MMM-Rugby",
              		position: "top_right",
              		disabled: false,
                      	config: {
                              updateInterval: 1000*60*60*24,
                              rotateInterval: 60000,
                              rankingLimit: 14,
                              matchesLimit: 10,
                              matchesOlderThan: 7,
                              collectionType: "apiSport", 
                              apiSports: {
                                  apiSportStandingLeagueId: 16,
                                  apiSportKey: "beb4f679043bxxxxxxxxxxxxxxxxxxxx",
                                  apiSportTZ: "Europe/Paris",
                                  numberofGamesToDisplay: 10,
                                  apiSportsNumRankings: 10,
                                  apiSportDaysPast: 7,
                                  apiSportsDaysFuture: 14
                              }
                      }
        },
      

      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

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        manu85340 @mumblebaj
        last edited by

        @mumblebaj do you think that in apisports I can put the top 14 and six nations so that they are displayed in the module?

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

          @manu85340 Hi, no, the apiSports API only takes a single league as input.

          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

          M 2 Replies Last reply Reply Quote 0
          • M Offline
            Manu85 @mumblebaj
            last edited by

            @mumblebaj shit ! Do you think it is possible to remove the lines of rows and columns that look like an Ecxel table? and I think it would be preferable to make a single column of the difference of the points scored and conceded to have the goal-average: GA-GF, it would be clearer to read and it would take up less space, thank you, I think your module is going to be a real success

            mumblebajM 1 Reply Last reply Reply Quote 0
            • M Offline
              Manu85 @mumblebaj
              last edited by Manu85

              @mumblebaj Hi ! it could look like this without column “B” which indicates the offensive and defensive bonuses

              0a629206-821e-4092-98b9-2d6481caa87d-image.png

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

                @Manu85 You can set the below in your css/custom.css which would eliminate the borders if you prefer not to see them.

                .MMM-Rugby #MMMRugby-rankingTable td,
                .MMM-Rugby #MMMRugby-rankingTable th,
                .MMM-Rugby #rankingMatchesTable td,
                .MMM-Rugby #rankingMatchesTable th {
                  border: none;
                }
                

                Do you mean you would prefer to see a Goal difference and not the Goals For and Goals Against columns?

                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

                S M 2 Replies Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @mumblebaj
                  last edited by

                  @mumblebaj said in Hello everyone, do you know if there is an MM module for rugby:

                  .MMM-Rugby #MMMRugby-rankingTable td,
                  .MMM-Rugby #MMMRugby-rankingTable th,

                  just fyi, you don’t have to duplicate the major part of the selector clause

                  .MMM-Rugby #MMMRugby-rankingTable td, th, 
                  .MMM-Rugby #rankingMatchesTable td, th {
                             border: none;
                  }
                  

                  should have worked too…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 1
                  • M Offline
                    Manu85 @mumblebaj
                    last edited by

                    @mumblebaj thank you for your help and thank you also to @sdetweil and indeed only one idiot with the goal difference in the place of the two columns goals scored and goals conceded

                    mumblebajM 1 Reply Last reply Reply Quote 0
                    • M Offline
                      Manu85 @sdetweil
                      last edited by

                      @sdetweil Thanks Sam for your help

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

                        @Manu85 said in Hello everyone, do you know if there is an MM module for rugby:

                        idiot

                        :beaming_face_with_smiling_eyes:

                        I have remove GF and GA and added GD. You can update the module.

                        e365e40b-15b4-4d90-b722-e4006f8c0b66-image.png

                        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

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          Manu85 @mumblebaj
                          last edited by

                          @mumblebaj great, a big thank you, however I won’t be able to see it until tomorrow because I have reached the number of API keys for the day:sleepy_face:

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

                            @Manu85 You can do 1000*60*30 which is update every 30 minutes which gives you 48 calls 84 calls for the day.

                            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

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              Manu85 @mumblebaj
                              last edited by

                              @mumblebaj Yes, but I tried a lot of modifications today and every time I refresh the MM, I think it makes an API call

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

                                @Manu85 Yes, that is correct. If you not making changes to the MMM-Rugby module then switch to the free option instead.

                                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

                                M 3 Replies Last reply Reply Quote 0
                                • M Offline
                                  Manu85 @mumblebaj
                                  last edited by

                                  @mumblebaj Yes you’re right that’s what I should have done…I’m stupid not to have thought of that before

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    Manu85 @mumblebaj
                                    last edited by

                                    @mumblebaj I think that if it is possible you can delete the column circled in blue given what it is in the title, it will ultimately make a PERFECT module

                                    007b8657-198d-4d06-a6d4-5d8a3e9768a1-image.png

                                    mumblebajM 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Manu85 @mumblebaj
                                      last edited by

                                      @mumblebaj on the other hand it’s strange I don’t have the six nations, I put you my config.js, did I make a mistake?

                                      {
                                              		module: "MMM-Rugby",
                                              		position: "top_right",
                                              		disabled: false,
                                                      	config: {
                                                              updateInterval: 1000*60*60*24,
                                                              rotateInterval: 60000,
                                                              sport: "mrs",
                                                              rankingLimit: 10,
                                                              matchesLimit: 10,
                                                              matchesOlderThan: 7,
                                                              competitions: ["Six Nations"],
                                                              collectionType: "free" 
                                                              
                                                      }
                                         		},
                                      
                                      mumblebajM 1 Reply Last reply Reply Quote 0
                                      • mumblebajM Offline
                                        mumblebaj Module Developer @Manu85
                                        last edited by

                                        @Manu85 Yes, sport must be mru to get Six Nations. You on Mens Rugby Sevens.

                                        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 @Manu85
                                          last edited by

                                          @Manu85 That info is helpful when using mru and no filter.

                                          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

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            Manu85 @mumblebaj
                                            last edited by

                                            @mumblebaj ok, I put ‘mru’ but I have other matches in addition to the six nations in the table

                                            9bbbc6c7-5524-4a1e-835b-cb3a6db46549-image.png

                                            mumblebajM 2 Replies 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
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • 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