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.

    New to Modules, Need help

    Scheduled Pinned Locked Moved Solved Development
    9 Posts 4 Posters 4.5k Views 4 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
      randal-io
      last edited by

      Thanks strawberry 3.141 for the npm start dev tip! Was essential in getting past the stupid errors, and identifying the larger ones.

      BIG shoutout to cowboysdude for the guidence, help, and code reformatting which got the JSON working!!!

      Now I just have to get it formatted and I’ll be set!!

      0_1498616115932_mirror_quote.png

      Mykle1M 1 Reply Last reply Reply Quote 1
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @randal-io
        last edited by

        @randal-io

        I think it rather ironic that the quote shown above so aptly describes @cowboysdude. ;-)

        Well done randal-io!

        Create a working config
        How to add modules

        cowboysdudeC 1 Reply Last reply Reply Quote 1
        • cowboysdudeC Offline
          cowboysdude Module Developer @Mykle1
          last edited by cowboysdude

          @Mykle1 said in New to Modules, Need help:

          @randal-io

          I think it rather ironic that the quote shown above so aptly describes @cowboysdude. ;-)

          Well done randal-io!

          LOTS OF MADNESS LOL

          Good Job on the module! :)

          Mykle1M 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by

            @randal-io you also have an error in here

            if (this.config.lang != "en" || "ru") {
            	Log.error(self.name, "Please enter a supported language into the config.");
            }
            

            this will always print the error message, it should be

            if (this.config.lang != "en" && this.config.lang != "ru") {
            	Log.error(self.name, "Please enter a supported language into the config.");
            }
            

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 2
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @cowboysdude
              last edited by

              @cowboysdude said in New to Modules, Need help:

              LOTS OF MADNESS LOL

              And your fair share of genius! (Guru)

              Create a working config
              How to add modules

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