MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-SoccerLiveScore

    Scheduled Pinned Locked Moved Sport
    187 Posts 37 Posters 252.6k Views 35 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      np27np27 @0m4r
      last edited by

      @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.

      1 Reply Last reply Reply Quote 0
      • 0m4r0 Offline
        0m4r Module Developer
        last edited by

        if you are interested into the WM results, add 4100 as a code into the module configuration :D

        https://github.com/0m4r

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          Egnos @0m4r
          last edited by Egnos

          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!

          My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

          0m4r0 1 Reply Last reply Reply Quote 0
          • 0m4r0 Offline
            0m4r Module Developer @Egnos
            last edited by

            @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!

            https://github.com/0m4r

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              Egnos @0m4r
              last edited by

              Thanks @0m4r, seems works!
              Sorry for the late reply!

              My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

              1 Reply Last reply Reply Quote 1
              • E Offline
                Egnos
                last edited by Egnos

                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 4gb

                Is it possible to solve it?

                Thanks.

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                0m4r0 1 Reply Last reply Reply Quote 0
                • 0m4r0 Offline
                  0m4r Module Developer @Egnos
                  last edited by

                  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

                  https://github.com/0m4r

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    Egnos @0m4r
                    last edited by

                    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!

                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                    1 Reply Last reply Reply Quote 0
                    • 0m4r0 Offline
                      0m4r Module Developer
                      last edited by

                      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)

                      https://github.com/0m4r

                      1 Reply Last reply Reply Quote 0
                      • 0m4r0 0m4r referenced this topic on
                      • 0m4r0 Offline
                        0m4r Module Developer
                        last edited by

                        The module has been released with its newly delivered version 4.0:
                        https://github.com/0m4r/MMM-SoccerLiveScore

                        Please note that you need to obtain an API key from https://www.football-data.org/pricing (a free plan is also available)

                        https://github.com/0m4r

                        1 Reply Last reply Reply Quote 2
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 18
                        • 19
                        • 1 / 19
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy