- open a terminal type in
cd ~/MagicMirror/config
toc
hanged
irectory nano config.js
- After you made your changes press
ctrl+x
and confirm - change directory to parent directory
cd ..
- start the mirror
npm start
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Posts
-
RE: How do I edit config, I see every new module starts whit going to config.js
-
RE: Throwing down the gauntlet
@jproehl custom.css
.newsfeed div.light.small.dimmed { color: #e54a1b; font-size: 9px; }
-
RE: Garage Door Detectors
Module.register("MMM-door-sensor",{ // Default module config. defaults: { text: "Hello World!" }, // Define start sequence. start: function() { Log.info("Starting module: " + this.name); }, notificationReceived: function(notification, payload, sender) { if (sender) { Log.log(this.name + " received a module notification: " + notification + " from sender: " + sender.name); if (notification === "DOOR_STATE") { this.door_state = payload; this.updateDom(); } } }, getDom: function() { var wrapper = document.createElement("div"); if(this.door_state){ wrapper.innerHTML = '<img src=" + this.door_state + " />'; } else { wrapper.innerHTML = 'No door state present.'; } return wrapper; } });
config mmm-button
{ pin: 24, name: "power", longPress: { title: "Power off", message: "Keep pressed for 3 seconds to shut down", imageFA: "power-off", notification: "DOOR_STATE", payload: "close.png" }, shortPress: undefined }
you would therefore need a button released to send open.png
-
RE: Controlling Embedded Youtube Video on MM
@zichao92 not only you had some more issues and sendCommand is a custom method
-
RE: Vocabulary trainer
there is a first prototype on the develop branch
git clone https://github.com/fewieden/MMM-VocabularyTrainer.git cd MMM-VocabularyTrainer git checkout develop
[card:fewieden/MMM-VocabularyTrainer]
-
RE: Electron CPU usage
@Mykle1 you can go to every commit you’d like to go, but it’s easier to choose a specific tag
git clone ... git checkout v2.1.0
-
RE: Bring!
@P-Bo726 if they won’t do it, there are also possibilities to reverse engineer their api
-
RE: remoteFile in compliments module
@Lahim because you changed the context by removing the arrow function, to preserve the context you have to do something like:
if (this.config.remoteFile != null) { var self = this; this.complimentFile(function(response){ self.config.compliments = JSON.parse(response); }); }
-
RE: WE WANT YOU! [New Moderators]
I can recommend @yawns and @ianperrin for this positions.
They helped a lot and made also some excellent modules.