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;
}
@strawberry-3.141 said in Wanting to do it the right way (revisited):
@Mykle1 dont make changes in the module files
only add the part to the config that you want to be different than the defaults
That’s what I wanted to know, thanks.
You are welcome. I guess you will need to find out on your own if the laptop fullfills your requirements. Power consumption is one aspect, another is loudness and heat due to fans in your laptop.
Yes you should be able to start everything up… then walk away and see what happens… what I did was once the mirror was loaded I took a towel and covered the PIR Sensor… ;) Then once the screen went out I took it off and waved my hand in front of it and it came back on :)
@broberg
Hi, thank you for your reply.
Dual touch IR Overlay Touch Screen Frame Panel Interactive 32" to 82" 16:9 is the description of the item. I spoke with the gentleman before I purchased it and he said it was perfect, my friend brought the same frame and hers is fine. The manufacturer accessed my Mirror remotely and the report showed no errors with the frame so he said it must be a windows problem?
Many thanks
@ArcherProject said in How do I configure a module?:
@Mykle1 thanks miate exactly what I have ended up doing and now I’m feeling a lot more confident! attempting to add a few extra modules too and so far so good! hope to make another one of these for myself in the future (this one is a gift). feel like I’ve still got a lot to learn though!
HEY do yourself a HUGE favor… when you have a working config.js just copy it to config.bak for a backup!! That way you can always look at it and see perhaps where you went wrong… trust me it’s a HUGE time saver!! :)