xadamxk / MMM-LOLESPORTS-SCHEDULES

:date: Display LOL Esports league schedules on your magic mirror!
3 stars 1 forks source link

leagueId does not work #4

Closed oturan233 closed 1 year ago

oturan233 commented 1 year ago

Hi ,

Thanks for this great module..

When I try to set leagueId for LCK

    leagueId:"98767991310872058",

nothing appears.

If I delete league ID NA LCS appears.

I tried several version for this but it does not work for example

leagueId:98767991310872058,

leagueId:'98767991310872058',

leagueId:"lck",

xadamxk commented 1 year ago

leagueId is an array of strings, so something like this should work for the LCK:

{
   "module":"MMM-LOLESPORTS-SCHEDULES",
   "position":"bottom_left",
   "config":{
      "leagueId":[
         "98767991310872058"
      ]
   }
}

For example, if you wanted multiple leagues (LCK + LCS):

{
   "module":"MMM-LOLESPORTS-SCHEDULES",
   "position":"bottom_left",
   "config":{
      "leagueId":[
         "98767991310872058",
         "98767991299243165"
      ]
   }
}
oturan233 commented 1 year ago

It worked,

Thanks again..