Skip to content

Druanae/iMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iMirror Project

Raspberry Pi Powered Smart Mirror Built in Python 3.6

Installation and Updating

Code

If you have git installed, clone the repository.

git clone https://github.com/Druanae/iMirror.git

Alternatively download a zip from the Repository page.

Navigate to the folder for the repository.

cd iMirror

Install Dependencies

Global

Packages:

  • Python 3.6
  • tkinter

Ensure you have pip installed.

sudo pip install -r requirements.txt

Font

Install the Lato fonts in the font folder.

mkdir ~/.fonts
cp fonts/* ~/.fonts
fc-cache -vf .fonts

Arch Linux

sudo pacman -S python tk

Debian/Raspbian

sudo apt-get install python python-imaging-tk

Configuration

Add your API Token

Go to darksky.net and sign up for a developer account.
Edit interface.py and replace the contents of WEATHER_API_TOKEN with the secret key provided on Darksky's account page.

WEATHER_API_TOKEN = '[TOKEN]' # replace with secret key provided at https://darksky.net/dev/account/

Disable Screenblanking

If you are running Raspbian Jessie or Stretch then you will need to disable screenblanking.

XScreensaver

Installing xscreensaver is the easiest method of disabling screen blanking. Once installed you should be able to edit screensaver preferences in the Pi's Preferences menu.

sudo apt-get update
sudo apt-get install xscreensaver

Running

To run the application use the following command in the root of the repository:

python interface.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages