Skip to content

darshansm/Smartmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartmirror

##Introduction

This is the interface for my Smartmirror. I also added a config page to config the mirror easily. Runs as a php script on a web server with basically no external dependencies.

##Configuration

Modify js/config.js to change some general variables (language, wather location, compliments, news feed RSS). This can also be done with the web interface. Simply browse your browser to http://127.0.0.1/smartmirror/config (or whereever you located it on your server) In order to change your config.js trough the browser, you need to adjust the permissions (0777) (fix_permissions.sh for linux can be found in root) Please mind that you have to create an account at OpenWeatherMap.org and enter the APIKEY to use weather data

##To-Do

-Translation of the datelabels in weather.js file. (If someone can help me with the translation of the Words Day, Min and Max(for minimum and maximum), you're welcome) -> Translation of the Datelabels

-Adding new calendar feeds to the Config via configpage -> Adding new Calendars does not succeed

-slicing calendar trough config

-Add openhab Support for push-notifactions from the SmartHome-system (JSON-Text-Status)

##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 in config.js file.

###Compliments

Functionality related to inserting compliments into the view and rotating them based on a specific interval set in the config.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.

###Time

Updates the time on the screen on one second interval.

###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.)

##Screenshots Configpage: smartmirror config Smartmirror: smartmirror

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published