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

New to Modules, Need help

Scheduled Pinned Locked Moved Solved Development
9 Posts 4 Posters 4.1k 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 Jun 27, 2017, 8:12 PM

    Thats my problem, I’m so new I don’t even know how to debug the module. It won’t start at all, doesn’t even display “Loading”.

    S 1 Reply Last reply Jun 27, 2017, 8:58 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @randal-io
      last edited by Jun 27, 2017, 8:58 PM

      @randal-io you can view your logs by starting the mirror with npm start dev or by pressing cmd+shift+i

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

      1 Reply Last reply Reply Quote 1
      • R Offline
        randal-io
        last edited by Jun 28, 2017, 2:15 AM

        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

        M 1 Reply Last reply Jun 28, 2017, 2:29 AM Reply Quote 1
        • M Offline
          Mykle1 Project Sponsor Module Developer @randal-io
          last edited by Jun 28, 2017, 2:29 AM

          @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

          C 1 Reply Last reply Jun 28, 2017, 2:45 AM Reply Quote 1
          • C Offline
            cowboysdude Module Developer @Mykle1
            last edited by cowboysdude Jun 28, 2017, 2:46 AM Jun 28, 2017, 2:45 AM

            @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! :)

            M 1 Reply Last reply Jun 28, 2017, 11:05 AM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by Jun 28, 2017, 9:32 AM

              @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
              • M Offline
                Mykle1 Project Sponsor Module Developer @cowboysdude
                last edited by Jun 28, 2017, 11:05 AM

                @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
                1 / 1
                • First post
                  7/9
                  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