A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 0 Votes
    39 Posts
    7k Views
    @BKeyport said in Config Error: @evroom “convention” isn’t the right word here, perhaps. I’m almost leaning to “peer pressure” perhaps? Doing it because it seems everyone else is? I had to read the beginning of the thread first before starting ‘name-calling’ :-) And perhaps had to address it to the thread starter @PHAGE-GOV, for learning purposes Some people treat the config.js file as code and think that they are actually coding. In principle a JS file is a text file containing JavaScript code, so it is a bit misleading, although it contains “var config =”, which suggests it being a part of some code. IMHO it would be better to use the json extension, so config.json, as it is based on JSON and stores data structures and objects in this format. One should’t care less how coders use variables in their programs (as Sam said: “make names meaningful, use case where appropriate”, especially if you want to keep it maintainable or want to hand it over to someone else), but in case of config.js one should make at least a bit of an effort to keep it simple and understandable. Again: IMHO. In my book this is for example a no-go: { location: "New York", locationID: "", appid: "YOUR_OPENWEATHER_API_KEY" } This is just waiting for an accident to happen. What is wrong using locationName, locationId and apiId ? Or location, location_id and api_id ? Probably nitpicking from my side, but it hurts my eyes :-) I would say “make names meaningful, use case where appropriate and keep it consistent”. I also know it it all voluntary work and it does not cost a dime (unless you donate something to the author, like I did) and therefore one is not really allowed to complain :-) I hope some constructive criticism is allowed though. Do not want to offend anyone. That being said, just enjoy your MagicMirror. :-)
  • 0 Votes
    3 Posts
    367 Views
    18W should work.
  • 0 Votes
    8 Posts
    3k Views
    Step 1: Calibrate your PIR Sensor. You may use a small circuit for testing ! [image: 1589955905997-proximity_pirtestbb.gif] Step 2: Connect your PIR sensor to Pi [image: 1589955545528-8.a.rpi-pir_bb.jpg] Step 3: Install MMM-PirSensor module https://github.com/paviro/MMM-PIR-Sensor Hope it helps !
  • 0 Votes
    8 Posts
    2k Views
    @sdetweil awesome, thank you so much sam!!
  • My first mirror (NYC)

    Unsolved Show your Mirror advice new Jan 4, 2017, 5:52 PM
    0 Votes
    5 Posts
    4k Views
    Here is my 2 cents. Everything you spec’d will work fine. As for the monitor, just about anything will work. There really isn’t a “best” monitor. What do you want to display and where do you want to display it? Quite often builders will get a monitor that is 1/4 the size of the mirror and mount the monitor so they are displayed in the upper left or right of the actual mirror. Is this to be installed as a bathroom mirror? Do you want to stare at the weather report in front of your face while you are trying to shave? As for the best “quality” monitor, anything you buy will work great. Figure out the size you want then look at how the thing is rated by customers and professionals. People here are from all over the world. Many in the U.S. use Craigs List to find monitors. Don’t install pm2 until you are comfortable that all of your modules are working correctly. There is good info that can be had from starting the mirror from a terminal session. Buy the Raspberry Pi, find an old monitor laying around and start playing. The monitor doesn’t even have to be HDMI. You can get an adapter to go from VGA to HDMI . https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_electronics_sr_pg1_2?ie=UTF8&adId=A1023898KTBOLVX626S3&url=https%3A%2F%2Fwww.amazon.com%2FActive-Adapter-Benfei-Converter-Gold-Plated%2Fdp%2FB01KLKQN9U%2Fref%3Dsr_1_2%3Fs%3Delectronics%26ie%3DUTF8%26qid%3D1483978418%26sr%3D1-2-spons%26keywords%3Dhdmi%2Badapter%26psc%3D1&qualifier=1483978418&id=4118648475855561&widgetName=sp_atf You don’t even need a keyboard or mouse. You can VNC into the Pi. In my opinion you are over thinking this. Decide how big you want the mirror and frame to be based on where it will be placed then worry about the monitor size.