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.

    Black screen for copy of hellowold module

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 2.2k Views 2 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.
    • T Offline
      titusece
      last edited by MichMich

      Hello,
      I have tried to create a new module in MM, for that I have copied helloworld module from “modules/defauls/helloworld” to “modules/Titus”,

      I just renamed to ‘Titus’ as a module.

      Then I changed the config.js file for a new Titus module.

      I am getting black screen now for the Titus module, but just work fine for helloworld.
      Why ?, any dependencies ?
      Can any one please help me on this ?

      I’m very new to this (MMM)

      //Worked
      /*
      {
      module: 'helloworld',
      position: 'middle_center',
      header: 'helloworld module',
      config: {
      text: 'I'm helloworld module'
      } // closes config
      }, // closes module helloworld
      */
      
      //Not worked
      {
      module: 'Titus',
      position: 'middle_center',
      header: 'Titus module',
      config: {
      text: 'I'm Titus module'
      }
      },
      

      Regards,
      Titus S.

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        So you created a copy of the helloworld module and moved it to modules/Titus?
        Then you renamed helloworld.js to Titus.js?
        Did you modify Titus.js and changed this line
        javascript Module.register("helloworld",{
        to
        javascript Module.register("Titus",{
        to tell MagicMirror there is a new module called Titus?

        1 Reply Last reply Reply Quote 2
        • T Offline
          titusece
          last edited by titusece

          Yes, I did like that only.

          Changed to like below.
          javascript Module.register(“Titus”,{

          Anything I want to do ?

          1 Reply Last reply Reply Quote 0
          • T Offline
            titusece
            last edited by titusece

            I found the problem.
            Initially I named module as “Titus” and have javscript as “titus.js”.

            I renamed like below and it worked.
            “titus.js” to “Titus.js”

                        {
                                module: 'Titus',
                                position: 'middle_center',
                                header: 'Titus module',
                                config: {
                                        text: 'Glory to God, Jesus and Holyspirit, all the time'
                                }
                        },
            

            Thank you.

            Regards,
            Titus S.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 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