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?
But i guess that module would need a bit of tweaking since it has to rely on swipes, instead of facial recognition? Perhaps it would be easier to just create a webpage myself in html/js/php since i need to incorporate touch ability to most of the modules. But thank you very much for pointing me towards the profileswitcher module. I will take that into consideration.
Hi
I am planning on creating a smartmirror with an ir-frame. My plan is to create different desktop’s and then be able to move between them using a swipe. You can see an illustration of what i want here:
http://idangero.us/swiper/demos/02-responsive.html
This way, I could have a desktop of the modules I preffer; my girlfriend could choose her modules on her desktop an so on. Is this something that is possible in magicmirror or am i better of just creating a webpage myself using idangero?
@Manmachine Thank you. I have been looking at the product they offer for a long time. It was the best i’ve found in denmark but I wasnt sure if it was good enough. So nice you hear it is working for you. Then I will order one as well.
@Manmachine
At the time I looked into the mirror I found that the specs wasn’t ideal for at magic mirror projects. Do you have any experience with it?
@vazma I found that mirror too, but haven’t been able of finding a place to buy it from. Have you?
Here are a link to the product page of the manufacturer.
http://scandinavia.saint-gobain-glass.com/product/1958/sgg-mirastar
Hi
I have finally found a Danish dealer of a two-way mirror, but I am uncertain to whether mirror is suitable for a MagicMirror Project. 