MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Defaults always read, not config values



  • Hi,

    I’m facing a problem where, in my code, the module doesn’t read the config file somehow. Below is my configuration in config.js. I don’t see something wrong.

    	{
    		module: 'MMM-matrixeffect',
    		position: 'lower_third',
    		canvasWidth:400,
    		canvasHeight:400,
    		textPoints:10,
    		fontName:"Courier New",
    		textColor:"#F00",
    		updateSpeed:400
    	},
    

    I check the contents of the config with this. When watching this, it’s always the default.

    		 	Log.info(this.config);
    

    any one an idea?

    thanks


  • Moderator

    {
    	module: 'MMM-matrixeffect',
    	position: 'lower_third',
    	config: {
    		canvasWidth:400,
    		canvasHeight:400,
    		textPoints:10,
    		fontName:"Courier New",
    		textColor:"#F00",
    		updateSpeed:400
    	}
    },
    

  • Moderator

    Edit: @yawns was faster.



  • Thank you kindly for the quick reply.
    I had a feeling it was going to be quite a simple solution. 🙂

    I’m just a noob getting the hang of things more and more.