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 pleas help

    Scheduled Pinned Locked Moved Solved Troubleshooting
    52 Posts 5 Posters 21.6k Views 5 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.
    • M Offline
      Manu85
      last edited by

      I forgot! the detected error is as follows:

      @Manu85 from the log
      looks like MMM-SoccerLiveScore/ had a fatal error when no data was presented
      [ERROR] 2020-04-07T09:00:27 SyntaxError: Unexpected token u in JSON at position 0
      0|MagicMir |  at JSON.parse ()
      0|MagicMir |  at Request._callback (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:192:29)
      and that error killed MM
      0|MagicMir | [2020-04-07 09:00:27.567] [LOG] 2020-04-07T09:00:27 Whoops! There was an uncaught exception… (/home/pi/MagicMirror/js/app.js:39 process.)
      0|MagicMir | [2020-04-07 09:00:27.592] [LOG] 2020-04-07T09:00:27 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? (/home/pi/MagicMirror/js/app.js:41 process.)

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Manu85
        last edited by

        @Manu85 i posted this in your other topic

        the module author posted in 2018 that he no longer had time to maintain this module…

        I looked at the code and all the data operations do not check for errors. so there is quite a bit of work to fix the module

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          Manu85
          last edited by

          @sdetweil ah sh*t, it was really really good this module

          StoffbeuteluweS 1 Reply Last reply Reply Quote 0
          • StoffbeuteluweS Offline
            Stoffbeuteluwe Project Sponsor @Manu85
            last edited by

            @Manu85 yes …That was a nice Module

            StoffbeuteluweS 1 Reply Last reply Reply Quote 0
            • StoffbeuteluweS Offline
              Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
              last edited by Stoffbeuteluwe

              https://github.com/lavolp3/MMM-soccer

              I think this is also a good module.

              1 Reply Last reply Reply Quote 0
              • M Offline
                Manu85
                last edited by

                @Stoffbeuteluwe thank you i will try it, thank you again

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Manu85
                  last edited by

                  @Manu85 i think i have fixed the module so it doesn’t crash…

                  do this

                  cd ~/MagicMirror/modules
                  git clone https://github.com/sdetweil/MMM-SoccerLiveScore NewSoccerLive
                  cd MMM-SoccerLiveScore
                  cp ../NewSoccerLive/*.js .
                  

                  then restart your mirror app…
                  pm2 restart 0
                  if using pm2

                  this will replace the two files with my version… no other changes required…
                  if there is a request error, we wait 5 minutes and try again

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Manu85
                    last edited by

                    @sdetweil I just did the manipulations that you advised and the module restarted, I keep you informed of the stability, but well done for your responsiveness

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Manu85
                      last edited by

                      @sdetweil after a few hours the module becomes unstable.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Manu85
                        last edited by

                        @Manu85 ok, add

                        debug:true,
                        

                        To the module config section

                        And restart mirror

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          Manu85
                          last edited by

                          @sdetweil like this?
                          {
                          disabled:false,
                          module: ‘MMM-SoccerLiveScore’,
                          position: ‘top_right’,
                          header: ‘Scores en direct’,
                          config: {
                          leagues: [34, 1, 8],
                          showNames: true,
                          showLogos: true,
                          debug:true,
                          displayTime: 60 * 1000,
                          showTables: true
                          }
                          },

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @Manu85
                            last edited by

                            @Manu85 yes

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Manu85
                              last edited by

                              @sdetweil hello, this morning my mirror is frozen and the soccer module is not present, I send you the somefile file by email, thank you

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Manu85
                                last edited by

                                @Manu85 MMM-SoccerLive is still running, and is still running the old node_helper.js

                                0|MagicMir | [2020-04-08 07:23:29.709] [ERROR] 2020-04-08T07:23:29 SyntaxError: Unexpected token u in JSON at position 0
                                0|MagicMir |  at JSON.parse ()
                                0|MagicMir |  at Request._callback (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:146:29)

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Manu85
                                  last edited by

                                  @sdetweil What can I do?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @Manu85
                                    last edited by

                                    @Manu85 the module is still active in the config.js

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Manu85
                                      last edited by

                                      this is how it is in the config.js

                                      {
                                      disabled:false,
                                      module: ‘MMM-SoccerLiveScore’,
                                      position: ‘top_right’,
                                      header: ‘Scores en direct’,
                                      config: {
                                      leagues: [34, 1, 8],
                                      showNames: true,
                                      showLogos: true,
                                      debug:true,
                                      displayTime: 60 * 1000,
                                      showTables: true
                                      }
                                      },

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @Manu85
                                        last edited by

                                        @Manu85 said in MMM-SoccerLiveScore pleas help:

                                        disabled:false,

                                        needs to be

                                        disabled:true,

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          Manu85
                                          last edited by

                                          ok I did “disabled: true,” and I restarted the MM, the module no longer appears

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            Manu85
                                            last edited by

                                            this is how it is in the config.js
                                            {
                                            disabled:true,
                                            module: ‘MMM-SoccerLiveScore’,
                                            position: ‘top_right’,
                                            header: ‘Scores en direct’,
                                            config: {
                                            leagues: [34, 1, 8],
                                            showNames: true,
                                            showLogos: true,
                                            debug:true,
                                            displayTime: 60 * 1000,
                                            showTables: true
                                            }
                                            },

                                            S 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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