Read the statement by Michael Teeuw here.
-
@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 } } },
-
@mumblebaj do you think that in apisports I can put the top 14 and six nations so that they are displayed in the module?
-
@manu85340 Hi, no, the apiSports API only takes a single league as input.
-
@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
-
@mumblebaj Hi ! it could look like this without column “B” which indicates the offensive and defensive bonuses
-
@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?
-
@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…
-
@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
-
@sdetweil Thanks Sam for your help
-
@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.