Smart MirrorThis blog shows how to enable Smart Mirror using Raspberry Pi. It is used to convert your home/ room/ office work space/ commercial space into your personal assistant with the help of smart mirror that shows up your latest calendar events, weather forecast etc. It can be used as notice board with the help of a mirror.Letâs dive into how to setup this up:1. Components Required for this ProjectRaspberry Pi (Currently used version 2)SD CardWi-Fi dongleMonitorTwo-way Acrylic MirrorFirstly, we need to setup basic installation for Raspberry Pi, you can refer to installation tutorials from https://www.raspberrypi.org/downloads/2. Setting up the Raspberry PIFormat the SD card with FAT32 as format and Copy the Noobs OS into thatConnect Raspberry with HMDI Output monitor (LED/LCD TV or any monitor that takes HDMI input).Connect with the power and wait till Raspberry pi OS setup is completed and restart it.3. Connecting with weatherCreate an account with https://darksky.net/dev and get the API Key to call the weather API to get the weather info (Weather_api_token).4. Real workhorsesmartmirror.py is the python script which does the actual work of showing the events belonging to the signed up user.5. Changes to the scriptReplace the token in smartmirror.py script as follows:Weather_api_token = âXXXXXXXXXXXXXXXXXXXXXXXâ Â #Replace with your token6. Connecting with Google CalendarRun the script âget_cal_eventsâ available at /home/pi/Smartmirror the location.It will open the Browser and it prompts for Google account from which the calendar needs to be imported. Once the authentication is completed, the API key will be generated and stored locally. Please make sure you are connected to the internet while trying to execute this script. This script will update the events for every 20 minutes which can be modified.It will create Image with weather, calendar, clock and run it.7. Configuring Raspberry PiOpen file âsudo nano /boot/config.txtâAdd the following code belowdisplay_rotate=1This will enable the rotation of the screen.If the rotation needs to be disabled just change the value to zero like below.display_rotate=0Then reboot raspberry Pi using the following commandâsudo shutdown âr nowâ8. Future additionsThese functionalities can be added in the future.Face recognition.Touch screen for viewing maps.Video playback.Control electrical components like lights, fans and others using voice commands.
Aziro Marketing
Big things at Aziro often start small - a message, an idea, a quick hello. A real human reads every enquiry, and a simple conversation can turn into a real opportunity.Start yours with us.
Talk to us
+1 844 415 0777
Drop us a line at
info@aziro.com