That is an incredibly clean back to your mirror. It looks great. Well done!
Read the statement by Michael Teeuw here.
Posts
-
RE: My Full-Length Smart Mirror
-
RE: Raspberry 4 with two 24-inch screens ?
@Cbob - It shouldn’t require much modification. Just avoid the following positions in your
config.jsfile:fullscreen_above,fullscreen_below,bottom_center,middle_center,top_center,top_barandbottom_bar. Those positions are centered on the desktop and will straddle the break between your monitors. That leaves you six positions to put modules. You should be okay.Now… if you want to get really advanced, you can modify the framework to add locations just to the left and right of the break between the monitors. That will involve adding new locations to the
index.htmland some significant modification of the CSS file. But it is possible. I would suggest getting your mirror built first and then investigating this possibility. -
RE: Please help
For quick reference, the guide to using pm2 to automatically start the mirror process can be found here.
I remember having trouble getting the UI displayed on my Raspberry PI 2, but I can’t remember what I did specifically to get it up and running. Assuming you are using a keyboard & mouse connected directly to the Pi, try this:
- Start the Pi’s graphical interface (if it is not already running) by entering
startx. You should eventually see a desktop, with a mouse cursor, menu, etc. - Open a terminal window using the Menu in the upper left.
- In that terminal window, type
cd ~/MagicMirrorfollowed bynpm start.
That should at least give you your interface. If you are using SSH to issue commands to your mirror remotely, try the following:
- Once you log into the Pi, navigate to the Magic Mirror directory like so:
cd ~/MagicMirror - Start the magic mirror and specify that you want it to display on the monitor attached to the Pi:
DISPLAY=:0 npm start
It has been a while since I was playing around with my RPi 2. I think these will help.
- Start the Pi’s graphical interface (if it is not already running) by entering
-
RE: Update Error of v.2.2.0 :(
@fox Did you try reinstalling electron via the instructions given? ie, delete
/home/pi/MagicMirror/node_modules/electronand reinstalling?This should be close:
cd /home/pi/MagicMirror/node_modules sudo rm -rf electron cd .. npm install electron@1.4.15After that, I suspect a
npm installand thennpm start. -
RE: Full Length Bathroom Mirror Build
That is quite the tub.
And the mirror is pretty awesome, BTW.
-
RE: Transparent glass in front of Acrylic Sheet to hold it together ?
Be sure to add a little room in your frame for wood expansion. Changes in humidity (and the fact that you’ve cut the wood into pieces) will make it expand slightly. If you don’t account for this, the wood will push on the sides of your acrylic, warping it.
It shouldn’t take much to give it enough slack. Maybe half a centimeter all around.
-
RE: Please help
@moris said in Please help:
Pi @ raspberrypi: ~ $ cd MagicMirror
Pi @ raspberrypi: ~ / MagicMirror $ cp config / config.js.samaple config / config.js
Cp: target ‘config.js’ is not a directory
Pi @ raspberrypi: ~ / MagicMirror $There’s a problem in your second command. There should be no space between
configand the slash. There needs to be a period at the end of sample. It should read like so:cp config/config.js.sample config/config.jsThat line breaks down into command-source-destination. “Copy”-“sample file”-“destination file”.
cpconfig/config.js.sampleconfig/config.js -
RE: keep running against a wall
Please use the markdown features to make your code easier to read.
The name of the module must match the name of the Github project and (more importantly) the name of the directory where the module resides. Try
module: “MMM-rainfc”,. Also, it looks like you closed the config of the rainfc module, but you didn’t close the module itself. So:{ module: “MMM-rainfc”, position: “top_right”, header: “Rain forecast”, config: { lat: “52.525”, lon: “5.71806”, width: 200, height: 150, lineWidth: 2, lineColor: “#e0ffe0”, fillColor: “#e0ffe0”, maxPower: 300, rainText: "Tot: ", noRainText: "Geen regen tot: ", nrOfTimeLabels: 5 // advised values: 2-5 } }, -
RE: My hallway 27" MagicMirror! (Sweden)
Looks pretty sharp! Great job.
-
RE: Safest method for attaching boards to back of display
I found a bulk pack of wooden popsicle sticks at my local craft store (Michael’s, I think). Something like 500 for a couple of dollars.
I hot glue’d two of them to the back of my Pi and I intend to do the same to the monitor circuit boards later this summer. You can hot glue the other side of the sticks to the monitor or use some other adhesive.
Another possibility: those credit card offers you get in the mail with the fake credit card included? Grab the sticky industrial booger from the back of those cards. It’s pretty strong, easily formed and temperature resistant.
-
RE: The US Election
I’d rather not talk about it, honestly. This is one of the few places that is tightly focused on its intended purpose. I really would like to keep it that way.
Although a module to track polls and/or election results would be kind of interesting.
-
RE: Modifying Magic Mirror for a gift...
In my experience, the technique used in the Complete Setup Tutorial no longer works as intended. In order to keep the mirror on all the time, I recommend the following:
- Install X-Screensaver by entering
sudo apt-get install x-screensaver - Turn off your MM briefly by clicking Alt-Q. (If you’re using PM2 to maintain the process, enter
pm2 stop mmor whatever). - Using a mouse, configure X-screensaver to not use a screensaver. I believe you can access the X-screensaver configuration interface by clicking on the Raspberry icon -> Preferences -> Screensaver. The drop-down to select the screensaver mode will have an option for “disable screen saver”.
- Close the configuration panel and then run your MagicMirror process normally.
Credit goes to @sgtwtf for this suggestion.
- Install X-Screensaver by entering
-
RE: First attempt...
Looks good! Are you driving it with a Pi or something with more umph?
-
RE: Any way to fix this?
It looks like the power traces lengthwise along the strip. If you gently pop the monitor out of the frame, you can probably identify where the contacts are supposed to meet up on the side of the monitor.
You may be able to use a very small dab of hot glue in the middle to keep it in place. Or one of the industrial boogers from a credit card offer. Power should follow the trace, so even if it has to go out a half millimeter, it should still conduct. Hold it down when you put it back into the frame, naturally.
It also looks like you only need that one trace from group to group. You could try bridging the pads on the monitor with a scrap piece of wire and see if that gives you power to the last 3rd of the monitor. If it work, solder the wire in and see if that give you your monitor back.
-
RE: Magic Mirror Does Not Close
You can stop them all at once by entering
pm2 stop all -
RE: My 1st Smart Mirror Quest
Nicely done! I love the happy surprise with the monitor LED. And good job with the heat sinks.
-
RE: Newbie MM Husband trying to make a MM for wife for XMAS
Magic Mirror Basics, part 1: Logging in remotely.
This usually means establishing a connection from your laptop or desktop to your magic mirror and using the command line to make changes to your magic mirror. Once you’ve built your mirror, it’s very inconvenient to make changes directly on the mirror. You have to plug a mouse & keyboard into the Pi which is usually buried behind the glass & frame. It’s much easier to establish a connection from your main computer to the Pi and use that to make changes.
Your goal here is to establish what’s called an SSH connection between your nice computer and the wimpy computer that drives the mirror. If you’re using Windows, I suggest downloading & installing Bitvise SSH on your main computer. This will ease the process of establishing the connections.
The Raspberry Pi has the capability to host SSH connections, but you need to tell it to turn this feature on. Plug a keyboard into your Raspberry Pi and press
Ctrl + Alt + t(control, alt & tee). That will open up a window with command line access to your Raspberry Pi. Once you see the window with the command line, entersudo raspi-configand pressenter. You’ll see a very basic interface appear with some options. Use the arrow keys and the enter key to navigate down toInterfacing Optionsand pressenter, then navigate toP2 SSHand pressenter.When it asks you if you want the SSH server to be enabled, make sure
<Yes>is highlighted in red and then pressenter. It will confirm your selection, then kick you back to the main menu. Use theTABbutton to navigate toFinishand pressenter. Your Pi is now ready to receive connections.You will need to know your Raspberry Pi’s IP address so you know how to connect. Enter the following on the Pi’s command line:
ip a | grep wlan0and pressenter. It will spit back two lines of text, the 2nd one should look like this:inet 192.168.0.10/24 brd 10.0.0.255 scope global wlan0That string of numbers after the word
inetbut before the/24is what you’re looking for. In the above case, the IP address is192.168.0.10. Yours may be different. Write it down, 'cuz you’ll need it.On your main computer/laptop, open up Bitvise and create a new profile. Name it something easy, like “Magic Mirror” and save it to your desktop. In the Host text box, enter the IP address you just wrote down. The Port value is 22. Over on the right, the username box should contain
pi. Initial method is “password”. Once you’re ready, click on “Log in” at the bottom of the Bitvise app and it will establish a connection to your Pi and ask you for a password. By default, the password israspberry(assuming you didn’t change it).It should automatically open two windows. The first will be a command line window. Congratulations! You have remotely logged in to your magic mirror. The other window is a file transfer window. You can use this to upload pictures, sound files, movies, etc. to your mirror (or download things too). The left side is your desktop/laptop and the right side is your mirror. You can copy either direction by dragging files & folders from one side to the other.
You now have remote access to your mirror.
-
RE: Another mirror spec post I am sure
@RE_Magic_Mirror That’s a bit more specific than we usually consider around here.
That 2nd variable, the transmittance visible, is usually about all we consider. I just bought a mirror that was also 11% transparent and it works great. It is maybe a little dim in a brightly lit reception area, but I’m certainly not going to send it back.
At most, you might want to go up to 20% transmittance, but I would use that only in areas that are in bright sunlight. For your typical household / interior mirror, I think you’re good to go with that mirror.
-
RE: Create another PM2 Script?
Okay, a couple things.
sono.shis your script that starts your process.~is the shortcut to the pi user’s home directory, also known as/home/pi. In order to run scripts from the command line, you have to precede the script name with./So let’s take a moment to verify the state of your pi. Change to the home directory and pull up the file list with a couple switches to see if
sonos.shexits:pi@raspi:~ $ cd ~ pi@raspi:~ $ ls -lh sonos.sh -rwxr-xr-x 1 pi pi 26 April 15 11:50 sonos.shThere will be some variation in your results. If you see the phrase “No such file or directory”, then the file does not exist at that location. Also, you may not have any “x” entries when you do see the file listed. If so, the file is not marked executable, so it won’t run. You can fix this by typing
chmod +x sonos.shI’m a little unclear as to what commands exactly are in your
sonos.shfile. Could you please entercat sonos.shand reply with the results?Adding the script to pm2 is done by typing
pm2 start sonos.sh. You can then verify that pm2 has picked it up by typingpm2 status all. That will give you a list of the processes that pm2 is controlling. You should see both yourmm.shprocess and yoursonos.shprocess.Give that a go and report back to us.