Read the statement by Michael Teeuw here.
Black screen for copy of hellowold module
-
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. -
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? -
Yes, I did like that only.
Changed to like below.
javascript Module.register(“Titus”,{Anything I want to do ?
-
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.