Open comturaRalph opened 5 months ago
Exact same here
@comturaRalph @mpzross I looked into your provided config and spotted some errors:
{
module: 'MMM-soccer',
position: 'bottom_left',
config: {
api_key: 'XXXXXXXXXXXXXXXXXXXXXXXXX',
show: 'GERMANY', // this is the default and can be ommited
logos: 'true', // booleans in JavaScript have no quotes around them, this would be a string now and strings are always considered as true, except for empty strings, e.g. 'false' would still be true
colored: 'true', // booleans in JavaScript have no quotes around them, this would be a string now and strings are always considered as true, except for empty strings, e.g. 'false' would still be true
focus_on: {
"GERMANY": "SC Freiburg"
},
max_teams: '36', // numbers in JavaScript have no quotes around them, this would be a string now. Also 36 doesn't make sense, in the Bundesliga are only 18 teams. By default it shows all teams so you can also omit this, you only need to specify it if you want to show less.
leagues: { // this is the default and can be ommited
"GERMANY": "BL1"
}
}
},
What it ideally would look like:
{
module: 'MMM-soccer',
position: 'bottom_left',
config: {
api_key: 'XXXXXXXXXXXXXXXXXXXXXXXXX',
logos: true,
colored: true,
focus_on: {
GERMANY: 'SC Freiburg'
}
}
},
However, this is not the only problem, v2 of the API doesn't return the necessary data anymore and there is no longer support for it. I need to switch to v4 to make it work again. Can you please test the work in progress?
cd ~/MagicMirror/modules/MMM-soccer
git checkout develop
git pull
npm ci
Thank you for all your efforts. I've updated the MagicMirror and run the commands you suggested but I get a lot of npm warnings. File attached
On Tue, 13 Feb 2024 at 07:28, fewieden @.***> wrote:
@comturaRalph https://github.com/comturaRalph @mpzross https://github.com/mpzross I looked into your provided config and spotted some errors:
{ module: 'MMM-soccer', position: 'bottom_left', config: { api_key: 'XXXXXXXXXXXXXXXXXXXXXXXXX', show: 'GERMANY', // this is the default and can be ommited logos: 'true', // booleans in JavaScript have no quotes around them, this would be a string now and strings are always considered as true, except for empty strings, e.g. 'false' would still be true colored: 'true', // booleans in JavaScript have no quotes around them, this would be a string now and strings are always considered as true, except for empty strings, e.g. 'false' would still be true focus_on: { "GERMANY": "SC Freiburg" }, max_teams: '36', // numbers in JavaScript have no quotes around them, this would be a string now. Also 36 doesn't make sense, in the Bundesliga are only 18 teams. By default it shows all teams so you can also omit this, you only need to specify it if you want to show less. leagues: { // this is the default and can be ommited "GERMANY": "BL1" } }},
What it ideally would look like:
{ module: 'MMM-soccer', position: 'bottom_left', config: { api_key: 'XXXXXXXXXXXXXXXXXXXXXXXXX', logos: true, colored: true, focus_on: { GERMANY: 'SC Freiburg' } }},
However, this is not the only problem, v2 of the API doesn't return the necessary data anymore and there is no longer support for it. I need to switch to v4 to make it work again. Can you please test the work in progress?
cd ~/MagicMirror/modules/MMM-soccer git checkout develop git pull npm ci
image.png (view on web) https://github.com/fewieden/MMM-soccer/assets/9334168/dd53e789-959f-49b6-9ff1-092ab6cca322
— Reply to this email directly, view it on GitHub https://github.com/fewieden/MMM-soccer/issues/70#issuecomment-1940579209, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTVJQ7KWSLFYBVIUJTW2TDYTMIYXAVCNFSM6AAAAABB7Z27R2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQGU3TSMRQHE . You are receiving this because you were mentioned.Message ID: @.***>
@mpzross your attachment from your mail didn't make it to GitHub. Can you please upload the file directly to GitHub so I can have a look?
Apologies. my fault for not giving it a recognised suffix. Thank you again for your work MM-log-20.2.24.docx
@mpzross it says your branch is already up to date, which shouldn't be the case since I made changes. Therefore I think you are not on the correct branch. Can you please run git status
in the MMM-soccer
directory and share the output?
Hallo, ich habe genau das gleiche Problem.... habe git status MMM-soccer eingeben es steht dran: git status MMM-soccer Auf Branch master Ihr Branch ist auf demselben Stand wie 'origin/master'
@P-kxox the fix is not available on the master branch yet. Please follow the steps to switch to the develop branch which contains the fix
cd ~/MagicMirror/modules/MMM-soccer
git checkout develop
git pull
npm ci
@mpzross it says your branch is already up to date, which shouldn't be the case since I made changes. Therefore I think you are not on the correct branch. Can you please run
git status
in theMMM-soccer
directory and share the output?
@P-kxox the fix is not available on the master branch yet. Please follow the steps to switch to the develop branch which contains the fix
cd ~/MagicMirror/modules/MMM-soccer git checkout develop git pull npm ci
This is a log of what I get when I try these instructions. Previously I updated and upgraded the pi installation through putty: 2024-03-23T15_53_53_541Z-debug-0.log
Habe dies nun durchgeführt... git status MMM-soccer : Auf Branch develop Ihr Branch ist auf demselben Stand wie 'origin/develop'
Leider zeigt es mir immernoch nicht die Tabelle an sondern nur den ,,header´´
Danke für euer Unterstützung schonmal:)
Platform (Hardware/OS): Raspberry Pi 4 / Raspberry PI OS (Legacy, 32-Bit)
Node version: 20.8.0 MagicMirror version: 2.26.0 Module version: 2.2.1 Description of the issue: Hello, I carried out the installation exactly according to your instructions. However, the Teams are not loaded/displayed.![image](https://github.com/fewieden/MMM-soccer/assets/74136934/51cf5787-c188-4a97-80f7-7887aff42f09)
Do I have something wrong here in the config?