• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 206.7k 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.
  • 0 Offline
    0m4r Module Developer
    last edited by Nov 20, 2022, 1:30 PM

    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 Jun 7, 2023, 10:37 AM Reply Quote 0
    • E Offline
      Egnos @0m4r
      last edited by Egnos Jun 7, 2023, 10:41 AM Jun 7, 2023, 10:37 AM

      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

      0 1 Reply Last reply Jun 11, 2023, 1:18 PM Reply Quote 0
      • 0 Offline
        0m4r Module Developer @Egnos
        last edited by Jun 11, 2023, 1:18 PM

        @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 Aug 2, 2023, 6:06 PM Reply Quote 0
        • E Offline
          Egnos @0m4r
          last edited by Aug 2, 2023, 6:06 PM

          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 Sep 27, 2023, 10:12 PM Sep 27, 2023, 10:11 PM

            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

            0 1 Reply Last reply Sep 28, 2023, 5:50 AM Reply Quote 0
            • 0 Offline
              0m4r Module Developer @Egnos
              last edited by Sep 28, 2023, 5:50 AM

              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 Sep 28, 2023, 6:41 PM Reply Quote 0
              • E Offline
                Egnos @0m4r
                last edited by Sep 28, 2023, 6:41 PM

                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
                • 0 Offline
                  0m4r Module Developer
                  last edited by Oct 13, 2024, 2:06 PM

                  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
                  • 0 0m4r referenced this topic on Oct 13, 2024, 2:07 PM
                  • 0 Offline
                    0m4r Module Developer
                    last edited by Nov 2, 2024, 3:07 PM

                    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
                    • 15
                    • 16
                    • 17
                    • 18
                    • 19
                    • 19 / 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