Giter VIP home page Giter VIP logo

home-smart-mirror's Introduction

Home: Smart Mirror

Home: Smart Mirror is a web frontend for a smart mirror written in HTML, CSS and JavaScript. It supports a very basic configuration, localization and a few widgets.

Configuration

The configuration is done in config.js and contains the possibility to change the localization and a few properties of the different widgets.

Localization

Support for localization is achieved through a single JavaScript file in the lang directory for every language. Simply copy an existing localization file and adjust the strings. Localization of all date and time formats is achieved directly through Moment.js. Please see their website for a list of supported languages.

Widgets

Current date and time

This widget displays the current date in long format (weekday, day, month and year) and the current time (in 24-hour format with seconds).

Weather

The weather data is retrieved from OpenWeatherMap which requires a personal application API key.

Current weather

The current weather can be displayed for multiple locations. The displayed information is the city name, a weather icon, the current, highest and lowest temperature, the current humidity and cloud coverage and today's sunrise and sunset time.

Weather forecast

The weather forecast is displayed for the primary location for the next seven days. The displayed information is the weekday, a weather icon, the highest and lowest temperature, the current humidity and cloud coverage.

Google calendar events

The calendar events are retrieved from Google Calendar using their public Google Calendar API and their JavaScript client. Accessing your personal calendars is achieved through a personal and project specific OAuth 2.0 client ID. The displayed events can come from multiple calendars (from the same Google account) and can be limited to a specific amount of events. For every event the displayed information contains the date (day, month and weekday), the summary and the start and end time.

Public transport

The current public transport data is retrieved from Transport providing access to the swiss public transport API. The displayed information contains the next 5 connections leaving from a specific train station which will pass and stop at a configurable list of other train stations. For every connection the display information contains the departure time, the duration to the last configured stop, the final destination and the platform on which the train will be leaving.

Libraries

Home: Smart Mirror relies on a few external libraries to make coding easier:

home-smart-mirror's People

Contributors

montellese avatar

Watchers

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