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

      @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
                              • S Offline
                                sdetweil @Manu85
                                last edited by

                                @Manu85 ok… looks good…

                                however, the node_helper in the module folder is also the old one… not the new that you were supposed to have copied…

                                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 yet I followed your instructions, but I may have made a mistake! what should I do?

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

                                    @Manu85

                                    cd ~/MagicMirror/modules
                                    mv MMM-SoccerLiveScore MMM-SoccerLiveScore.old
                                    mv NewSoccerLive MMM-SoccerLiveScore
                                    cd MMM-SoccerLiveScore
                                    npm install
                                    

                                    then u can change disabled: back to false

                                    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

                                      I made all the lines and went to false, the MM started but soccer does not appear on the screen

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

                                        @Manu85 output of
                                        pm2 logs --lines=100
                                        please

                                        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 in your mailbox

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

                                            @Manu85 makes no sense…

                                            can u edit ~/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js
                                            and show me the top few lines, should look like this

                                            /* Magic Mirror
                                             * Module: MyCovid19
                                             *
                                             * Node_helper written by sdetweil
                                             *  
                                             */
                                            const NodeHelper = require('node_helper');
                                            const request = require('request');
                                            const path = require('path')
                                            var moment = require('moment');
                                            //const cvt=require("xlsx-to-json")
                                            const cvt=require('csvtojson')
                                            var fs=require('fs')
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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