Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compliments.md #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

3DPixel
Copy link

@3DPixel 3DPixel commented Sep 30, 2023

In the original guide, adding the compliments to the MagicMirror/config/config.js file didn't override the default compliments. By adding them to the defaults file, it works

In the original guide, adding the compliments to the MagicMirror/config/config.js file didn't override the default compliments.
By adding them to the defaults file, it works
@bugsounet
Copy link
Contributor

bugsounet commented Sep 30, 2023

adding the compliments to the MagicMirror/config/config.js file didn't override the default compliments.

Tested with new compliments in config.js, it's works
I think you have made an error in your personal config

There is maybe an error of understanding, I will clarify the doc

sample there

maybe it's better:

{
    module: "compliments",
    position: "lower_third",
    config: {
      compliments: {
        anytime: [
          "Hey there sexy!"
        ],
        morning: [
          "Good morning, handsome!",
          "Enjoy your day!",
          "How was your sleep?"
        ],
        afternoon: [
          "Hello, beauty!",
          "You look sexy!",
          "Looking good today!"
        ],
        evening: [
          "Wow, you look hot!",
          "You look nice!",
          "Hi, sexy!"
        ],
        "....-01-01": [
          "Happy new year!"
        ]
      }
    }
}

@rejas: what do you think about this ?

@rejas
Copy link
Collaborator

rejas commented Oct 1, 2023

@bugsounet is right, the moduel works as expected, no need to change the defaults. happy to get a PR for this to clear up

@3DPixel
Copy link
Author

3DPixel commented Oct 2, 2023 via email

@bugsounet
Copy link
Contributor

bugsounet commented Oct 2, 2023

Configuration tested (in config/config.js)

		{
			module: "compliments",
			position: "lower_third",
			animateIn: "bounceInDown",
			animateOut: "bounceOutUp",
			config: {
				updateInterval: 500,
				fadeSpeed: 200,
				compliments: {
			          anytime: [
			            "anytime1",
			            "Really ?",
			            "there is not default!!!"
			          ],
			          morning: [
			            "morning1",
			            "morning2",
			            "morning3"
			          ],
			          afternoon: [
			            "afternoon1",
			            "afternoon2",
			            "afternoon3"
			          ],
			          evening: [
			            "evening1",
			            "evening2",
			            "evening3"
			          ],
			          "....-01-01": [
			            "!!!! Happy new year !!!!!"
			          ]
			       }
			}
			
		},

Result:

ezgif com-gif-maker

That you can see, there is no default and the module works as expected.
I just speed up interval of update

@rejas
Copy link
Collaborator

rejas commented Oct 2, 2023

I edited the config/compliments.js file

Strange filename, you should edit config/config.js

@khassel
Copy link
Collaborator

khassel commented Oct 2, 2023

what is the content beside the unwanted filename change? It's hard to see, looks like only format has changed (which will be reverted when lintered).

@3DPixel
Copy link
Author

3DPixel commented Oct 2, 2023 via email

@3DPixel
Copy link
Author

3DPixel commented Oct 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants