Read the statement by Michael Teeuw here.
Ability to change color by physical button?
-
Thank you Strawberry with everything.
I think i have to give this idea up tho. I have now been sitting for two days trying. But i just cant wrap my head around it. :/
Nothing makes sense for me with JavaScript. Not a single row of code have i been able to write.
Changing ‘fontColor’ is about my level of knowledge :P -
maybe this will give you a start
I added the following lines to MagicMirror/css/custom.css
.male { background: black; color: blue; } .female { background: white; color: pink; }
and for testing I edited the clock module (MagicMirror/modules/default/clock/clock.js) because it get’s updated every second.
put those lines right after line 69
if(secondsWrapper.innerHTML % 10 == 0){ /*changes class every 10 seconds, because i don't have a button i made this "hack" for testing purposes*/ var body = document.querySelector('body'); if(body.classList.contains("male")){ body.classList.remove("male"); body.classList.add("female"); } else { body.classList.remove("female"); body.classList.add("male"); } }
-
Hi… This can easily be accomplished with some javascript and css. No need to mess with hardware or anything.Edit: I guess I should actually read the post. You need a physical button. Disregard lol