Code Monkey home page Code Monkey logo

imirror's Introduction

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

imirror's People

Contributors

druanae avatar gr3q avatar

Watchers

James Cloos avatar Jeannette Chin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.