Magic Mirror

Pi Zero being used as the compute for a ‘magic mirror’

http://michaelteeuw.nl/post/83188136918/magic-mirror-part-v-installing-the-raspberry-pi

Update / upgrade raspbian

Install kweb (Minimal Kiosk Browser) or Chromium

wget http://steinerdatenbank.de/software/kweb-1.6.8.tar.gz
tar -xzf kweb-1.6.8.tar.gz
cd kweb-1.6.8
./debinstall
sudo apt-get install chromium-browser

Install Apache

sudo apt-get install apache2 apache2-doc apache2-utils

Install PHP

sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache

Navigate to web folder, create the magic mirror folder and set the permissions

cd /var/www/html
sudo mkdir mm2
sudo chmod ugoa+w mm2

copy mm2 files to the directory

Set autostart to prevent screensaver/powersaver and launch the local web browser

Edit the following file

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Add oin the details below

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@sh ${HOME}/.config/lxsession/LXDE-pi/autokey.sh
@xset s off
@xset -dpms
@xset s noblank
@unclutter -idle 0.1 -root
@kweb -KJE http://127.0.0.1/mm2/index.php

or

@/usr/bin/chromium-browser --noerordialogs --disable-session-crashed-bubble --disable-infobars --kiosk http://127.0.0.1/mm2/index.php