Giter Club home page Giter Club logo

lookingglass's Introduction

LookingGlass

A simple HTML / CSS and/or PHP, grid template for smart mirrors. This plain black back ground, nine (9) grid template is intended for the maker that may not be a JavaScript developer. This simple page refreshes itself, but could be more real time with JavaScript and some web workers. That is not the intent here.

This simple dash page is intended to be ran on a Raspberry Pi but could be used most anywhere. These instructions are not intended to support every situation. They should be enough to get you started though.

Raspberry Pi & Linux

Assuming you have a fresh running Raspberry Pi and can SSH into it from a command line, proceed with the steps below. If you do not have a running Raspberry Pi. Might I suggest PiBakery. http://www.pibakery.org/

Let's update the operating system.

sudo apt-get update
sudo apt-get upgrade

Install supporting software

sudo apt-get install apache2 -y
sudo apt-get install php libapache2-mod-php -y
sudo apt-get install php7.0-curl
sudo apt-get install chromium-browser
sudo apt-get install ttf-mscorefonts-installer unclutter x11-xserver-utils

Configuring the Raspberry Pi to stay awake and start the Looking Glass

cd .config/lxsession/LXDE-pi/
sudo nano autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@/usr/bin/chromium-browser --start-fullscreen --incognito --disable-session-craon-crashed-bubble --disable-infobars http://localhost/lookingglass.php
sudo nano /etc/xdg/lxsession/LXDE/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
#@xscreensaver -no-splash
@xset s off
@xset -dpms
sudo nano /etc/lightdm/lightdm.con

Add - xserver-command=X -s 0 dpms under [Seat:*]

Place lookingglass.php or lookingglass.html in this folder.

cd /var/www/html

Reboot

shutdown

lookingglass's People

Contributors

theneverworks avatar

Watchers

James Cloos 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.