Giter Site home page Giter Site logo

homemirror's Introduction

Home Mirror

Web-based home mirror, inspired by Hannah Mitt's project.

Install

  1. Install Meteor

  2. Clone this repo

    $ git clone [email protected]:lambtron/homemirror.git
    
  3. Deploy to Meteor

    $ meteor deploy <your-name-here>.meteor.com
    
  4. Point your tablet to the URL and enable Kiosk mode

  5. Follow Hannah Mitt's tutorial for physically building the mirror or mine below

Customize

I decided to use Meteor for its real-time nature and ability to organize server and client side JavaScript in the same file.

Every "widget" on the screen can be found in the ./widgets folder. Let's look at the time widget as an example:

  1. Create the folder time with ./time/index.html and ./time/index.js

  2. Define the time template in index.html

    <template name="time">
      <div style="font-size: 3em">
        {{time}}
      </div>
    </template>
    
  3. Define the logic for rendering the time template in index.js

    if (Meteor.isClient) {
      Template.time.helpers({
        time: function() {
          return Chronos.liveMoment().format("hh:mma");
        }
      });
    }
    
  4. Add the time template to ./client/index.html

    <head>
      <title>Mirror</title>
    </head>
    
    <body>
      {{> date}}
      {{> time}}
      {{> weather}}
      {{> news}}
    </body>
    

Have fun!

Hardware

I followed Hannah's guide pretty closely.

Items

Directions

1. Cut a hole in the black construction paper for the device's viewport

Make sure the size of the hole that you are cutting is the size of the device's viewport and not the size of the device itself. You're going to put the two-sided adhesives along the edge of the construction paper that will stick to the device's bevel.

2. Glue the construction paper onto the back of the mirror

Use the spray adhesive at about 6-8 inches away from the construction paper. Don't get the construction paper too wet. After several seconds, slowly stick the sprayed side onto the back side of the mirror.

3. Add adhesive strips to the back of the construction paper around the edge of the device's viewport cutout

4. Set the device up.. last chance to touch your device!

The two (free) apps I needed to download were:

  • Stay Alive!: for preventing the device from sleeping
  • Kiosk Browser: so that you can set the browser to the Home Mirror web app in full screen mode (probably not even necessary, but this is my first Android device and I struggled with even the most basic navigation)

Set the Kiosk Browser to point to your Home Mirror web app domain.

5. Stick the device onto the two-way adhesive strips

Voila!


If the final product is facing the ground, this is how and where the pieces fit together:

The completed mirror:

License (MIT)

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

homemirror's People

Contributors

lambtron avatar

Watchers

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