Or follow the extensive step by step tutorial here: https://forum.magicmirror.builders/topic/236/complete-setup-tutorial
Read the statement by Michael Teeuw here.
Posts
-
RE: MagicMirror 2 only works with DISPLAY=:0 npm start command
-
RE: Strange weather bug?
Is your rpi setup for the correct timezone and locale? Please check the Complete Setup Tutorial, specifically the part on Booting up and Configuring.
-
RE: (2.1.0, API) Revising the Show/Hide mechanism
It’d be nice if there was also a way to override the array completely. What I mean is, if Module A hides a module, then Module B says to unhide, even if the locks don’t match, having an override, or ‘force’ flag, that would be handy. This applies for multiple modules as well, if Module A hides something, then Module B does the same, then allow either of them, or potentially even a completely different module, to overwrite the array and show the module again.
This wouldn’t be the default behavior, but having a ‘force’ flag would then allow the user to specify that.
-
RE: Deploying to heroku troubleshooting
Um, not to sound ignorant, but … what’s ‘heroku’ ?Guess I could look it up. It looks like it’s a cloud based application host. So I have to again point at the information posted on the main project page, where we point out that MagicMirror² is proven to run on Raspberry Pi versions 2 and 3, using the Rasbian OS. The installation script and necessary applications are all proven to run on that. Anything else and unfortunately it’s a total unknown. Chances are you are the first to do that on Heroku, and as such, you’re going to have to do some digging and figure it out. Using anything else, and there is no guarantee that any of the necessary pieces are in place, or that they can actually run on that platform.
Having said that, I would start by looking at your log file (
pm2 logs) or pull up the code through a browser from a different machine and look at the console output, check for error messages. -
RE: MMM-Soccer - Standings, Schedules and Top Scorers
I recommend putting those files in a GitHub repository to make it easier for people to pull the files, instead of having to manually create them like that.
-
RE: MMM-SwissTransport
Oh, I just noticed that his post where he said he change it was also done on May 3rd … so perhaps that original version no longer exists, which sort of defeats the purpose of using git …
-
RE: MMM-SwissTransport
@flooo, you can look at the repository’s commit history (https://github.com/Bangee44/MMM-swisstransport/commits/master), and then checkout a specific revision by using the SHA1:
git checkout <sha1>Note that you may need to use the full sha1 value, not the truncated one.For example, the last commit on May 3rd is
146a6ce. If you click on that, it expands that commit and you can see the full sha1 value as146a6cec2aaa5007255cb157ed415ba180639354in the upper right. So your checkout command then becomes:git checkout 146a6cec2aaa5007255cb157ed415ba180639354This is of course done from INSIDE the module’s folder!
-
RE: Complete Setup Tutorial
Installing MagicMirror²
Thanks to @MichMich and his outstanding installation script, installing MagicMirror² is pretty straight forward.
Step 1
After you’ve configured and updated your Raspberry Pi and rebooted, launch a Terminal window again and type in
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"This will start the installation process for you:

Step 2
A few configurations still need to be done on the Raspberry Pi, specific for MagicMirror². Let’s start with rotating the display vertically. For this, you’ll need to edit one of the boot configurations. (Please note: If you plan on running MagicMirror² as a landscape (or wide) display, you do not need to do this.)Type in
sudo nano /boot/config.txtand add the following to the file. Where you add it doesn’t really matter:# Rotate display vertically display_rotate=1Press
CTRL-Xwhen you’re done, and sayY(es)to saving the changes.
Step 3
Let’s disable the screen saver and screen blanking as well. This needs to be done in two places. First in the autostart configuration:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostartAnd add the following to the bottom of the file:
@xset s noblank @xset s off @xset -dpms
Next in the X-windows manager configuration:
sudo nano /etc/lightdm/lightdm.confScroll down to the
[SeatDefaults]section and look for thexserver-commandline below that. Change the line to look like this:
xserver-command=X -s 0 -dpms(so you’re removing the # on the front, and adding the missing bits at the end.) Again, hitCTRL-Xand sayY(es)to saving the file.
Step 4
A Raspberry Pi is configured to automatically shutdown parts of the hardware that aren’t actively in use. This includes the WiFi driver. This will cause MagicMiror² to occasionally fail to fetch updates for things like the newsfeed, weather, and others. You can disable the power saving feature for the WiFi from the interfaces configuration file:
sudo nano /etc/network/interfacesFind the
wlan0section and addwireless-power offbelow it:
Once you’re done with that, reboot the rpi one more time with
sudo rebootand when it comes back up again, open a Terminal window and type iniwconfigand you should see that the Power Management is now off:
At this point you have completed the basic install for MagicMirror². The next step is to create a valid configuration file for it so you can test it out. You can do that by going into the MagicMirror’s
configfolder:pi@magicpi:~ $ cd MagicMirror/config pi@magicpi:~/MagicMirror/config $ cp config.js.sample config.jsYou can now try to start MagicMirror².
pi@magicpi:~/MagicMirror/config $ cd $HOME/MagicMirror pi@magicpi:~/MagicMirror $ npm startIf everything went well, your screen should load up the MagicMirror² interface. The weather module will tell you that you don’t have a valid APPID, but once set, your screen should look like this:

Congratulations!
-
RE: Automatic installation
Then there’s still something wrong with your base OS install. We can go back and forth with this and not figure out what’s going on. That’s not ideal. A better solution is if you can start by following the complete tutorial that I wrote up yesterday (and will complete today). The parts already written is how to get the Raspberry Pi 3 setup, updated, and configured properly before you even try to install MM² on it. Please try to follow the steps there before you try to run the automatic installer again. There are a lot of step-by-step instructions complete with screen captures for you to follow along with.
https://forum.magicmirror.builders/topic/236/complete-setup-tutorial
