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

Black screen for copy of hellowold module

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 2.0k 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 Nov 6, 2016, 11:40 AM Nov 5, 2016, 2:36 PM

    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
    • Y Offline
      yawns Moderator
      last edited by Nov 5, 2016, 5:06 PM

      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 Nov 7, 2016, 3:09 PM Nov 7, 2016, 2:42 PM

        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 Nov 7, 2016, 3:09 PM Nov 7, 2016, 3:09 PM

          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
          • 1 / 1
          1 / 1
          • First post
            2/4
            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