Skip to content

apexskier/magic-mirror

Repository files navigation

Magic Mirror

One of many, this one by apexskier.

Running

Three things are run: the central server, the python opencv component, and the client (chromium).

Following everything in my setup notes should bring all this up on boot.

Setup notes

I started with base image of Raspbian Jessie Light.

Install tools

sudo apt-get update
sudo apt-get install git vim openbox-session tmux terminator

Clone Project

git clone git@github.com:apexskier/magic-mirror

Make sure this is cloned in the login user's homedir.

Update Configuration Files

Each file in the raspbian directory should be linked or copied to it's real location (second line in each file).

Setup Auto Login

http://elinux.org/RPi_Debian_Auto_Login

Install Web Browser

sudo apt-get install iceweasel

http://conoroneill.net/running-the-latest-chromium-45-on-debian-jessie-on-your-raspberry-pi-2/

Install OpenCV

I used python 3 for everything.

http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/

OpenCV Raspberry Pi camera

http://www.pyimagesearch.com/2015/03/30/accessing-the-raspberry-pi-camera-with-opencv-and-python/

Install Node

For the Raspberry Pi 2, use the ARMv7 node build.

https://nodejs.org/en/download/stable/

Build Client

npm install
$(npm bin)/gulp build

Configure Display

/boot/config.txt

overscan_left=35
overscan_right=30
overscan_top=186
overscan_bottom=230
display_rotate=1

/etc/kbd/config

BLANK_TIME=0
POWERDOWN_TIME=0

Install Unclutter

sudo apt-get install libev-dev

https://github.com/Airblader/unclutter-xfixes

I had to hack the makefile to disable man page generation. Even after installing asciidocs there were failures when linting the xml file.

Setup TV Power Schedule

tv.cron contains the cronjobs to turn the tv on and off to save power. Edit it as you please and run the following (or do it manually) to set up.

crontab -l | cat - tv.cron | crontab -

Dev Resources

OpenCV Motion Tracking

About

My totally original Raspberry Pi magic mirror.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published