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-soccer : black screen, problem of config.js

    Scheduled Pinned Locked Moved Troubleshooting
    24 Posts 3 Posters 3.0k Views 3 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.
    • R Offline
      RIKKO14
      last edited by

      this is my black screen,
      so my pb comes from my config.js
      2020-09-02-190404_1920x1080_scrot.png

      S 1 Reply Last reply Reply Quote 0
      • R Offline
        RIKKO14
        last edited by

        alt text

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

          @RIKKO14 ok, that is not a black screen,

          the pm2 logs says there is a missing close brace, }

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by A Former User

            and where is located you config.js file ?

            It should in this directory : /home/pi/MagicMirror/config/

            For me, it’s not a black screen, I’s just because, MagicMirror don’t find you config.js file

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

              @Bugsounet no, he had a syntax error, and it loads the ‘no config’ error page

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by A Former User

                right sam, i don’t read log

                maybe, this part missing, on the end of the file

                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== "undefined") {module.exports = config;}
                

                if missing, config will not be exported (like a file not there)
                it’s the same for var config = { on the start of the file

                but by reading the error log:

                /home/pi/MagicMirror/config/config.js:392
                

                there is an error before this ligne (generaly on line-1 … so line 391)

                So, can you past there your config From line 380 to 410 (don’t forget to remove personal ident)

                1 Reply Last reply Reply Quote 0
                • R Offline
                  RIKKO14
                  last edited by

                  yes my config.js is this directory /home/pi/MagicMirror/config/

                  the problem comes from “}” or “},” but where ???

                  2020-09-02-200854_1920x1080_scrot.png

                  S 1 Reply Last reply Reply Quote 0
                  • R Offline
                    RIKKO14
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @RIKKO14
                      last edited by

                      @RIKKO14 says line 392

                      0|mm       |         },
                      0|mm       |         ^
                      0|mm       | 
                      0|mm       | SyntaxError: Unexpected token }
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RIKKO14
                        last edited by

                        I delete focus_on: { null }, and it’s good,

                        thank you very much to you 2 !

                        ? 1 Reply Last reply Reply Quote 0
                        • 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