Coder Social home page Coder Social logo

toscoding / magicmirror Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magicmirrororg/magicmirror

0.0 2.0 0.0 10.53 MB

Magic Mirror Project

Home Page: http://michaelteeuw.nl/tagged/magicmirror

PHP 4.92% CSS 9.62% JavaScript 85.40% HTML 0.06%

magicmirror's Introduction

MagicMirror

Note: Please check out the v2-beta branch if you are looking for a modular system with simple installer.

##Introduction

The super magic interface of my personal Magic Mirror. More information about this project can be found on my blog.

Runs as a php script on a web server with basically no external dependencies. Can use socket.io for XBEE integration, but isn't required for basic functionality.

##Configuration

Modify js/config.js to change some general variables (language, weather location, compliments, news feed RSS and to add your own ICS calendars)

To use the OpenWeatherMap API, you'll need a free API key. Checkout this blogpost for more information.

##Code

###main.js

This file initiates the separate pieces of functionality that will appear in the view. It also includes various utility functions that are used to update what is visible.

###Calendar

Parsing functionality for the calendar that retrieves and updates the calendar based on the interval set at the top of the calendar.js file. This was actually a straight pull from the original main.js file but the parsing code may deserve an upgrade.

###Compliments

Functionality related to inserting compliments into the view and rotating them based on a specific interval set at the top of the compliments.js file.

###News

Takes an array of news feeds (or a single string) from the config file and retrieves each one so that it can be displayed in a loop based on the interval set at the top of the news.js file.

###Time

Updates the time on the screen on one second interval. Can be changed to omit displaying seconds by adding the config option displaySeconds = false in config.js. When the seconds are disabled the interval is set to 60 seconds on the full minute.

With the option digitFade = true, changing digits are faded. This looks best if the seconds are omitted.

###Version

Checks the git version and refreshes if a new version has been pulled.

###Weather

Takes the user's inserted location, language, unit type, and OpenWeatherMap API key and grabs the five day weather forecast from OpenWeatherMap. You need to set the API key in the config for this to work. (See configuration.)

##Modules

###MagicMirror-Modules by PaViRo

Current features: FRITZ!Box Callmonitor
Future features: Faceregognition, personalized views, online banking through HBCI and multiple calenders based on faceregognition.

###MagicMirror-Netatmo-Module by cfenner

Current features: display data of Netatmo weather station (inside/outside)
Future features: display of local warnings (severe weather)

magicmirror's People

Contributors

michmich avatar bitte-ein-bit avatar paviro avatar nhubbard avatar chmullig avatar thegunslingers avatar edi-design avatar alaycock avatar marcus-no avatar danieljcooper avatar cfenner avatar kaiser07 avatar danwilkerson avatar drewvolz avatar the-flix avatar gautric avatar lithiumnl avatar jjtob avatar yuki avatar

Watchers

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