Like this? Today in History
Or this? on this day
Read the statement by Michael Teeuw here.
Posts
-
RE: On this day info from wikipedia
-
RE: Show a picture infont of everything with a button
You can check if MMM-Button works by checking the console (not the browser console but where you type in the command to start the MM), it should write
"button pressed"
when you use the button.In my JS file, add a
Log.info("notification: " + notification + "; payload: " + payload + "; sender: " + sender);
in line 26 and see if it comes up and what it shows.You can check if the cover works by using the developer tools, finding the module and adding the class
show-image
. -
RE: Arcade button to turn on/off monitor
As for the PIR sensitivity, that can usually be adjusted.
-
RE: Want to turn off my monitor
Don’t forget that the monitor will still be on, it’s just in standby, still consuming power. The Pi can’t switch the power of the monitor itself off.
-
RE: Show a picture infont of everything with a button
Ok, I wrote something that
could…should… I expect to be working with MMM-Button. At the moment I don’t have a button to test it with. I’ll try to get some testing done next weekend.MMM-FullsizeCover
Check the readme and the guide to get it running. Let me know if it works. ;) -
RE: MMM-PIR does not shutoff sometimes
Depends on position and deflective angle of the sensor. If you think there is nothing it should detect, try it out, leave the room, set a timer and check after 120 (+10) seconds.
-
RE: Error in config file when adding modules, looking for another set of eyes
Hi,
your config is missing a closing bracket
}
in the config of the camera module. To be specific, it seems like the closing bracket of “auth:” is missing.And it also seems weird to me that after “config:” there is no object (in brackets), but that’s how the readme of the module shows the example configuration.
{ module: "camera", position: "top_center", config: { // added this one, maybe missing/wrong in the example? selfieInterval: 3, // Time interval in seconds before the photo will be taken. emailConfig: { service: "GMail", // Email provider to use to send email with a photo. auth: { user: "", // Your email account pass: "" // Your password for email account } // this one was missing } } // added this one, maybe missing/wrong in the example? },
And also a closing bracket missing for the config: of the voicecontrol module:
{ module: "voicecontrol", position: "bottom_left", config: { models: [ { keyword: "Show Camera", description: "Say 'Show Camera' to display camera", file: "showCamera.pmdl", message: "SHOW_CAMERA" }, { keyword: "Hide Camera", description: "Say 'Hide Camera' to hide camera", file: "hideCamera.pmdl", message: "HIDE_CAMERA" }, { keyword: "Selfie", description: "Say 'Selfie' when camera is visible", file: "selfie.pmdl", message: "SELFIE" }, ] } // this one was missing },
Some thing’s to consider: Use one sort of quotes throughout the file for strings of text. The config.js uses
"
while some module’s authors use'
. Usually not a problem, but it’s cleaner to stick with one and helps minimize problems, for example when we look at this line from your config (which is not a problem but shows where it gets complicated):description: "Say 'Show Camera' to display camera",
Some good ideas for people running into this to check their configs:
- remove the last added module, run again, see if the problem is gone, if so, re-add the module and check brackets and commas, if not, re-add it, it wasn’t the source of the problem, check the next one.
- or directly go through your file and check that every opening bracket has a matching closing bracket.
Some text editors will highlight the closing bracket if you select the opening bracket be setting the cursor to it, or the other way round (Sublime Text does).
-
RE: Show a picture infont of everything with a button
Did you check MMM-Button and do you want to use it? Is the button already connected?
btw.
show a picture infront of my magicmirror while their still loading in the background…
While what is loading in the background? I see two different things and demands here:
a) image goes on or off on button press
b) mirror starts with image and when everything is loaded, the image goes away -
RE: Want to turn off my monitor
Don’t forget, you can also hook up the monitor to a PIR switch directly (check wattage allowed for the PIR switch!) or to a light/power switch or even a combination.
I didn’t want the monitor to be in standby when I’m not home for a week, so the PIR directly controls power to the monitor to completely switch it off instead of it going to standby. And the PIR is behind a switch, too.
-
RE: MMM-PIR does not shutoff sometimes
-
What is a PIR Sensor? It’s Passive Infrared Sensor, that measures infrared light radiation from objects, that is: heat radiation.
-
Does a PIR sensor sense light change? No. But it can detect a light source if it heats up fast enough when it’s on. So it could detect an old lightbulb – if that lightbulb is in view – but probably not a cold LED.
-
Does a PIR sensor sense motion or movement? No. If you drag something through it’s field of view that is not emitting heat, the sensor won’t detect it.
So, there’s probably something in its field of view that is emitting heat. A hot lightbulb, a radiatior, an animal, someone sitting there, even though that person seems motionless. If you’re watching it, it may be detecting you.
Does it turn off after ~ 120 seconds if you really leave the room, close the door, stay behind the sensor? Maybe it’s not correctly set up or cables aren’t correctly attached? Or it’s a faulty PIR …
-