![]() ![]() Open a Terminal window (Mac) or Command Prompt (Windows) and without being logged in to your Pi through SSH, enter the following command ensuring that you have your Pi’s IP address in there and that you have that last full stop.You’ll find a list of resources for further customisation at the end of this step. There are unlimited possibilities regarding this so the next steps are just an introduction. Now you’ll need to customise the modules displayed. You should now have a remotely accessible Pi which automatically boots into Magic Mirror displaying the default modules and doesn’t sleep. Reboot your Pi, you can do so by using:.Save the changes using CTRL X and enter Y after the saving prompt.Anywhere in config.txt add the following:.If you want to change the orientation of your Magic Mirror, you can follow the following steps which are optional: Enter the following to save the current state of all the scripts running via PM2:.Test that the script is executable by entering the following:Īfter a short while, you should get confirmation that the script is executable.Close the script by pressing CTRL X followed by Y when prompted to save and then Return.Add the following in the script window:.You’ll now be presented with a script window inside Terminal. Enter the following to create a script that will use PM2 with Magic Mirror:.You’ll be prompted with instructions inside Terminal to copy/paste commands and follow them.To start PM2 on boot enter the following:.This will install PM2 which is a node.js application which allows you to keep applications running constantly and to automatically reload them amongst other things. To start Magic Mirror when the Pi boots up run the following command from your host computer:.Do not interrupt the task or you risk getting a corrupted Pi.Ĭp config/config.js.sample config/config.js The installation step for npm install will take a long time, often with no terminal activity. ![]() Clone the Magic Mirror repository by entering:.Download and install the latest Node.js version by entering the following commands:Ĭurl -sL | sudo -E bash - sudo apt install -y nodejs.Ssh When prompted enter the Pi’s password which is raspberry by default but you should’ve changed it already in the setup process. Open a Terminal window (Mac) or Command Prompt (Windows)and enter the following making sure you replace the text with the IP address that you noted earlier.:.This is necessary because once it sits behind a mirror hanging on a wall, it won’t be very accessible!įor the next steps, we will connect to the Pi from our host computer. We’ll need this to be able to access the Pi from another computer. Go to Preferences > Raspberry Pi > Configuration > Interfaces and enable SSH.It will be next to inet addr and it will look something like .X. In the text block that will appear, find the IP address. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |