Difference between revisions of "Raspberry Pi MagicMirror"

From LVL1
Jump to navigation Jump to search
Line 68: Line 68:
 
cd .. change directory to one directory above
 
cd .. change directory to one directory above
  
sudo  
+
sudo XXXX super user do where XXXX is the command you want to run as a different user
 +
 
 +
sudo !! [read as sudo bang bang] saves you time by executing the previous command as sudo
 +
ls list
 +
ls -l list with details
 +
 
 +
nano the program that we'll use to edit text
 +
 
 +
to edit the mispelled ethernet on the main page, type
 +
nano ~/.conkyrc
 +
not that anything that starts with a # is commented and the computer doesn't do anything with that line, so you can always type notes to yourself
 +
Let's change the update interval from 2.0 seconds to 5.0 seconds and note how the display flashes with updates every 5 seconds instead of every 2
 +
Once edited from 2.0 to 5.0 press CONTROL + O to save the file to Output
 +
An error should appear!  We should have started this with sudo
 +
Type CONTROL + X to exit, you will be prompted to save the output, press N for No to discard changes
 +
now you can type either
 +
sudo nano ~/.conkyrc
 +
or the shortcut is
 +
sudo !!
 +
The editor should open, make the same changes and press CONTROL + O to output, you should see a confirmation, press ENTER
 +
Go back into the file and change the update_interval to 2.0 instead of 5.0
 +
CONTROL + W is a search feature for "where is" type Eithernet (it is case sensitive) and press enter; correct this spelling to Ethernet
 +
Output your file, save and exit (CONTROL + O, enter, CONTROL + X)
 +
You should now be back at the terminal screen and our Pi should be updated correctly
 +
 
 +
Step 7: Displaying your first magic mirror
 +
To start the magic
 +
 
  
  
 
Step X: Make and adhere your 2 way mirror to the frame
 
Step X: Make and adhere your 2 way mirror to the frame

Revision as of 16:15, 22 February 2017

Materials 1x USB Female to Female 1x MicroSD with adapter 1x Element 10 LCD 1x Element 10 power 1x custom wooden frame 1x document frame with glass (11"x8.5") 1x 12"x12" privacy mirror film 2x self tapping screw

Supplies Sandpaper (for fitting the glass) Adhesive (for adhering the glass to the frame)

Tools Screw driver with phillips head (to remove screws on Element 10 LCD case Powered drill 1/16" bit for pilot hole



Step 1 Gather your materials and select a work area, each work area should have a screw driver and drill

Step 2 Unpackage the glass from the document frame, discard frame (unless you want to keep it) With your wooden frame, fit the glass in and if necessary use sandpaper to make a perfect fit by sanding any edges that prevent it full sitting in the lip Set the glass aside and be careful not to break it. You may want to label it with your name

Step 3: Disassemble the LCD from the frame Remove 4 screws from the back of the frame then pry off the plastic casing. Remove 2 screws from the top of the LCD (where the green circuit board isn't), save the se 2 screws Remove 5 screws from the green circuit board to uncover 2 addition screws in brackets for the LCD identical to the top. Remove 2 screws from the plastic case and the LCD should now pop out. Add the 5 screws back to the circuit board connecting it to the LCD Remove the USB like device in the circuit board that says "CONNECT TO WUSB"

Step 4: Attach the LCD to the wood frame Pre drill pilot holes with the drill and small bit by placing the LCD tabs at the top of the frame (note 2 tabs are inaccessible due to the green circuit boards) The top of the frame with the 2 notched out areas we will call the top from this point forward With the 2 self tapping screws, screw these with a hand screw driver, angling slightly toward the top of the frame The LCD can now freely hang from the wood frame

Step 5: Connect your Pi to the LCD Move into the classroom for this step, take your laptop, LCD, frame, power supply and USB Cable Connect your Pi to the ethernet and a USB cord from the Pi to the LCD in the port that is labeled "CONNECT TO WUSB" Connect your Pi to a power source The Pi should now boot and you should see the Pi desktop You should see that the desktop is inverted and we need to login and change that in the next step

Step 6: Configuring the Pi You can connect with a keyboard and mouse directly to the Pi or you can connect from any other computer With the Pi powered on you should see the IP address at the top right of the stats on the desktop, note the IP address under the mispelled "Eithernet" that should say Ethernet On your desktop with a SSH client such as the MacOS built in Terminal (click on search and type in TERMINAL to load it) or PUTTY on Windows (ChromeOS you may want to Google) type the following to connect to the Pi ssh pi@[IP ADDRESS in noted in step 6.1) Type YES If prompted that you want to connect Password when prompted: magicmirror You are now connected to your Pi

This terminal window allows you to copy and paste commands from this tutorial

Common linux commands we will use cd XXXX: change directory XXXX where XXXX is the folder you want to mkdir XXXX make directory XXXX where XXXX is the folder you want to create cd .. change directory to one directory above

sudo XXXX super user do where XXXX is the command you want to run as a different user

sudo !! [read as sudo bang bang] saves you time by executing the previous command as sudo ls list ls -l list with details

nano the program that we'll use to edit text

to edit the mispelled ethernet on the main page, type nano ~/.conkyrc not that anything that starts with a # is commented and the computer doesn't do anything with that line, so you can always type notes to yourself Let's change the update interval from 2.0 seconds to 5.0 seconds and note how the display flashes with updates every 5 seconds instead of every 2 Once edited from 2.0 to 5.0 press CONTROL + O to save the file to Output An error should appear! We should have started this with sudo Type CONTROL + X to exit, you will be prompted to save the output, press N for No to discard changes now you can type either sudo nano ~/.conkyrc or the shortcut is sudo !! The editor should open, make the same changes and press CONTROL + O to output, you should see a confirmation, press ENTER Go back into the file and change the update_interval to 2.0 instead of 5.0 CONTROL + W is a search feature for "where is" type Eithernet (it is case sensitive) and press enter; correct this spelling to Ethernet Output your file, save and exit (CONTROL + O, enter, CONTROL + X) You should now be back at the terminal screen and our Pi should be updated correctly

Step 7: Displaying your first magic mirror To start the magic


Step X: Make and adhere your 2 way mirror to the frame