Skip to content

DiegoVinasco/LiteGlass-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiteGlass-v2

A mirror with a UI that displays time, date, and weather information. The UI can also display a QR code for synchronizing with smart devices and scheduling applications, for instance, deactivating an alarm clock app by scanning a QR code. Also features a light or dark theme.

left side view of the mirror right side view of the mirror with QR code back view of the mirror bottom view of the mirror

Inspired by MichMich's Magic Mirror.

Weather updates are provided by OpenWeather.

An older Pythonic version of the project is available here.

Materials

This mirror is constructed from a:

  • Raspberry Pi 2
  • Visio 21" HD TV
  • Acrylic 1-way mirror
  • A wooden frame (made with simple pine and some varnish)

Installation

First, install xautomation and git on the Raspberry Pi

sudo apt-get install xautomation
sudo apt-get install git

Clone this repository

cd home/pi
git clone https://github.com/DiegoVinasco/LiteGlass-v2/

Edit the following lines of the HTML document to configure the application

var country     = "";   // the country code for http://api.openweathermap.org
var city        = "";   // the city code for http://api.openweathermap.org
var unit        = "";   // the unit code for http://api.openweathermap.org
var apikey      = '';   // the api key for http://api.openweathermap.org
var alarm_start = 6;    // start displaying qr code at this time
var alarm_stop  = 8;    // stop displaying qr code at this time
var darkTheme   = true; // light or dark theme

Edit your Raspberry Pi autostart file to open the program on startup

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

Add a new line with the path to the run.sh project file

home/pi/LiteGlass-v2/run.sh

Now the application should start up automatically

License

This repository is licensed under two licenses

The images in the ./img directory are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Creative Commons License

The rest of this work is in the public domain and free to use under the unlicense.

Releases

No releases published

Packages

No packages published