Found the error. I needed to add
.region.fullscreen {
z-index: -1;
}
as css and now it is working.
Found the error. I needed to add
.region.fullscreen {
z-index: -1;
}
as css and now it is working.
Well no specific. Just Google it and found a few guides that I browsed through. I didn’t went into details as I am still waiting for my raspberry pi 3. Currently I have MM installed on and old Lenovo laptop. Can’t wait for my raspberry pi to come 😊
@Snille I have looked at your button module for inspiration. Do you know why nothing happens when I click the button?
I am waiting for my raspberry pi 3 to arrive as well, but haven’t ordered my IR frame yet so can’t help. But I am planning the same setup as you.
I’ve read a few tutorials and it seemed fairly easy to do the calibration but apparently not.
It seems a bit daring to go with the exact same setup and then just hope not getting the error that you getting. Perhaps I should go with a smaller IR frame that fits the screen… Or perhaps I should hope that the IR frame I’m ordering is better than yours. Even though it doesn’t sound like a problem with the frame…
My plan was also to buy a bigger frame than screen, and then use the calibration tool… Seems weird that the values won’t stick… Please let me know if you find a solution for this as I would like my frame slightly bigger than the screen, as you do.
@cowboysdude said in IR Touchframe suggestions?:
AliExpress
Following, as I am planning on buying from AliExpress aswell.
Thank you once again for your help. Now that I understand where to see the logs, i can see that my button is not working. Anybody who knows why nothing happens when I click the button
Module.register("MMM-Slider",{
// Default module config.
defaults: {
//text: "Hello World!"
},
// Override dom generator.
getDom: function() {
var wrapper = document.createElement("div");
wrapper.appendChild(this.createButton());
return wrapper;
},
createButton: function() {
var button = document.createElement("span");
button.innerHTML ="Click me";
button.id = this.identifier + "_button";
button.addEventListener("click", function () {
console.log("The button was clicked");
});
return button;
}
});
@strawberry-3.141 said in console.Log() shows nothing?:
npm start dev
Thank you very much, both of you. Now I can see the logs.
@strawberry-3.141 said in console.Log() shows nothing?:
console.log(“Debug Message”);
Thanks for your reply. The “Log” in the title was a mistake.
the console.log(); doesnth work either.
Module.register("MMM-Slider",{
// Default module config.
defaults: {
//text: "Hello World!"
},
// Override dom generator.
getDom: function() {
console.log("Test");
var wrapper = document.createElement("div");
wrapper.appendChild(createButton());
return wrapper;
},
start: function() {
console.log("Debug Message");
},
createButton: function() {
//Create the button
var button = document.createElement("button");
button.innerHTML ="Click me";
button.addEventListener("click", function() {
console.log("Visiting show URL");
});
return button;
}
});
The above code was my simple attempt to create a button. The button is created, but nothing happens when i click it, and nothing is shown when MagicMirror is started.
Starting MagicMirror: v2.1.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
No helper found for module: MMM-ProfileSwitcher.
Initializing new module helper ...
No helper found for module: clock.
No helper found for module: MMM-Slider.
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: weatherforecast.
All module helpers loaded.
Starting server op port 8080 ...
Server started ...
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Sockets connected & modules started ...
Launching application.
Create new calendar fetcher for url: http://springschedule.au.dk/ical/ical.asp?objectclass=student&id=xxxxxx - Interval: 300000
Shouldn’t the logs be visible in the command line?
Today I started learning to develop MM modules. I have gone through the node.js tutorial on tutorialspoint.com.
I have worked a little bit in javascript before, and recalled the console.Log() being vital when developing, for debugging purpose.
For some reason, no matter what I do, I cant see any of my logs in the terminal. Shouldn’t this be working out of the box, or do i need to set something up in order to get logging to work?