Compliments setup



  • In config.js

    		{
    			module: 'compliments',
    			position: 'lower_third'
                config: {
                    anytime: [
                        "Compliment 1",
                        "Compliment 2",
                        "Compliment 3"
                    ]
    		},  
    		{
    			module: 'currentweather',
    

    Gives the “Please create a config file” error

    Take out the. . .

            config: {
                anytime: [
                    "Compliment 1",
                    "Compliment 2",
                    "Compliment 3"
                ]
    

    . . .lines, and it’s OK.

    0_1491344434970_CaptureMM2.JPG

    What’s it not liking in there?


  • Module Developer

    @Richard238 said in Compliments setup:

    What’s it not liking in there?

    The , (comma) after ‘lower_third’. It should look like this

    {
    			module: 'compliments',
    			position: 'lower_third',
                config: {
                    anytime: [
                        "Compliment 1",
                        "Compliment 2",
                        "Compliment 3"
                    ]
    		},


  • Thanks, it was that, and a missing } close curly bracket.


  • Module Developer

    @Richard238 said in Compliments setup:

    Thanks, it was that, and a missing } close curly bracket.

    Oh! Yes, I missed that one. Good catch on your part. So lets fix it in case anyone else looks at this for help. The correct entry would be this:

     {
    	module: 'compliments',
    	position: 'lower_third',
                config: {
                    anytime: [
                        "Compliment 1",
                        "Compliment 2",
                        "Compliment 3"
                    ]
                    }
    		}, 
    

    That’s better.



  • Whilst the config.js now loads, it’s not showing the new, replacement compliments.

    I’ve restarted NPM, no change.

    I’ve powered Pi off & on, no change.


  • Moderator

     {
    	module: 'compliments',
    	position: 'lower_third',
                config: {
                    anytime: [
                        "Compliment 1",
                        "Compliment 2",
                        "Compliment 3"
                    ],
    		morning: [
                        "morning Compliment 1",
                        "morning Compliment 2",
                        "morning Compliment 3"
    		],
    		afternoon: [
                        "afternoon Compliment 1",
                        "afternoon Compliment 2",
                        "afternoon Compliment 3"
    		],
    		evening: [
                        "evening Compliment 1",
                        "evening Compliment 2",
                        "evening Compliment 3"
    		]
                    }
    		}, 
    

    try this please. I do remember there was something like “all 3 cases need to exist, otherwise it takes default values for this”



  • Ohhh, interesting. I’ll have a go and report back later.
    Thank you.



  • No difference, still uses default compliments:

                config: {
                    anytime: [
                        "Compliment 1",
                        "Compliment 2",
                        "Compliment 3"
                    ],
                    morning: [
                        "morning Compliment 1",
                        "morning Compliment 2",
                        "morning Compliment 3"
                    ],
                    afternoon: [
                        "afternoon Compliment 1",
                        "afternoon Compliment 2",
                        "afternoon Compliment 3"
                    ],
                    evening: [
                        "evening Compliment 1",
                        "evening Compliment 2",
                        "evening Compliment 3"
                    ]
                }
    		},  
    
    


  • Changing it to remoteFile, as described here, it works.

    Well, only after it’s still displayed all the default messages.



  • Still not picking up different compliments:

    		{
    			module: 'compliments',
    			position: 'lower_third',
                config: {
    			anytime: [
    				"Hey!"
    			],
    			morning: [
    				"Good morning, handsome!",
    				"Enjoy your day!",
    				"How was your sleep?"
    			],
    			afternoon: [
    				"Hello, beauty!",
    				"You look sexy!",
    				"Looking good today!"
    			],
    			evening: [
    				"Wow!",
    				"You!",
    				"Hi!"
    			]
    		},
    		updateInterval: 30000,
    		remoteFile: null,
    		fadeSpeed: 4000
    			/*config: {
    				remoteFile: 'compliments.json'
    			}*/
    		},  
    

Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.