Read the statement by Michael Teeuw here.
MMM-SoccerLiveScore
-
@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 ci
update 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
) -
-
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)