Read the statement by Michael Teeuw here.
MMM-SoccerLiveScore
-
@np27np27 I put in a fix, not sure it works 100% :P
I have noticed tho, my approach is not really the best, will need to re-think it and re-implement it. I’d like to reach a point where the API calls are done only if and when needed to reduce network traffic and avoid overloading the API service provider too.
-
@0m4r
OK thanks. Do I update it as you have mentioned before? Or a full reinstall? -
@0m4r
Also, how do I find new league ID numbers. African nations Cup? -
@np27np27 you can switch back to the master branch and do a git pull.
It does not look like the Africa nation cup is supported by the APIs :(
-
Hi @0m4r,
Sorry to report but I’m still seeing the same issue. 😔
It’s definitely not updating after the last game of the week starts. Same was seen in this round of premier league games, image attached.
-
@np27np27 ok :( thanks for the info. I’ll be taking another look.
I think as a workaround you can probably try to refresh the mirror, but I understand it is not the desired behavior… -
@0m4r said in MMM-SoccerLiveScore:
@np27np27 ok :( thanks for the info. I’ll be taking another look.
I think as a workaround you can probably try to refresh the mirror, but I understand it is not the desired behavior…Yes that is what I’ve been doing. Hopefully you will have time to take another look at the module and code soon. Thanks for the help 👍🏾
-
@np27np27 hey, I have just realized I mistakenly pushed the code with some hardcoded test values. Those might be the reason for the wrong behavior.
Can you try pulling the code again and let me know?
-
@0m4r
Sorry for the long delay!I’ve tried git pull and it says I already have the latest version… 3.1.5?
-
@np27np27 do you mean you can still see the issue with that version? :(
If so, most likely it is not resolved. I will need to find some time to look into it again -
@0m4r, yes still have the issue. Last game day of the week does not refresh and then the whole week fails to refresh and provide the new fixtures after that.
Currently I am restarting MM each time we get to the end of a game week to refresh. -
if you are interested into the WM results, add 4100 as a code into the module configuration :D
-
Hi there,
I’ve installed this module and it is very beautiful and useful, thanks @0m4r!
Question: I’ve enabled in configuration the Scores & Details about Serie A. My mirror is quite big and all the matches are visible but I don’t know why starts the “auto-scroling”.
I do not think that there is a config field for disable “auto-scroling”.Its possibile to remove somehow the auto scrolling (a little hack in the code…)?
Thanks guys!
-
@Egnos this is now done.
Please add “scrollVertical: false” into your config for the module.
(of course, updated it first!)Let me know if it works!
-
Thanks @0m4r, seems works!
Sorry for the late reply! -
Hi all,
i have these errors refer to the “MMM-SoccerLiveScore” module in “MagicMirror-error.log” file:[27.09.2023 18:40.07.575] [ERROR] MMM-SoccerLiveScore doPost URL { href: 'https://toralarm.com/api/api/competitions/23/matches/30580909/details', origin: 'https://toralarm.com', protocol: 'https:', username: '', password: '', host: 'toralarm.com', hostname: 'toralarm.com', port: '', pathname: '/api/api/competitions/23/matches/30580909/details', search: '', searchParams: URLSearchParams {}, hash: '' } { method: 'POST', gzip: true, headers: { Host: 'toralarm.com', 'accept-language': 'en-US,en;q=0.9,it;q=0.8,de-DE;q=0.7,de;q=0.6', 'content-type': 'application/json;charset=UTF-8' }, body: '{"lng":"it"}' } Response { size: 0, timeout: 0, [Symbol(Body internals)]: { body: Gunzip { _writeState: [Uint32Array], _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, bytesWritten: 0, _handle: [Zlib], _outBuffer: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 16334 more bytes>, _outOffset: 0, _chunkSize: 16384, _defaultFlushFlag: 2, _finishFlushFlag: 2, _defaultFullFlushFlag: 3, _info: undefined, _maxOutputLength: 1073741823, _level: -1, _strategy: 0, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null, [Symbol(kError)]: null }, disturbed: false, error: null }, [Symbol(Response internals)]: { url: 'https://toralarm.com/api/api/competitions/23/matches/30580909/details', status: 500, statusText: 'Internal Server Error', headers: Headers { [Symbol(map)]: [Object: null prototype] }, counter: 0 } } [27.09.2023 18:40.07.577] [ERROR] MMM-SoccerLiveScore getDetails 23 https://toralarm.com/api/api/competitions/23/matches/30580909/details null [27.09.2023 18:40.07.592] [ERROR] (node:12212) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'filter') at forLoop (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:237:54) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) (Use `electron --trace-warnings ...` to show where the warning was created)This is my sw configuration:
S.O.: Buster
MM: v2.23.0
RPI4 4gbIs it possible to solve it?
Thanks.
-
Hi @Egnos, I am not able to replicate it.
I can see from the logs it is a server error (500, Internal Server Error).
This has something to do with the server that provides the data to display.Anyway, can show me your config for the module?
And, have you tried to pull the latest version?Thanks - Omar
-
Hi @0m4r, this is my RPI configuration:
- S.O.: Buster
- MM: v2.23.0 (the 2.24.0 version it gives me some problems…)
- RPI4 4gb
Below my module’s configuration:
{ module: 'MMM-SoccerLiveScore', position: 'top_right', //header: 'Live-Scores', config: { leagues: [23], showNames: true, showLogos: true, displayTime: 60 * 1000, showStandings: true, showTables: false, showDetails: true, showScorers: false, scrollVertical: false, language: 'it', // supported values are en, de, it } },Thanks for your help!
-
IMPORTANT UPDATE:
Following the unavailability of the API used by this module, a new version is under development and available for beta testing.
If you are interested in trying it out, please follow the steps (they assume you are in the MMM-SoccerLiveScore folder):
> git checkout beta > git pull -r > npm ciupdate the configuration as follows:
{ token: "TOKEN", leagues: [LEAGUE_ID_1, LEAGUE_ID_2], displayTime: 1 * 60 * 1000, // 1 minute requestInterval: 10 * 60 * 1000, // 10 minutes showNames: true, showLogos: true, showStandings: true, showTables: true, showScorers: true, }You must obtain the TOKEN from https://www.football-data.org/pricing (there is a free plan too!).
The list of available leagues you can add to the configuration depends on your subscription plan, the full list of leagues is available here: https://docs.football-data.org/general/v4/lookup_tables.html#_league_codes (you need the
competitionId) -
0 0m4r referenced this topic on
-
The module has been released with its newly delivered version 4.0:
https://github.com/0m4r/MMM-SoccerLiveScorePlease note that you need to obtain an API key from https://www.football-data.org/pricing (a free plan is also available)
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