I have found that I need to slow down and read the entire readme… many modules require “npm install”… that right there is more than 1/2 of the errors ;)
I’m so glad you came to ask for help! I know it’s hard to do at times… I know myself I have an extremely difficult time asking for help…
BUT just remember when you’re new at this go slow… take your time :) If you get into trouble just ask. HUGE suggestion… when you have a working config.js you should make a copy of it before you change anything in it… that way if you get into trouble you have a backup that you know works!
Easy in a terminal window:
~MagicMirror/config
cp config.js config.bak
That’s all there is to it! :) Then you’re safe!
Update received same error running the bash script:
curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
on Raspberry pi 3.0 -B. Installed Raspbian Jesse using NOOBS.
Ran the script again and the response told me NodeJs was installed, “Magic mirror is already installed”
I believe this is more an unintended response of the actual bug. NodeJS was already installed correctly?
Anyway,
navigated into the folder MagicMirror:
npm start -> electron not installed fail.
npm install -> npm start
Bingo, we are running. No need to download any packages seperately.
@MobbareKurtZ said in Config.js doesn’t work:
Hi so I finally got my mirror working. But when I try to use this module: Phone Notifications, it goes all black and I don’t know why. Here is that part of the config(I’m ofc using the token when in action): [image: 1486658147783-upload-03034411-d5bf-452b-a29b-6156e2c4fecb.png]
There should only be one comma right after the last } [really you don’t need one there but it’s just habit]… the one above it should have no comma ;)
Guys,
Thanks for the help, using your suggestions I was able to actually accomplish what I was looking for in the header of the calendar module itself.
@emos you have to seperate each level with commas things day_sunny, snow, rain has to be seperated with commas
thats what inside the square brackets has to be seperated by commasas well
On line 51 of the compliments.js it says “this.complimentFile((response) => {” but this throws up an error with Midori which looks like it doesnt support E6 Arrow functions.
I had this issue with either the MMM-Buttons or MMM-ProfileSwitcher (cant remember) module and changing it back out to a regular function solved the issue after a lot of time spent debugging.
I know there are now quite a lot of people who are using the Pi Zero to run this as it runs perfectly, is there a way to perhaps get some consistency around and not use these in modules until its supported? Midori is the only browser that seems to run on the Pi Zero without issues.
I used the guide to auto start the MM on boot. The pi3 boots up fully and the MM turns the entire screen black, however when the MM loads it only uses the top portion of the screen and overlaps all of the modules. When starting the mirror from the terminal it works exactly as it should. Only when Auto start is configured it gives me the half overlapped screen.
It seems to me that a small white window pops up, then is replaced by the full screen mode. And the MM is only being loaded on the small window.
Any tips?
@strawberry-3.141 said in Help customising my mirror:
@Mykle1 that answer is not correct, module config options have to be in the object config
Yup, you’re right. In my haste to answer, because I was pressed for time this morning, I mistakenly omitted that. My bad. Thanks for catching that.
Thanks for your input, I modified it a bit to get the result I wanted! Works like a charm!
getDom: function() {
var wrapper = document.createElement("div");
var button = document.createElement("div");
var text = document.createElement("span");
var hidden = true;
button.className = "hide-toggle";
text.innerHTML = this.config.caption;
text.addEventListener("click", () => this.sendNotification("BUTTON_PRESSED", {}));
button.appendChild(text);
wrapper.appendChild(button);
return wrapper;
}