• 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.

Config Error

Scheduled Pinned Locked Moved Troubleshooting
newcodeerror
39 Posts 5 Posters 10.0k 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.
  • S Offline
    sdetweil @PHAGE.GOV
    last edited by May 21, 2020, 12:45 AM

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

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    P 1 Reply Last reply May 21, 2020, 12:49 AM Reply Quote 0
    • P Offline
      PHAGE.GOV @sdetweil
      last edited by May 21, 2020, 12:49 AM

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

      1 Reply Last reply Reply Quote 1
      • B Offline
        BKeyport Module Developer
        last edited by May 21, 2020, 8:41 AM

        one of the biggest tips I can give you is to throw out everything you know about capitalization…
        Welcome_message is different from welcome_message

        Most of the time, with RARE exception, the initial letter is lowercase. javacriptIsWeird

        The "E" in "Javascript" stands for "Easy"

        S 1 Reply Last reply May 21, 2020, 10:59 AM Reply Quote 0
        • S Offline
          sdetweil @BKeyport
          last edited by sdetweil May 22, 2020, 1:50 AM May 21, 2020, 10:59 AM

          @BKeyport no… it is entirely up to the author of the module what case is used.
          there are no rules…

          only thing is javascript is case sensitive

          var foo
          is different than
          var fOo
          etc…

          the config code doesn’t care, it takes all the settings and makes an object
          the module then looks for specific items… almost NEVER checking for case mismatch

          config.foo
          will NOT find
          config.fOo

          it is NOT an error to config if fOo is not present.

          filenames on linux are also case sensitive

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply May 21, 2020, 7:00 PM Reply Quote 1
          • B Offline
            BKeyport Module Developer @sdetweil
            last edited by May 21, 2020, 7:00 PM

            @sdetweil That’s effectively what I said… I’m working from within the naming conventions typically used by module authors, including myself, and trying to stress that case is important, because if you come from a world where it’s not (DOS/Windows, perhaps?) it takes some getting used to.

            bottom line, Welcome_message is not the same as welcome_message

            The "E" in "Javascript" stands for "Easy"

            S 1 Reply Last reply May 21, 2020, 7:48 PM Reply Quote 0
            • S Offline
              sdetweil @BKeyport
              last edited by May 21, 2020, 7:48 PM

              @BKeyport said in Config Error:

              I’m working from within the naming conventions typically used by module authors

              i didn’t know there were any conventions! least I don’t follow anything written anywhere

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply May 21, 2020, 7:59 PM Reply Quote 0
              • E Offline
                evroom @sdetweil
                last edited by May 21, 2020, 7:59 PM

                @sdetweil said in Config Error:

                i didn’t know there were any conventions! least I don’t follow anything written anywhere

                Naming conventions are not must, but it is used to make code more readable and understandable.
                A quick google came up with this useful page:

                https://github.com/ktaranov/naming-convention/blob/master/JavaScript Name and Coding Conventions.md

                MagicMirror version: 2.30.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.30.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                S 1 Reply Last reply May 21, 2020, 8:45 PM Reply Quote 0
                • S Offline
                  sdetweil @evroom
                  last edited by sdetweil May 21, 2020, 8:45 PM May 21, 2020, 8:45 PM

                  @evroom i have been coding for 45 years… i know what they are and know what good ones produce…

                  however, specific casing has always been a useless conversation…

                  make names meaningful, use case where appropriate…
                  i don’t follow camelcase, or any other std.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  E 1 Reply Last reply May 22, 2020, 9:50 AM Reply Quote 0
                  • E Offline
                    evroom @sdetweil
                    last edited by May 22, 2020, 9:50 AM

                    @sdetweil said in Config Error:

                    i know what they are and know what good ones produce…

                    Cannot tell from your reply, if you were offended by my post, but please don’t be.
                    First of all you are the most appreciated and by far the most active member on the Forum and if it weren’t for you, less people would succeed with their installs and less people would be using MM.
                    But you did say “i didn’t know there were any conventions!”, hence my reply, a bit naïve perhaps.
                    Probably you meant so say it within the context of programming MM modules.
                    I had better addressed the link to @BKeyport so that he could take notice, but in principle it was meant for those interested (and do not know that in MM “Welcome_message is not the same as welcome_message”).

                    Have a nice day,

                    @evroom

                    MagicMirror version: 2.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    B 1 Reply Last reply May 22, 2020, 5:15 PM Reply Quote 0
                    • B Offline
                      BKeyport Module Developer @evroom
                      last edited by May 22, 2020, 5:15 PM

                      @evroom “convention” isn’t the right word here, perhaps. I’m almost leaning to “peer pressure” perhaps? Doing it because it seems everyone else is? 🤣🤣🤣

                      The "E" in "Javascript" stands for "Easy"

                      E 1 Reply Last reply May 22, 2020, 7:15 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 4
                      4 / 4
                      • First post
                        33/39
                        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