Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.

HomeControl MirrorUI

Robert Morigi-Eades edited this page Feb 26, 2017 · 4 revisions

Overview

A web interface in HTML that updates via Javascript within a web browser. White on black interface to be displayed on a screen mounted behind a one-way mirror.

Inspiration taken from Magic Mirror.

Interfaces

server-interfaces Figure: HomeControl-mirrorUI interfaces to HomeControl-server

Customisation

Main screen

In order to customise the modules and their respective locations on the rendered page, the following section of the main.html should be updated accordingly.

window.onload=function() {
    startClock('top-left');
    startWeather('top-right');
    startNews('bottom-left');
}

News module

A rudimentary configuration has ben put in place for the news sources. To change this, add to the array the id of the news source(s) required from the https://newsapi.org/sources website. Example shown below:

var sources = new Array("bbc-news")
var sources = new Array("bbc-news", "associated-press")
var sources = new Array("new-scientist", "the-verge", "national-geographic")
Clone this wiki locally