MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Config Error

    Troubleshooting
    new code error
    5
    39
    1521
    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.
    • lavolp3
      lavolp3 Module Developer @PHAGE.GOV last edited by lavolp3

      @PHAGE-GOV I guess you have that part in the alert module.

      It needs to be like @sdetweil said. on the left side a single word, here welcome_message. You need to take care of underlines and the upper-/lowercase.
      Then there is a : and then the value which can be a string or false.

      welcome_message: 'Any string you like'
      

      OR

      welcome_message: false
      

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

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

        @lavolp3 but his error was

        Unexpected token Welcome_message

        so, one at least more this is wrong

        Sam

        Create a working config
        How to add modules

        lavolp3 1 Reply Last reply Reply Quote 0
        • lavolp3
          lavolp3 Module Developer @sdetweil last edited by lavolp3

          @sdetweil Looking at above post, there’s looots of errors in the config.

          @PHAGE-GOV we can’t lead you through all of these.
          You need to understand how config.js needs to look. Only one comma set false or forgotten breaks the whole file and the mirror.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          lavolp3 1 Reply Last reply Reply Quote 0
          • lavolp3
            lavolp3 Module Developer @lavolp3 last edited by lavolp3

            @lavolp3 The alert part needs to look like this:

            		{
            			module: "alert",
            			position: "right",
            			welcome_message: "a string"
            		},
            

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            P 1 Reply Last reply Reply Quote 0
            • P
              PHAGE.GOV @sdetweil last edited by

              @sdetweil okay so ive been combing through the code, and since i didnt know how to properly edit .json files, i had alot of cleanup to do, im still not done, but getting there. what is a trailing space though? i dont know what to remove

              1 Reply Last reply Reply Quote 0
              • P
                PHAGE.GOV @lavolp3 last edited by

                @lavolp3

                {
                			module: "compliments",
                			position: "lower_third",
                			compliments: {	
                				"anytime" : [
                					"Hey there sexy!"
                				],
                				"morning" : [
                

                so 64 is the compliments line and it says it has trailing spaces. Im actually learning so much about json files rn so thank you @sdetweil and @lavolp3

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @PHAGE.GOV last edited by

                  @PHAGE-GOV ignore the trailing space error. It’s stupid

                  Sam

                  Create a working config
                  How to add modules

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    PHAGE.GOV @sdetweil last edited by

                    @sdetweil indeed it is, i found it tho, and i fixed everything else too! thank you so much! and i learned so much from this also, i feel much more confident poking around and i defs learned much more about proper coding

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @PHAGE.GOV last edited by

                      @PHAGE-GOV and finding your way on the next error. After 3 years I still make them

                      Sam

                      Create a working config
                      How to add modules

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        PHAGE.GOV @sdetweil last edited by

                        @sdetweil yeah, but npm run config:check was such a life saver

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 4
                        • 3 / 4
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy