Read the statement by Michael Teeuw here.
MMM-Snow Activation at Month
-
Hello Guys,
i want to modify the Module MMM-Snow. The Module should only activate by Month. I test it with this Function only for Dezember…Later in Arry for Dezember until Februar…
var D = new Date();
var month = D.getmonthif(month==11)[
Module
…
…
]but it works not! Were is the Problem?
-
Just do an if statement inside the getDom function like this…
var D = new Date();
var month = D.getmonth;If (month === “11”) {
magic happens here…
} -
OK, i test this. But it works not by replaces “11” to “1” because February
-
To do:
- Create the configure property for this option.
- Make it and do a pull request to the MMM-Snow github project.
I read it here beacose i can’t do thats for this time. If i can more later i do that but if anywone can do that it’s cool.
-
Lost my settings. Now I’m faced with the problem again. It doesn’t work. Is it correct that d.getmonth returns the value 11 for December?
-
@cowboysdude said in MMM-Snow Activation at Month:
var D = new Date();
var month = D.getmonth;
If (month === “11”) {
magic happens here…
}ok i found the Problem
not var month = D.getmonth; but var month = D.getmonth();
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login