GithubHelp home page GithubHelp logo

liteglass-v2's Introduction

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.

liteglass-v2's People

Contributors

diegovinasco 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.